The following Java classes implement the web services methods described in the section above, and handle the task of sending messages to Fusion Connect using a TCP socket, leaving only communication with physical devices and interpreting their messages to be implemented. Each of the classes contained in the package is listed below, along with a short description of each class.
Class Name | Description |
---|---|
AdapterBindingRs.java | Contains the suite of client-side web services methods: bind, unbind, and directive. (See Required Client-Side Methods for more information.) |
AdapterClient.java | Handles the work of sending a message or batch of messages to Fusion Connect via TCP sockets. |
AdapterConfig.java | Maintains a synchronized map of gateway codes to AdapterConnect objects that store all information about how the gateway with a certain code has to connect to the Fusion Connect application server. |
AdapterConnect.java | Stores all the parameters passed to the adapter from a bind request about the connection between a gateway and a Fusion Connect server. |
AdapterMessageXMLFactory.java | Handles conversion of messages from a MessageXtype or JAXBElement into an XML string formatted for display on an application. |
While these are the essential classes for implementing communication with Fusion Connect, a number of other example classes have been provided that expand upon this basic functionality.
Class Name | Description |
---|---|
MessageFeedRs.java | Contains two additional web services methods, process() and processBatch(), that allow the adapter to receive device messages through REST PUT requests over HTTP. |
MessageFeed.java | Contains two additional web services methods, process() and processBatch(), that allow the adapter to receive device messages through SOAP requests over HTTP. |
MessageXtype.java | An alternative message format to JAXBElement that AdapterMessageXMLFactory can read in and convert into an XML string ready for display on your Fusion Connect application. |
WsStatusController.java | Provides a list of all AdapterConnect objects currently associated with the adapter. |