public abstract class HttpRemoteService extends BaseRemoteService
RemoteService implementation that stores server
context information in HTTP sessions.contextFactory, eventBridgeFactoryName, eventBridgeParameters, logger| Constructor and Description |
|---|
HttpRemoteService(ObjectContextFactory contextFactory,
Map<String,String> eventBridgeProperties) |
| Modifier and Type | Method and Description |
|---|---|
protected ServerSession |
createServerSession()
Creates a new ServerSession with a dedicated DataChannel.
|
protected ServerSession |
createServerSession(String name)
Creates a new ServerSession based on a shared DataChannel.
|
protected ServerSession |
getServerSession()
Returns a ServerSession object that represents Cayenne-related state associated
with the current session.
|
protected abstract javax.servlet.http.HttpSession |
getSession(boolean create)
Returns an HttpSession associated with the current request in progress.
|
protected DataChannel |
getSharedChannel(String name) |
protected void |
saveSharedChannel(String name,
DataChannel channel) |
createChannel, createRemoteSession, establishSession, establishSharedSession, getEventBridgeFactoryName, getEventBridgeParameters, initEventBridgeParameters, processMessagepublic HttpRemoteService(ObjectContextFactory contextFactory, Map<String,String> eventBridgeProperties)
protected abstract javax.servlet.http.HttpSession getSession(boolean create)
protected ServerSession getServerSession()
getServerSession in class BaseRemoteServiceprotected ServerSession createServerSession()
createServerSession in class BaseRemoteServiceprotected ServerSession createServerSession(String name)
createServerSession in class BaseRemoteServicename - shared session name used to lookup a shared DataChannel.protected DataChannel getSharedChannel(String name)
protected void saveSharedChannel(String name, DataChannel channel)
Copyright © 2001–2018 Apache Cayenne. All rights reserved.