public class HessianConnection extends BaseConnection
| Modifier and Type | Field and Description |
|---|---|
static String[] |
CLIENT_SERIALIZER_FACTORIES |
protected String |
password |
protected com.caucho.hessian.io.SerializerFactory |
serializerFactory |
protected RemoteService |
service |
protected RemoteSession |
session |
protected String |
sharedSessionName |
protected String |
url |
protected String |
userName |
messageId, readTimeout| Constructor and Description |
|---|
HessianConnection(String url)
Creates HessianConnection that will establish dedicated session and will not use
HTTP basic authentication.
|
HessianConnection(String url,
String userName,
String password,
String sharedSessionName)
Creates a HessianConnection.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
beforeSendMessage(ClientMessage message)
Establishes server session if needed.
|
protected void |
connect()
Establishes a session with remote service.
|
protected Object |
doSendMessage(ClientMessage message)
Sends a message to remote Cayenne Hessian service.
|
String |
getPassword()
Returns password that is used for basic authentication when connecting to the
cayenne server.
|
com.caucho.hessian.io.SerializerFactory |
getSerializerFactory() |
EventBridge |
getServerEventBridge()
Returns an EventBridge that receives remote server events.
|
RemoteSession |
getSession()
Returns internal RemoteSession instance.
|
String |
getSharedSessionName() |
String |
getUrl()
Returns a URL of Cayenne service used by this connector.
|
String |
getUserName()
Returns user name that is used for basic authentication when connecting to the
cayenne server.
|
getProcessedMessagesCount, getReadTimeout, sendMessage, setReadTimeoutpublic static final String[] CLIENT_SERIALIZER_FACTORIES
protected String url
protected String userName
protected String password
protected String sharedSessionName
protected RemoteSession session
protected RemoteService service
protected com.caucho.hessian.io.SerializerFactory serializerFactory
public HessianConnection(String url)
public String getUrl()
public String getUserName()
public String getPassword()
public String getSharedSessionName()
public EventBridge getServerEventBridge() throws CayenneRuntimeException
ClientConnectionCayenneRuntimeExceptionpublic RemoteSession getSession()
protected void beforeSendMessage(ClientMessage message) throws CayenneRuntimeException
beforeSendMessage in class BaseConnectionCayenneRuntimeExceptionprotected Object doSendMessage(ClientMessage message) throws CayenneRuntimeException
doSendMessage in class BaseConnectionCayenneRuntimeExceptionprotected void connect()
throws CayenneRuntimeException
CayenneRuntimeExceptionpublic com.caucho.hessian.io.SerializerFactory getSerializerFactory()
Copyright © 2001–2018 Apache Cayenne. All rights reserved.