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 TypeMethodDescriptionvoidhandleInput(CancelRequestMessage header) voidhandleInput(FragmentMessage_1_1 header) voidhandleInput(FragmentMessage_1_2 header) voidhandleInput(LocateReplyMessage_1_0 header) voidhandleInput(LocateReplyMessage_1_1 header) voidhandleInput(LocateReplyMessage_1_2 header) voidhandleInput(LocateRequestMessage_1_0 header) voidhandleInput(LocateRequestMessage_1_1 header) voidhandleInput(LocateRequestMessage_1_2 header) voidhandleInput(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.voidhandleInput(ReplyMessage_1_0 header) voidhandleInput(ReplyMessage_1_1 header) voidhandleInput(ReplyMessage_1_2 header) voidhandleInput(RequestMessage_1_0 header) voidhandleInput(RequestMessage_1_1 header) voidhandleInput(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
-