Interface WriteRequest
- All Known Implementing Classes:
DefaultWriteRequest, ProtocolCodecFilter.EncodedWriteRequest, SslFilter.EncryptedWriteRequest
public interface WriteRequest
Represents write request fired by
IoSession.write(Object).-
Method Summary
Modifier and TypeMethodDescriptionReturns the destination of this write request.booleanTells if the current message has been encodedvoidsetMessage(Object modifiedMessage) Set the modified message after it has been processed by a filter.
-
Method Details
-
getOriginalRequest
WriteRequest getOriginalRequest()- Returns:
- the
WriteRequestwhich was requested originally, which is not transformed by anyIoFilter.
-
getFuture
WriteFuture getFuture()- Returns:
WriteFuturethat is associated with this write request.
-
getMessage
Object getMessage()- Returns:
- a message object to be written.
-
setMessage
Set the modified message after it has been processed by a filter.- Parameters:
modifiedMessage- The modified message
-
getDestination
SocketAddress getDestination()Returns the destination of this write request.- Returns:
nullfor the default destination
-
isEncoded
boolean isEncoded()Tells if the current message has been encoded- Returns:
- true if the message has already been encoded
-
getOriginalMessage
Object getOriginalMessage()- Returns:
- the original message which was sent to the session, before any filter transformation.
-