|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cayenne.remote.RemoteSession
public class RemoteSession
A descriptor used by default service implementation to pass session parameters to the client. It provides the client with details on how to invoke the service and how to listen for the server events.
Field Summary | |
---|---|
protected String |
eventBridgeFactory
|
protected Map |
eventBridgeParameters
|
protected String |
name
|
protected String |
sessionId
|
Constructor Summary | |
---|---|
RemoteSession(String sessionId)
Creates a HessianServiceDescriptor without server events support. |
|
RemoteSession(String sessionId,
String eventBridgeFactory,
Map eventBridgeParameters)
Creates a HessianServiceDescriptor. |
Method Summary | |
---|---|
EventBridge |
createServerEventBridge()
Creates an EventBridge that will listen for server events. |
String |
getName()
Returns session group name. |
String |
getSessionId()
Returns server session id. |
int |
hashCode()
|
boolean |
isServerEventsEnabled()
|
void |
setName(String name)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String name
protected String sessionId
protected String eventBridgeFactory
protected Map eventBridgeParameters
Constructor Detail |
---|
public RemoteSession(String sessionId)
public RemoteSession(String sessionId, String eventBridgeFactory, Map eventBridgeParameters)
eventBridgeFactory
argument
is not null, session will support server events.
Method Detail |
---|
public int hashCode()
hashCode
in class Object
public String getSessionId()
public String getName()
public void setName(String name)
public boolean isServerEventsEnabled()
public EventBridge createServerEventBridge() throws CayenneRuntimeException
CayenneRuntimeException
- if EventBridge startup fails for any reason.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |