|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.marketcetera.util.ws.stateless.Node
org.marketcetera.util.ws.stateless.StatelessClient
public class StatelessClient
A client node for stateless communication. Its (optional) application ID is that of the application which hosts the client.
| Field Summary |
|---|
| Fields inherited from class org.marketcetera.util.ws.stateless.Node |
|---|
DEFAULT_HOST, DEFAULT_PORT |
| Constructor Summary | |
|---|---|
StatelessClient()
Creates a new client node with the default server host name and port, and no client application ID. |
|
StatelessClient(AppId appId)
Creates a new client node with the default server host name and port, and the given client application ID. |
|
StatelessClient(String host,
int port,
AppId appId)
Creates a new client node with the given server host name, port, and client application ID. |
|
StatelessClient(String inHost,
int inPort,
AppId inAppId,
Class<?>... inContextClasses)
Create a new StatelessClient instance. |
|
| Method Summary | ||
|---|---|---|
protected void |
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. |
|
AppId |
getAppId()
Returns the receiver's application ID. |
|
StatelessClientContext |
getContext()
Returns a client context which the client must supply as an argument to every remote call made via proxies obtained from the receiver. |
|
|
getService(Class<T> iface)
Retrieves the client-side proxy for the given service interface. |
|
| Methods inherited from class org.marketcetera.util.ws.stateless.Node |
|---|
getConnectionUrl, getHost, getId, getPort, setHost |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StatelessClient(String inHost,
int inPort,
AppId inAppId,
Class<?>... inContextClasses)
inHost - a String valueinPort - an int valueinAppId - an AppId valueinContextClasses - a Class<?>... value
public StatelessClient(String host,
int port,
AppId appId)
host - The host name.port - The port.appId - The application ID, which may be null.public StatelessClient(AppId appId)
appId - The application ID, which may be null.public StatelessClient()
| Method Detail |
|---|
public AppId getAppId()
protected void fillContext(StatelessClientContext context)
context - The context.public StatelessClientContext getContext()
public <T extends StatelessServiceBase> T getService(Class<T> iface)
iface - The interface class.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||