|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.marketcetera.util.ws.stateless.StatelessRemoteCall
public class StatelessRemoteCall
An implementation wrapper for stateless services. It runs on the server-side and applies the (optional) client version, application, and client IDs through its filters; it also handles logging and exception wrapping.
| Field Summary | |
|---|---|
static EqualsTagFilter |
DEFAULT_VERSION_FILTER
The default version ID filter. |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final EqualsTagFilter DEFAULT_VERSION_FILTER
| Constructor Detail |
|---|
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()
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||