Package org.medcare.igtl.network
Class GenericClientResponseHandler
java.lang.Object
org.medcare.igtl.network.ResponseHandler
org.medcare.igtl.network.GenericClientResponseHandler
-
Field Summary
-
Constructor Summary
ConstructorDescriptionGenericClientResponseHandler
(Header header, byte[] body, OpenIGTClient client, IOpenIgtPacketListener openIGTClient) -
Method Summary
Modifier and TypeMethodDescriptionvoid
manageError
(String message, Exception exception, int errorCode) manage error this method must be adapted for each useboolean
Perform the response job this method must be adapted for each useMethods inherited from class org.medcare.igtl.network.ResponseHandler
getBody, getCapability, getCapabilityList, getHeader, getOpenIGTClient, getStatus, performResponse, setBody, setCapabilityList, setHeader, setOpenIGTClient, setStatus
-
Field Details
-
openIGTMessage
-
client
-
-
Constructor Details
-
GenericClientResponseHandler
public GenericClientResponseHandler(Header header, byte[] body, OpenIGTClient client, IOpenIgtPacketListener openIGTClient)
-
-
Method Details
-
perform
Description copied from class:ResponseHandler
Perform the response job this method must be adapted for each use- Specified by:
perform
in classResponseHandler
- Parameters:
messageType
- The messageType- Returns:
- True if response job performed successfully
- Throws:
Exception
- CrcException will be thrown at crc check during message unpacking Other exceptions can be thrown
-
manageError
Description copied from class:ResponseHandler
manage error this method must be adapted for each use- Specified by:
manageError
in classResponseHandler
- Parameters:
message
- The message for error datailexception
- The exception for errorerrorCode
- The error Code
-