Package org.apache.http.impl.nio.client
Class InternalRequestExecutor
java.lang.Object
org.apache.http.impl.nio.client.InternalRequestExecutor
- All Implemented Interfaces:
org.apache.http.nio.NHttpClientEventHandler
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInternalRequestExecutor
(org.apache.commons.logging.Log log, org.apache.http.nio.NHttpClientEventHandler handler) -
Method Summary
Modifier and TypeMethodDescriptionvoid
closed
(org.apache.http.nio.NHttpClientConnection conn) void
void
endOfInput
(org.apache.http.nio.NHttpClientConnection conn) void
void
inputReady
(org.apache.http.nio.NHttpClientConnection conn, org.apache.http.nio.ContentDecoder decoder) void
outputReady
(org.apache.http.nio.NHttpClientConnection conn, org.apache.http.nio.ContentEncoder encoder) void
requestReady
(org.apache.http.nio.NHttpClientConnection conn) void
responseReceived
(org.apache.http.nio.NHttpClientConnection conn) void
timeout
(org.apache.http.nio.NHttpClientConnection conn)
-
Field Details
-
log
private final org.apache.commons.logging.Log log -
handler
private final org.apache.http.nio.NHttpClientEventHandler handler
-
-
Constructor Details
-
InternalRequestExecutor
public InternalRequestExecutor(org.apache.commons.logging.Log log, org.apache.http.nio.NHttpClientEventHandler handler)
-
-
Method Details
-
connected
public void connected(org.apache.http.nio.NHttpClientConnection conn, Object attachment) throws IOException, org.apache.http.HttpException - Specified by:
connected
in interfaceorg.apache.http.nio.NHttpClientEventHandler
- Throws:
IOException
org.apache.http.HttpException
-
closed
public void closed(org.apache.http.nio.NHttpClientConnection conn) - Specified by:
closed
in interfaceorg.apache.http.nio.NHttpClientEventHandler
-
requestReady
public void requestReady(org.apache.http.nio.NHttpClientConnection conn) throws IOException, org.apache.http.HttpException - Specified by:
requestReady
in interfaceorg.apache.http.nio.NHttpClientEventHandler
- Throws:
IOException
org.apache.http.HttpException
-
inputReady
public void inputReady(org.apache.http.nio.NHttpClientConnection conn, org.apache.http.nio.ContentDecoder decoder) throws IOException, org.apache.http.HttpException - Specified by:
inputReady
in interfaceorg.apache.http.nio.NHttpClientEventHandler
- Throws:
IOException
org.apache.http.HttpException
-
outputReady
public void outputReady(org.apache.http.nio.NHttpClientConnection conn, org.apache.http.nio.ContentEncoder encoder) throws IOException, org.apache.http.HttpException - Specified by:
outputReady
in interfaceorg.apache.http.nio.NHttpClientEventHandler
- Throws:
IOException
org.apache.http.HttpException
-
responseReceived
public void responseReceived(org.apache.http.nio.NHttpClientConnection conn) throws org.apache.http.HttpException, IOException - Specified by:
responseReceived
in interfaceorg.apache.http.nio.NHttpClientEventHandler
- Throws:
org.apache.http.HttpException
IOException
-
timeout
public void timeout(org.apache.http.nio.NHttpClientConnection conn) throws org.apache.http.HttpException, IOException - Specified by:
timeout
in interfaceorg.apache.http.nio.NHttpClientEventHandler
- Throws:
org.apache.http.HttpException
IOException
-
exception
- Specified by:
exception
in interfaceorg.apache.http.nio.NHttpClientEventHandler
-
endOfInput
- Specified by:
endOfInput
in interfaceorg.apache.http.nio.NHttpClientEventHandler
- Throws:
IOException
-