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, reply
private 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 passwordSampException
public java.lang.Object getClientKey()
XmlRpcHubConnection
getClientKey
in class XmlRpcHubConnection
public void setCallable(CallableClient callable) throws SampException
HubConnection
callable
- callable clientSampException
public void unregister() throws SampException
HubConnection
unregister
in interface HubConnection
unregister
in class XmlRpcHubConnection
SampException