Class GenericServerResponseHandler

java.lang.Object
org.medcare.igtl.network.MessageHandler
org.medcare.igtl.network.GenericServerResponseHandler

public class GenericServerResponseHandler extends MessageHandler
  • Field Details

  • Constructor Details

  • Method Details

    • perform

      public boolean perform(String messageType) throws Exception
      Description copied from class: MessageHandler
      Perform the request job this method must be adapted for each use
      Specified by:
      perform in class MessageHandler
      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: MessageHandler
      manage error this method must be adapted for each use
      Specified by:
      manageError in class MessageHandler
      Parameters:
      message - The message for error datail
      exception - The exception for error
      errorCode - The error Code