org.apache.http.impl.nio
Class DefaultServerIODispatch

java.lang.Object
  extended by org.apache.http.impl.nio.AbstractIODispatch<NHttpServerIOTarget>
      extended by org.apache.http.impl.nio.DefaultServerIODispatch
All Implemented Interfaces:
IOEventDispatch

@Immutable
public class DefaultServerIODispatch
extends AbstractIODispatch<NHttpServerIOTarget>

Default implementation of IOEventDispatch interface for plain (non-encrypted) server-side HTTP connections.

Since:
4.2

Constructor Summary
DefaultServerIODispatch(NHttpServiceHandler handler, HttpParams params)
           
DefaultServerIODispatch(NHttpServiceHandler handler, NHttpConnectionFactory<NHttpServerIOTarget> connFactory)
           
DefaultServerIODispatch(NHttpServiceHandler handler, SSLContext sslcontext, HttpParams params)
           
DefaultServerIODispatch(NHttpServiceHandler handler, SSLContext sslcontext, SSLSetupHandler sslHandler, HttpParams params)
           
 
Method Summary
protected  NHttpServerIOTarget createConnection(IOSession session)
           
protected  void onClosed(NHttpServerIOTarget conn)
           
protected  void onConnected(NHttpServerIOTarget conn)
           
protected  void onException(NHttpServerIOTarget conn, IOException ex)
           
protected  void onInputReady(NHttpServerIOTarget conn)
           
protected  void onOutputReady(NHttpServerIOTarget conn)
           
protected  void onTimeout(NHttpServerIOTarget conn)
           
 
Methods inherited from class org.apache.http.impl.nio.AbstractIODispatch
connected, disconnected, inputReady, outputReady, timeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultServerIODispatch

public DefaultServerIODispatch(NHttpServiceHandler handler,
                               NHttpConnectionFactory<NHttpServerIOTarget> connFactory)

DefaultServerIODispatch

public DefaultServerIODispatch(NHttpServiceHandler handler,
                               HttpParams params)

DefaultServerIODispatch

public DefaultServerIODispatch(NHttpServiceHandler handler,
                               SSLContext sslcontext,
                               SSLSetupHandler sslHandler,
                               HttpParams params)

DefaultServerIODispatch

public DefaultServerIODispatch(NHttpServiceHandler handler,
                               SSLContext sslcontext,
                               HttpParams params)
Method Detail

createConnection

protected NHttpServerIOTarget createConnection(IOSession session)
Specified by:
createConnection in class AbstractIODispatch<NHttpServerIOTarget>

onConnected

protected void onConnected(NHttpServerIOTarget conn)
Specified by:
onConnected in class AbstractIODispatch<NHttpServerIOTarget>

onClosed

protected void onClosed(NHttpServerIOTarget conn)
Specified by:
onClosed in class AbstractIODispatch<NHttpServerIOTarget>

onException

protected void onException(NHttpServerIOTarget conn,
                           IOException ex)
Specified by:
onException in class AbstractIODispatch<NHttpServerIOTarget>

onInputReady

protected void onInputReady(NHttpServerIOTarget conn)
Specified by:
onInputReady in class AbstractIODispatch<NHttpServerIOTarget>

onOutputReady

protected void onOutputReady(NHttpServerIOTarget conn)
Specified by:
onOutputReady in class AbstractIODispatch<NHttpServerIOTarget>

onTimeout

protected void onTimeout(NHttpServerIOTarget conn)
Specified by:
onTimeout in class AbstractIODispatch<NHttpServerIOTarget>


Copyright © 2005-2011 The Apache Software Foundation. All Rights Reserved.