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 Summary
Modifier and TypeMethodDescriptionvoid
handleInput
(CancelRequestMessage header) void
handleInput
(FragmentMessage_1_1 header) void
handleInput
(FragmentMessage_1_2 header) void
handleInput
(LocateReplyMessage_1_0 header) void
handleInput
(LocateReplyMessage_1_1 header) void
handleInput
(LocateReplyMessage_1_2 header) void
handleInput
(LocateRequestMessage_1_0 header) void
handleInput
(LocateRequestMessage_1_1 header) void
handleInput
(LocateRequestMessage_1_2 header) void
handleInput
(Message header) Used for message types for which we don't have concrete classes, yet, such as CloseConnection and MessageError, as well as unknown types.void
handleInput
(ReplyMessage_1_0 header) void
handleInput
(ReplyMessage_1_1 header) void
handleInput
(ReplyMessage_1_2 header) void
handleInput
(RequestMessage_1_0 header) void
handleInput
(RequestMessage_1_1 header) void
handleInput
(RequestMessage_1_2 header)
-
Method Details
-
handleInput
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:
IOException
- If an IO error occurs
-
handleInput
- Throws:
IOException
-
handleInput
- Throws:
IOException
-
handleInput
- Throws:
IOException
-
handleInput
- Throws:
IOException
-
handleInput
- Throws:
IOException
-
handleInput
- Throws:
IOException
-
handleInput
- Throws:
IOException
-
handleInput
- Throws:
IOException
-
handleInput
- Throws:
IOException
-
handleInput
- Throws:
IOException
-
handleInput
- Throws:
IOException
-
handleInput
- Throws:
IOException
-
handleInput
- Throws:
IOException
-
handleInput
- Throws:
IOException
-
handleInput
- Throws:
IOException
-