Class GenericClientResponseHandler

java.lang.Object
org.medcare.igtl.network.ResponseHandler
org.medcare.igtl.network.GenericClientResponseHandler

public class GenericClientResponseHandler extends ResponseHandler
  • Field Details

  • Constructor Details

  • Method Details

    • perform

      public boolean perform(String messageType) throws Exception
      Description copied from class: ResponseHandler
      Perform the response job this method must be adapted for each use
      Specified by:
      perform in class ResponseHandler
      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

      public void manageError(String message, Exception exception, int errorCode)
      Description copied from class: ResponseHandler
      manage error this method must be adapted for each use
      Specified by:
      manageError in class ResponseHandler
      Parameters:
      message - The message for error datail
      exception - The exception for error
      errorCode - The error Code