Package org.apache.mina.core.write
Interface WriteRequest
-
- All Known Implementing Classes:
DefaultWriteRequest
public interface WriteRequest
Represents write request fired byIoSession.write(Object)
.- Author:
- Apache MINA Project
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.net.SocketAddress
getDestination()
Returns the destination of this write request.WriteFuture
getFuture()
java.lang.Object
getMessage()
java.lang.Object
getOriginalMessage()
WriteRequest
getOriginalRequest()
boolean
isEncoded()
Tells if the current message has been encodedvoid
setMessage(java.lang.Object modifiedMessage)
Set the modified message after it has been processed by a filter.
-
-
-
Method Detail
-
getOriginalRequest
WriteRequest getOriginalRequest()
- Returns:
- the
WriteRequest
which was requested originally, which is not transformed by anyIoFilter
.
-
getFuture
WriteFuture getFuture()
- Returns:
WriteFuture
that is associated with this write request.
-
getMessage
java.lang.Object getMessage()
- Returns:
- a message object to be written.
-
setMessage
void setMessage(java.lang.Object modifiedMessage)
Set the modified message after it has been processed by a filter.- Parameters:
modifiedMessage
- The modified message
-
getDestination
java.net.SocketAddress getDestination()
Returns the destination of this write request.- Returns:
- null for the default destination
-
isEncoded
boolean isEncoded()
Tells if the current message has been encoded- Returns:
- true if the message has already been encoded
-
getOriginalMessage
java.lang.Object getOriginalMessage()
- Returns:
- the original message which was sent to the session, before any filter transformation.
-
-