org.apache.mina.core.write
Class WriteRequestWrapper

java.lang.Object
  extended by org.apache.mina.core.write.WriteRequestWrapper
All Implemented Interfaces:
WriteRequest

public class WriteRequestWrapper
extends java.lang.Object
implements WriteRequest

A wrapper for an existing WriteRequest.

Author:
Apache MINA Project

Constructor Summary
WriteRequestWrapper(WriteRequest parentRequest)
          Creates a new instance that wraps the specified request.
 
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.
 WriteRequest getParentRequest()
          Returns the wrapped request object.
 boolean isEncoded()
          Tells if the current message has been encoded
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WriteRequestWrapper

public WriteRequestWrapper(WriteRequest parentRequest)
Creates a new instance that wraps the specified request.

Method Detail

getDestination

public java.net.SocketAddress getDestination()
Description copied from interface: WriteRequest
Returns the destination of this write request.

Specified by:
getDestination in interface WriteRequest
Returns:
null for the default destination

getFuture

public WriteFuture getFuture()
Description copied from interface: WriteRequest
Returns WriteFuture that is associated with this write request.

Specified by:
getFuture in interface WriteRequest

getMessage

public java.lang.Object getMessage()
Description copied from interface: WriteRequest
Returns a message object to be written.

Specified by:
getMessage in interface WriteRequest

getOriginalRequest

public WriteRequest getOriginalRequest()
Description copied from interface: WriteRequest
Returns the WriteRequest which was requested originally, which is not transformed by any IoFilter.

Specified by:
getOriginalRequest in interface WriteRequest

getParentRequest

public WriteRequest getParentRequest()
Returns the wrapped request object.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

isEncoded

public boolean isEncoded()
Description copied from interface: WriteRequest
Tells if the current message has been encoded

Specified by:
isEncoded in interface WriteRequest
Returns:
true if the message has already been encoded