org.apache.mina.core.write
Interface WriteRequest

All Known Implementing Classes:
DefaultWriteRequest, WriteRequestWrapper

public interface WriteRequest

Represents write request fired by IoSession.write(Object).

Author:
Apache MINA Project

Method Summary
 java.net.SocketAddress getDestination()
          Returns the destination of this write request.
 WriteFuture getFuture()
          Returns WriteFuture that is associated with this write request.
 java.lang.Object getMessage()
          Returns a message object to be written.
 WriteRequest getOriginalRequest()
          Returns the WriteRequest which was requested originally, which is not transformed by any IoFilter.
 boolean isEncoded()
          Tells if the current message has been encoded
 

Method Detail

getOriginalRequest

WriteRequest getOriginalRequest()
Returns the WriteRequest which was requested originally, which is not transformed by any IoFilter.


getFuture

WriteFuture getFuture()
Returns WriteFuture that is associated with this write request.


getMessage

java.lang.Object getMessage()
Returns a message object to be written.


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


Copyright © 2004-2011 Apache MINA Project. All Rights Reserved.