Class WebHubConnection

  • All Implemented Interfaces:
    HubConnection

    class WebHubConnection
    extends XmlRpcHubConnection
    HubConnection implementation for the Web Profile.
    Since:
    3 Feb 2011
    Author:
    Mark Taylor
    • Field Detail

      • appName_

        private final java.lang.String appName_
      • clientKey_

        private final java.lang.String clientKey_
      • logger_

        private static java.util.logging.Logger logger_
    • Constructor Detail

      • WebHubConnection

        public WebHubConnection​(SampXmlRpcClient xClient,
                                java.util.Map securityMap)
                         throws SampException
        Constructor.
        Parameters:
        xClient - XML-RPC client
        securityMap - security information map
        appName - client's declared name
        Throws:
        SampException
    • Method Detail

      • getClientKey

        public java.lang.Object getClientKey()
        Description copied from class: XmlRpcHubConnection
        Returns an object which is used as the first argument of most XML-RPC calls to the hub.
        Specified by:
        getClientKey in class XmlRpcHubConnection
        Returns:
        SAMP-friendly object to identify this client
      • setCallable

        public void setCallable​(CallableClient client)
                         throws SampException
        Description copied from interface: HubConnection
        Tells the hub how it can perform callbacks on the client by providing a CallableClient object. This is required before the client can declare subscriptions or make asynchronous calls.
        Parameters:
        client - callable client
        Throws:
        SampException