class StandardHubConnection extends XmlRpcHubConnection
| Modifier and Type | Field and Description |
|---|---|
private CallableClientServer |
callableServer_ |
private java.lang.String |
clientKey_ |
private SampXmlRpcServerFactory |
serverFactory_ |
| Constructor and Description |
|---|
StandardHubConnection(SampXmlRpcClient xClient,
SampXmlRpcServerFactory serverFactory,
java.lang.String secret)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getClientKey()
Returns an object which is used as the first argument of most
XML-RPC calls to the hub.
|
void |
setCallable(CallableClient callable)
Tells the hub how it can perform callbacks on the client by providing
a CallableClient object.
|
void |
unregister()
Unregisters the client and terminates this connection.
|
call, callAll, callAndWait, declareMetadata, declareSubscriptions, exec, finalize, getMetadata, getRegInfo, getRegisteredClients, getSubscribedClients, getSubscriptions, notify, notifyAll, ping, rawExec, replyprivate final SampXmlRpcServerFactory serverFactory_
private final java.lang.String clientKey_
private CallableClientServer callableServer_
public StandardHubConnection(SampXmlRpcClient xClient, SampXmlRpcServerFactory serverFactory, java.lang.String secret) throws SampException
xClient - XML-RPC clientserverFactory - XML-RPC server factory implementationsecret - samp.secret registration passwordSampExceptionpublic java.lang.Object getClientKey()
XmlRpcHubConnectiongetClientKey in class XmlRpcHubConnectionpublic void setCallable(CallableClient callable) throws SampException
HubConnectioncallable - callable clientSampExceptionpublic void unregister()
throws SampException
HubConnectionunregister in interface HubConnectionunregister in class XmlRpcHubConnectionSampException