public class StatelessRemoteCall extends Object
| Modifier and Type | Field and Description |
|---|---|
static EqualsTagFilter |
DEFAULT_VERSION_FILTER
The default version ID filter.
|
| Constructor and Description |
|---|
StatelessRemoteCall()
Creates a new wrapper which applies a single filter to the
client context.
|
StatelessRemoteCall(TagFilter versionIdFilter,
TagFilter appIdFilter,
TagFilter clientIdFilter)
Creates a new wrapper which applies the given filters to the
client context.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertFilterMatch(StatelessClientContext context)
Asserts that the given client context matches all of the
receiver's filters.
|
protected static void |
assertFilterMatch(TagFilter filter,
Tag tag)
Asserts that the given filter matches the given tag.
|
TagFilter |
getAppIdFilter()
Returns the receiver's application ID filter.
|
TagFilter |
getClientIdFilter()
Returns the receiver's client ID filter.
|
TagFilter |
getVersionIdFilter()
Returns the receiver's version ID filter.
|
protected void |
handleSuccess(StatelessClientContext context)
Called by subclasses after custom processing of a service call
on behalf of the client with the given context completes
successfully.
|
protected void |
startCall(StatelessClientContext context)
Called by subclasses before starting custom processing of a
service call on behalf of the client with the given context.
|
protected RemoteException |
wrapFailure(StatelessClientContext context,
Throwable t)
Called by subclasses after custom processing of a service call
on behalf of the client with the given context completes
unsuccessfully.
|
public static final EqualsTagFilter DEFAULT_VERSION_FILTER
public StatelessRemoteCall(TagFilter versionIdFilter, TagFilter appIdFilter, TagFilter clientIdFilter)
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.public StatelessRemoteCall()
public TagFilter getVersionIdFilter()
public TagFilter getAppIdFilter()
public TagFilter getClientIdFilter()
protected static void assertFilterMatch(TagFilter filter, Tag tag) throws I18NException
filter - The filter, which may be null.tag - The tag, which may be null.I18NException - Thrown if there is a mismatch.protected void assertFilterMatch(StatelessClientContext context) throws I18NException
context - The context.I18NException - Thrown if there is a mismatch.protected void startCall(StatelessClientContext context)
context - The context.protected void handleSuccess(StatelessClientContext context)
context - The context.protected RemoteException wrapFailure(StatelessClientContext context, Throwable t)
context - The context.t - The throwable.Copyright © 2015. All Rights Reserved.