net.officefloor.plugin.socket.server
Interface ReadContext

All Superinterfaces:
ConnectionHandlerContext
All Known Implementing Classes:
SocketListener, SslConnectionHandler

public interface ReadContext
extends ConnectionHandlerContext

Context for handling a read.

Author:
Daniel Sagenschneider

Method Summary
 InputBufferStream getInputBufferStream()
          Obtains the InputBufferStream to read data from the client.
 void processRequest(Object attachment)
          Flags that the request has been received.
 
Methods inherited from interface net.officefloor.plugin.socket.server.ConnectionHandlerContext
getContextObject, getTime, setCloseConnection, setContextObject
 

Method Detail

getInputBufferStream

InputBufferStream getInputBufferStream()
Obtains the InputBufferStream to read data from the client.

Returns:
InputBufferStream.

processRequest

void processRequest(Object attachment)
                    throws IOException
Flags that the request has been received. This will subsequently have the Server process the request.

Parameters:
attachment - Optional attachment for the request. May be null.
Throws:
IOException - If fails to process request.


Copyright © 2005-2011. All Rights Reserved.