org.apache.http.impl.nio
Class DefaultServerIOEventDispatch

java.lang.Object
  extended by org.apache.http.impl.nio.DefaultServerIOEventDispatch
All Implemented Interfaces:
IOEventDispatch

public class DefaultServerIOEventDispatch
extends java.lang.Object
implements IOEventDispatch


Field Summary
protected  ByteBufferAllocator allocator
           
protected  NHttpServiceHandler handler
           
protected  org.apache.http.params.HttpParams params
           
 
Constructor Summary
DefaultServerIOEventDispatch(NHttpServiceHandler handler, org.apache.http.params.HttpParams params)
           
 
Method Summary
 void connected(IOSession session)
           
protected  ByteBufferAllocator createByteBufferAllocator()
           
protected  NHttpServerIOTarget createConnection(IOSession session)
           
protected  org.apache.http.HttpRequestFactory createHttpRequestFactory()
           
 void disconnected(IOSession session)
           
 void inputReady(IOSession session)
           
 void outputReady(IOSession session)
           
 void timeout(IOSession session)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

allocator

protected final ByteBufferAllocator allocator

handler

protected final NHttpServiceHandler handler

params

protected final org.apache.http.params.HttpParams params
Constructor Detail

DefaultServerIOEventDispatch

public DefaultServerIOEventDispatch(NHttpServiceHandler handler,
                                    org.apache.http.params.HttpParams params)
Method Detail

createByteBufferAllocator

protected ByteBufferAllocator createByteBufferAllocator()

createHttpRequestFactory

protected org.apache.http.HttpRequestFactory createHttpRequestFactory()

createConnection

protected NHttpServerIOTarget createConnection(IOSession session)

connected

public void connected(IOSession session)
Specified by:
connected in interface IOEventDispatch

disconnected

public void disconnected(IOSession session)
Specified by:
disconnected in interface IOEventDispatch

inputReady

public void inputReady(IOSession session)
Specified by:
inputReady in interface IOEventDispatch

outputReady

public void outputReady(IOSession session)
Specified by:
outputReady in interface IOEventDispatch

timeout

public void timeout(IOSession session)
Specified by:
timeout in interface IOEventDispatch


Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.