Uses of Class
org.astrogrid.samp.client.SampException
-
Packages that use SampException Package Description org.astrogrid.samp.client Classes required only for SAMP clients.org.astrogrid.samp.gui Classes required only for graphical components based on SAMP classes.org.astrogrid.samp.hub Classes required only for running a SAMP hub.org.astrogrid.samp.test Classes for testing.org.astrogrid.samp.web Classes relating to the SAMP Web Profile.org.astrogrid.samp.xmlrpc Classes relating to Standard Profile and XML-RPC pluggable implementation layer. -
-
Uses of SampException in org.astrogrid.samp.client
Methods in org.astrogrid.samp.client that throw SampException Modifier and Type Method Description java.lang.StringHubConnection. call(java.lang.String recipientId, java.lang.String msgTag, java.util.Map msg)Sends a message to a given client expecting a response.voidHubConnector. call(java.lang.String recipientId, java.util.Map msg, ResultHandler resultHandler, int timeout)Sends a message asynchronously to a single client, making a callback on a supplied ResultHandler object when the result arrives.java.util.MapHubConnection. callAll(java.lang.String msgTag, java.util.Map msg)Sends a message to all subscribed clients expecting responses.voidHubConnector. callAll(java.util.Map msg, ResultHandler resultHandler, int timeout)Sends a message asynchronously to all subscribed clients, making callbacks on a supplied ResultHandler object when the results arrive.ResponseHubConnection. callAndWait(java.lang.String recipientId, java.util.Map msg, int timeout)Sends a message synchronously to a client, waiting for the response.ResponseHubConnector. callAndWait(java.lang.String recipientId, java.util.Map msg, int timeout)Sends a message synchronously to a client, waiting for the response.voidHubConnector. configureConnection(HubConnection connection)Configures a connection with a hub in accordance with the state of this object.protected HubConnectionHubConnector. createConnection()Invoked by this class to create a hub connection.voidHubConnection. declareMetadata(java.util.Map meta)Declares this registered client's metadata.voidHubConnection. declareSubscriptions(java.util.Map subs)Declares this registered client's MType subscriptions.HubConnectionHubConnector. getConnection()If necessary attempts to acquire, and returns, a connection to a running hub.MetadataHubConnection. getMetadata(java.lang.String clientId)Returns the metadata for another registered client.java.lang.String[]HubConnection. getRegisteredClients()Returns the list of client public IDs for those clients currently registered.java.util.MapHubConnection. getSubscribedClients(java.lang.String mtype)Returns a map of subscriptions for a given MType.SubscriptionsHubConnection. getSubscriptions(java.lang.String clientId)Returns the subscriptions for another registered client.voidHubConnection. notify(java.lang.String recipientId, java.util.Map msg)Sends a message to a given client without wanting a response.java.util.ListHubConnection. notifyAll(java.util.Map msg)Sends a message to all subscribed clients without wanting a response.voidHubConnection. ping()Tests whether the connection is currently open.voidAbstractMessageHandler. receiveCall(HubConnection connection, java.lang.String senderId, java.lang.String msgId, Message message)CallsAbstractMessageHandler.processCall(org.astrogrid.samp.client.HubConnection, java.lang.String, org.astrogrid.samp.Message), generates a response from the result usingAbstractMessageHandler.createResponse(java.util.Map), and sends the resulting response as a reply to the hub.HubConnectionClientProfile. register()Attempts to register with a SAMP hub and return a corresponding connection object.voidHubConnection. reply(java.lang.String msgId, java.util.Map response)Supplies a response to a previously received message.voidHubConnection. setCallable(CallableClient callable)Tells the hub how it can perform callbacks on the client by providing a CallableClient object.voidHubConnection. unregister()Unregisters the client and terminates this connection. -
Uses of SampException in org.astrogrid.samp.gui
Methods in org.astrogrid.samp.gui that throw SampException Modifier and Type Method Description protected HubConnectionMessageTrackerHubConnector. createConnection()protected voidGuiHubService. declareMetadata(HubClient caller, java.util.Map meta)protected voidGuiHubService. declareSubscriptions(HubClient caller, java.util.Map subscriptions)protected voidMessageTrackerHubService. reply(HubClient caller, java.lang.String msgId, java.util.Map response) -
Uses of SampException in org.astrogrid.samp.hub
Methods in org.astrogrid.samp.hub that throw SampException Modifier and Type Method Description protected java.lang.StringBasicHubService. call(HubClient caller, java.lang.String recipientId, java.lang.String msgTag, java.util.Map message)Does the work for thecallmethod of connections registered with this service.protected java.util.MapBasicHubService. callAll(HubClient caller, java.lang.String msgTag, java.util.Map message)Does the work for thecallmethod of connections registered with this service.protected ResponseBasicHubService. callAndWait(HubClient caller, java.lang.String recipientId, java.util.Map message, int timeout)Does the work for thecallAndWaitmethod of connections registered with this service.protected voidBasicHubService. declareMetadata(HubClient caller, java.util.Map meta)Does the work for thedeclareMetadatamethod of connections registered with this service.protected voidBasicHubService. declareSubscriptions(HubClient caller, java.util.Map subscriptions)Does the work for thedeclareSubscriptionsmethod of connections registered with this service.protected MetadataBasicHubService. getMetadata(HubClient caller, java.lang.String clientId)Does the work for thegetMetadatamethod of connections registered with this service.protected java.lang.String[]BasicHubService. getRegisteredClients(HubClient caller)Does the work for thegetRegisteredClientsmethod of connections registered with this service.protected java.util.MapBasicHubService. getSubscribedClients(HubClient caller, java.lang.String mtype)Does the work for thegetSubscribedClientsmethod of connections registered with this service.protected SubscriptionsBasicHubService. getSubscriptions(HubClient caller, java.lang.String clientId)Does the work for thegetSubscriptionsmethod of connections registered with this service.protected voidBasicHubService. notify(HubClient caller, java.lang.String recipientId, java.util.Map message)Does the work for thenotifymethod of connections registered with this service.protected java.util.ListBasicHubService. notifyAll(HubClient caller, java.util.Map message)Does the work for thenotifyAllmethod of connections registered with this service.HubConnectionBasicHubService. register(ProfileToken ptoken)HubConnectionFacadeHubService. register(ProfileToken profileToken)HubConnectionHubService. register(ProfileToken profileToken)Creates a new connection to this hub service, thereby initiating a new registered client.protected voidBasicHubService. reply(HubClient caller, java.lang.String msgIdStr, java.util.Map resp)Does the work for thereplymethod of connections registered with this service.protected voidBasicHubService. setCallable(HubClient caller, CallableClient callable)Does the work for thesetCallablemethod of connections registered with this service.protected voidBasicHubService. unregister(HubClient caller)Does the work for theunregistermethod of conections registered with this service. -
Uses of SampException in org.astrogrid.samp.test
Methods in org.astrogrid.samp.test that throw SampException Modifier and Type Method Description voidCalculator. receiveCall(java.lang.String senderId, java.lang.String msgId, Message msg)voidCalculator. sendMessage(java.lang.String receiverId, Calculator.SendMode mode)Sends a randomly generated message in a randomly generated way to a given receiver.Constructors in org.astrogrid.samp.test that throw SampException Constructor Description Calculator(HubConnection connection, java.util.Random random)Constructor. -
Uses of SampException in org.astrogrid.samp.web
Methods in org.astrogrid.samp.web that throw SampException Modifier and Type Method Description voidClientAuthorizer. authorize(HttpServer.Request request, java.util.Map securityMap)Indicates whether an HTTP request representing an otherwise unauthorized connection attempt will be permitted access to sensitive system resources.voidExtremeSwingClientAuthorizer. authorize(HttpServer.Request request, java.util.Map securityMap)voidHubSwingClientAuthorizer. authorize(HttpServer.Request request, java.util.Map securityMap)CredentialPresenter.PresentationCredentialPresenter. createPresentation(HttpServer.Request request, java.util.Map securityMap, AuthResourceBundle.Content authContent)Returns an object which contains user-directed credential messages, given available information from the registration request.CredentialPresenter.PresentationWebCredentialPresenter. createPresentation(HttpServer.Request request, java.util.Map securityMap, AuthResourceBundle.Content authContent)static java.lang.StringClientAuthorizers. getAppName(java.util.Map securityMap)Returns the mandatory application name entry from the security map supplied explicitly by clients wishing to register.HubConnectionWebClientProfile. register() -
Uses of SampException in org.astrogrid.samp.xmlrpc
Methods in org.astrogrid.samp.xmlrpc that throw SampException Modifier and Type Method Description java.lang.StringXmlRpcHubConnection. call(java.lang.String recipientId, java.lang.String msgTag, java.util.Map msg)java.util.MapXmlRpcHubConnection. callAll(java.lang.String msgTag, java.util.Map msg)ResponseXmlRpcHubConnection. callAndWait(java.lang.String recipientId, java.util.Map msg, int timeout)voidXmlRpcHubConnection. declareMetadata(java.util.Map meta)voidXmlRpcHubConnection. declareSubscriptions(java.util.Map subs)java.lang.ObjectXmlRpcHubConnection. exec(java.lang.String methodName, java.lang.Object[] params)Makes an XML-RPC call to the SAMP hub represented by this connection.MetadataXmlRpcHubConnection. getMetadata(java.lang.String clientId)java.lang.String[]XmlRpcHubConnection. getRegisteredClients()java.util.MapXmlRpcHubConnection. getSubscribedClients(java.lang.String mtype)SubscriptionsXmlRpcHubConnection. getSubscriptions(java.lang.String clientId)voidXmlRpcHubConnection. notify(java.lang.String recipientId, java.util.Map msg)java.util.ListXmlRpcHubConnection. notifyAll(java.util.Map msg)voidXmlRpcHubConnection. ping()java.lang.ObjectXmlRpcHubConnection. rawExec(java.lang.String fqName, java.util.List paramList)Actually makes an XML-RPC call to the SAMP hub represented by this connection.HubConnectionStandardClientProfile. register()voidXmlRpcHubConnection. reply(java.lang.String msgId, java.util.Map response)voidXmlRpcHubConnection. unregister()Constructors in org.astrogrid.samp.xmlrpc that throw SampException Constructor Description XmlRpcHubConnection(SampXmlRpcClient xClient, java.lang.String prefix, java.util.List registerArgs)Constructor.
-