|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.http.impl.nio.reactor.AbstractIODispatch<T>
T
- the connection type.public abstract class AbstractIODispatch<T>
Abstract IOEventDispatch
implementation that supports both plain (non-encrypted)
and SSL encrypted HTTP connections.
Field Summary |
---|
Fields inherited from interface org.apache.http.nio.reactor.IOEventDispatch |
---|
CONNECTION_KEY |
Constructor Summary | |
---|---|
AbstractIODispatch()
|
Method Summary | |
---|---|
void |
connected(IOSession session)
Triggered after the given session has been just created. |
protected abstract T |
createConnection(IOSession session)
|
void |
disconnected(IOSession session)
Triggered when the given session has been terminated. |
void |
inputReady(IOSession session)
Triggered when the given session has input pending. |
protected abstract void |
onClosed(T conn)
|
protected abstract void |
onConnected(T conn)
|
protected abstract void |
onException(T conn,
IOException ex)
|
protected abstract void |
onInputReady(T conn)
|
protected abstract void |
onOutputReady(T conn)
|
protected abstract void |
onTimeout(T conn)
|
void |
outputReady(IOSession session)
Triggered when the given session is ready for output. |
void |
timeout(IOSession session)
Triggered when the given session as timed out. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractIODispatch()
Method Detail |
---|
protected abstract T createConnection(IOSession session)
protected abstract void onConnected(T conn)
protected abstract void onClosed(T conn)
protected abstract void onException(T conn, IOException ex)
protected abstract void onInputReady(T conn)
protected abstract void onOutputReady(T conn)
protected abstract void onTimeout(T conn)
public void connected(IOSession session)
IOEventDispatch
connected
in interface IOEventDispatch
session
- the I/O session.public void disconnected(IOSession session)
IOEventDispatch
disconnected
in interface IOEventDispatch
session
- the I/O session.public void inputReady(IOSession session)
IOEventDispatch
inputReady
in interface IOEventDispatch
session
- the I/O session.public void outputReady(IOSession session)
IOEventDispatch
outputReady
in interface IOEventDispatch
session
- the I/O session.public void timeout(IOSession session)
IOEventDispatch
timeout
in interface IOEventDispatch
session
- the I/O session.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |