|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cayenne.remote.BaseConnection
org.apache.cayenne.remote.service.LocalConnection
public class LocalConnection
A ClientConnection that connects to a DataChannel. Used as an emulator of a remote service. Emulation includes serialization/deserialization of objects.
Field Summary | |
---|---|
protected DataChannel |
channel
|
static int |
HESSIAN_SERIALIZATION
|
static int |
JAVA_SERIALIZATION
|
static int |
NO_SERIALIZATION
|
protected int |
serializationPolicy
|
Fields inherited from class org.apache.cayenne.remote.BaseConnection |
---|
logger, messageId |
Constructor Summary | |
---|---|
LocalConnection(DataChannel handler)
Creates LocalConnector with specified handler and no serialization. |
|
LocalConnection(DataChannel handler,
int serializationPolicy)
Creates a LocalConnector with specified handler and serialization policy. |
Method Summary | |
---|---|
protected void |
beforeSendMessage(ClientMessage message)
Does nothing. |
protected java.lang.Object |
doSendMessage(ClientMessage message)
Dispatches a message to an internal handler. |
DataChannel |
getChannel()
Returns wrapped DataChannel. |
EventBridge |
getServerEventBridge()
Returns null. |
boolean |
isSerializingMessages()
|
Methods inherited from class org.apache.cayenne.remote.BaseConnection |
---|
getProcessedMessagesCount, sendMessage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NO_SERIALIZATION
public static final int JAVA_SERIALIZATION
public static final int HESSIAN_SERIALIZATION
protected DataChannel channel
protected int serializationPolicy
Constructor Detail |
---|
public LocalConnection(DataChannel handler)
public LocalConnection(DataChannel handler, int serializationPolicy)
Method Detail |
---|
public boolean isSerializingMessages()
public DataChannel getChannel()
public EventBridge getServerEventBridge()
protected void beforeSendMessage(ClientMessage message)
beforeSendMessage
in class BaseConnection
protected java.lang.Object doSendMessage(ClientMessage message) throws CayenneRuntimeException
doSendMessage
in class BaseConnection
CayenneRuntimeException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |