public class LoggingClientEventHandler extends Object implements org.apache.http.nio.NHttpClientEventHandler
| Constructor and Description |
|---|
LoggingClientEventHandler(org.apache.http.nio.NHttpClientEventHandler handler)
Create a new instance of the decorator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
closed(org.apache.http.nio.NHttpClientConnection conn) |
void |
connected(org.apache.http.nio.NHttpClientConnection conn,
Object attachment) |
void |
endOfInput(org.apache.http.nio.NHttpClientConnection conn) |
void |
exception(org.apache.http.nio.NHttpClientConnection conn,
Exception ex) |
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) |
public LoggingClientEventHandler(org.apache.http.nio.NHttpClientEventHandler handler)
handler - The instance of NHttpClientEventHandler to be decorated (wrapped)public void connected(org.apache.http.nio.NHttpClientConnection conn,
Object attachment)
throws IOException,
org.apache.http.HttpException
connected in interface org.apache.http.nio.NHttpClientEventHandlerIOExceptionorg.apache.http.HttpExceptionpublic void closed(org.apache.http.nio.NHttpClientConnection conn)
closed in interface org.apache.http.nio.NHttpClientEventHandlerpublic void endOfInput(org.apache.http.nio.NHttpClientConnection conn)
throws IOException
endOfInput in interface org.apache.http.nio.NHttpClientEventHandlerIOExceptionpublic void exception(org.apache.http.nio.NHttpClientConnection conn,
Exception ex)
exception in interface org.apache.http.nio.NHttpClientEventHandlerpublic void requestReady(org.apache.http.nio.NHttpClientConnection conn)
throws IOException,
org.apache.http.HttpException
requestReady in interface org.apache.http.nio.NHttpClientEventHandlerIOExceptionorg.apache.http.HttpExceptionpublic void outputReady(org.apache.http.nio.NHttpClientConnection conn,
org.apache.http.nio.ContentEncoder encoder)
throws IOException,
org.apache.http.HttpException
outputReady in interface org.apache.http.nio.NHttpClientEventHandlerIOExceptionorg.apache.http.HttpExceptionpublic void responseReceived(org.apache.http.nio.NHttpClientConnection conn)
throws IOException,
org.apache.http.HttpException
responseReceived in interface org.apache.http.nio.NHttpClientEventHandlerIOExceptionorg.apache.http.HttpExceptionpublic void inputReady(org.apache.http.nio.NHttpClientConnection conn,
org.apache.http.nio.ContentDecoder decoder)
throws IOException,
org.apache.http.HttpException
inputReady in interface org.apache.http.nio.NHttpClientEventHandlerIOExceptionorg.apache.http.HttpExceptionpublic void timeout(org.apache.http.nio.NHttpClientConnection conn)
throws IOException,
org.apache.http.HttpException
timeout in interface org.apache.http.nio.NHttpClientEventHandlerIOExceptionorg.apache.http.HttpExceptionCopyright © 2005-2017 Apache Software Foundation. All Rights Reserved.