Package com.uc4.communication
Interface AEConnection
- All Known Implementing Classes:
Connection
public interface AEConnection
Interface for a connection to the Automation Engine.
-
Method Summary
Modifier and TypeMethodDescriptionReturns information about the current UC4 Session.sendRequest
(XMLRequest sendableMessage, IResponseHandler handler) Sends an message to the UC4 Server.void
sendRequestAndWait
(XMLRequest sendableMessage) Sends a message to the UC4 Server and waits for the response.
-
Method Details
-
getSessionInfo
ConnectionAttributes getSessionInfo()Returns information about the current UC4 Session.- Returns:
- Session information
-
sendRequest
Sends an message to the UC4 Server.After the request is sent to the UC4 Server the method call returns immediately. When the response to this request arrives the IResponseHandler will be called.
- Parameters:
sendableMessage
- Object which implements theXMLRequest
Interfacehandler
- Response Handler- Returns:
- Request Number as String. This ID can be used to cancel the pending request.
- Throws:
IOException
- If an I/O error occurs
-
sendRequestAndWait
Sends a message to the UC4 Server and waits for the response. This method blocks until the response from the UC4 Server is arrived.- Parameters:
sendableMessage
- XML request- Throws:
IOException
- If an I/O error occurs
-