Interface MessageHandler

  • All Known Implementing Classes:
    MessageMediatorImpl

    public interface MessageHandler
    Interface which allows an implementation to use double dispatch when processing the various concrete message types found in this package.
    • Method Detail

      • handleInput

        void handleInput​(Message header)
                  throws java.io.IOException
        Used for message types for which we don't have concrete classes, yet, such as CloseConnection and MessageError, as well as unknown types.
        Parameters:
        header - Message to handle
        Throws:
        java.io.IOException - If an IO error occurs
      • handleInput

        void handleInput​(RequestMessage_1_0 header)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • handleInput

        void handleInput​(RequestMessage_1_1 header)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • handleInput

        void handleInput​(RequestMessage_1_2 header)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • handleInput

        void handleInput​(ReplyMessage_1_0 header)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • handleInput

        void handleInput​(ReplyMessage_1_1 header)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • handleInput

        void handleInput​(ReplyMessage_1_2 header)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • handleInput

        void handleInput​(LocateRequestMessage_1_0 header)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • handleInput

        void handleInput​(LocateRequestMessage_1_1 header)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • handleInput

        void handleInput​(LocateRequestMessage_1_2 header)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • handleInput

        void handleInput​(LocateReplyMessage_1_0 header)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • handleInput

        void handleInput​(LocateReplyMessage_1_1 header)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • handleInput

        void handleInput​(LocateReplyMessage_1_2 header)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • handleInput

        void handleInput​(FragmentMessage_1_1 header)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • handleInput

        void handleInput​(FragmentMessage_1_2 header)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • handleInput

        void handleInput​(CancelRequestMessage header)
                  throws java.io.IOException
        Throws:
        java.io.IOException