| Package | Description |
|---|---|
| org.marketcetera.util.ws.stateful |
Web services infrastructure.
|
| org.marketcetera.util.ws.stateless |
Infrastructure for stateless communication between client and
server.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ClientContext
The client context which the client must supply as an argument to
every stateful remote call.
|
| Modifier and Type | Method and Description |
|---|---|
StatelessClientContext |
SessionHolder.getCreationContext()
Returns the receiver's creation context.
|
| Modifier and Type | Method and Description |
|---|---|
T |
SessionFactory.createSession(StatelessClientContext context,
String user,
SessionId id)
Creates a new session (data object), for a new session
initiated with the given creation context and on behalf of the
user with the given name, and assigned the given ID.
|
SessionId |
AuthServiceImpl.login(StatelessClientContext context,
String user,
char[] password) |
SessionId |
AuthService.login(StatelessClientContext context,
String user,
char[] password)
Logs in the client with the given context, provided the given
credentials are acceptable.
|
boolean |
FixedAuthenticator.shouldAllow(StatelessClientContext context,
String user,
char[] password) |
boolean |
Authenticator.shouldAllow(StatelessClientContext context,
String user,
char[] password)
Checks whether the given credentials can be used to initiate a
new session on behalf of the client with the given context.
|
| Constructor and Description |
|---|
SessionHolder(String user,
StatelessClientContext creationContext)
Creates a new holder with the given authenticated user name and
creation context.
|
| Modifier and Type | Method and Description |
|---|---|
StatelessClientContext |
StatelessClient.getContext()
Returns a client context which the client must supply as an
argument to every remote call made via proxies obtained from
the receiver.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
StatelessRemoteCall.assertFilterMatch(StatelessClientContext context)
Asserts that the given client context matches all of the
receiver's filters.
|
protected abstract T |
StatelessRemoteCaller.call(StatelessClientContext context)
The service implementation, executed on behalf of the client
with the given context.
|
void |
StatelessRemoteRunner.execute(StatelessClientContext context)
Invokes the service implementation on behalf of the client with
the given context.
|
T |
StatelessRemoteCaller.execute(StatelessClientContext context)
Invokes the service implementation on behalf of the client with
the given context.
|
protected void |
StatelessClient.fillContext(StatelessClientContext context)
Sets the properties of the given client context, so that it may
be used for remote calls made via proxies obtained from the
receiver.
|
protected void |
StatelessRemoteCall.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 abstract void |
StatelessRemoteRunner.run(StatelessClientContext context)
The service implementation, executed on behalf of the client
with the given context.
|
protected void |
StatelessRemoteCall.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 |
StatelessRemoteCall.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.
|
Copyright © 2015. All Rights Reserved.