public abstract class RemoteCaller<S,T> extends RemoteCall<S>
call(ClientContext,SessionHolder).DEFAULT_VERSION_FILTER| Constructor and Description |
|---|
RemoteCaller(SessionManager<S> sessionManager)
Creates a new wrapper which uses the given (optional) session
manager for session ID mappings, and which applies two filters
to the client context.
|
RemoteCaller(TagFilter versionIdFilter,
TagFilter appIdFilter,
TagFilter clientIdFilter,
SessionManager<S> sessionManager,
TagFilter sessionIdFilter)
Creates a new wrapper which uses the given (optional) session
manager for session ID mappings, and which applies the given
filters to the client context.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract T |
call(ClientContext context,
SessionHolder<S> sessionHolder)
The service implementation, executed on behalf of the client
with the given context and associated session holder.
|
T |
execute(ClientContext context)
Invokes the service implementation on behalf of the client with
the given context.
|
getDefaultSessionIdFilter, getSessionHolder, getSessionIdFilter, getSessionManagerassertFilterMatch, assertFilterMatch, getAppIdFilter, getClientIdFilter, getVersionIdFilter, handleSuccess, startCall, wrapFailurepublic RemoteCaller(TagFilter versionIdFilter, TagFilter appIdFilter, TagFilter clientIdFilter, SessionManager<S> sessionManager, TagFilter sessionIdFilter)
versionIdFilter - The version ID filter, which may be null.appIdFilter - The application ID filter, which may be null.clientIdFilter - The client ID filter, which may be null.sessionManager - The session manager, which may be null.sessionIdFilter - The session ID filter, which may be null.public RemoteCaller(SessionManager<S> sessionManager)
sessionManager - The session manager, which may be null.public T execute(ClientContext context) throws RemoteException
context - The context.RemoteException - Thrown if the implementation fails;
it wraps the throwable thrown by the actual implementation.protected abstract T call(ClientContext context, SessionHolder<S> sessionHolder) throws Exception
context - The context.sessionHolder - The holder, which may be null.Exception - Thrown if the implementation fails.Copyright © 2015. All Rights Reserved.