Package org.apache.http.impl.nio.reactor
Class AbstractIODispatch<T>
- java.lang.Object
-
- org.apache.http.impl.nio.reactor.AbstractIODispatch<T>
-
- Type Parameters:
T- the connection type.
- All Implemented Interfaces:
IOEventDispatch
- Direct Known Subclasses:
DefaultClientIOEventDispatch,DefaultHttpClientIODispatch,DefaultHttpServerIODispatch,DefaultServerIOEventDispatch
public abstract class AbstractIODispatch<T> extends java.lang.Object implements IOEventDispatch
AbstractIOEventDispatchimplementation that supports both plain (non-encrypted) and SSL encrypted HTTP connections.- Since:
- 4.2
-
-
Field Summary
-
Fields inherited from interface org.apache.http.nio.reactor.IOEventDispatch
CONNECTION_KEY
-
-
Constructor Summary
Constructors Constructor Description AbstractIODispatch()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidconnected(IOSession session)Triggered after the given session has been just created.protected abstract TcreateConnection(IOSession session)voiddisconnected(IOSession session)Triggered when the given session has been terminated.voidinputReady(IOSession session)Triggered when the given session has input pending.protected abstract voidonClosed(T conn)protected abstract voidonConnected(T conn)protected abstract voidonException(T conn, java.io.IOException ex)protected abstract voidonInputReady(T conn)protected abstract voidonOutputReady(T conn)protected abstract voidonTimeout(T conn)voidoutputReady(IOSession session)Triggered when the given session is ready for output.voidtimeout(IOSession session)Triggered when the given session as timed out.
-
-
-
Method Detail
-
onConnected
protected abstract void onConnected(T conn)
-
onClosed
protected abstract void onClosed(T conn)
-
onException
protected abstract void onException(T conn, java.io.IOException ex)
-
onInputReady
protected abstract void onInputReady(T conn)
-
onOutputReady
protected abstract void onOutputReady(T conn)
-
onTimeout
protected abstract void onTimeout(T conn)
-
connected
public void connected(IOSession session)
Description copied from interface:IOEventDispatchTriggered after the given session has been just created.- Specified by:
connectedin interfaceIOEventDispatch- Parameters:
session- the I/O session.
-
disconnected
public void disconnected(IOSession session)
Description copied from interface:IOEventDispatchTriggered when the given session has been terminated.- Specified by:
disconnectedin interfaceIOEventDispatch- Parameters:
session- the I/O session.
-
inputReady
public void inputReady(IOSession session)
Description copied from interface:IOEventDispatchTriggered when the given session has input pending.- Specified by:
inputReadyin interfaceIOEventDispatch- Parameters:
session- the I/O session.
-
outputReady
public void outputReady(IOSession session)
Description copied from interface:IOEventDispatchTriggered when the given session is ready for output.- Specified by:
outputReadyin interfaceIOEventDispatch- Parameters:
session- the I/O session.
-
timeout
public void timeout(IOSession session)
Description copied from interface:IOEventDispatchTriggered when the given session as timed out.- Specified by:
timeoutin interfaceIOEventDispatch- Parameters:
session- the I/O session.
-
-