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.NHttpClientEventHandler
IOException
org.apache.http.HttpException
public void closed(org.apache.http.nio.NHttpClientConnection conn)
closed
in interface org.apache.http.nio.NHttpClientEventHandler
public void endOfInput(org.apache.http.nio.NHttpClientConnection conn) throws IOException
endOfInput
in interface org.apache.http.nio.NHttpClientEventHandler
IOException
public void exception(org.apache.http.nio.NHttpClientConnection conn, Exception ex)
exception
in interface org.apache.http.nio.NHttpClientEventHandler
public void requestReady(org.apache.http.nio.NHttpClientConnection conn) throws IOException, org.apache.http.HttpException
requestReady
in interface org.apache.http.nio.NHttpClientEventHandler
IOException
org.apache.http.HttpException
public 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.NHttpClientEventHandler
IOException
org.apache.http.HttpException
public void responseReceived(org.apache.http.nio.NHttpClientConnection conn) throws IOException, org.apache.http.HttpException
responseReceived
in interface org.apache.http.nio.NHttpClientEventHandler
IOException
org.apache.http.HttpException
public 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.NHttpClientEventHandler
IOException
org.apache.http.HttpException
public void timeout(org.apache.http.nio.NHttpClientConnection conn) throws IOException, org.apache.http.HttpException
timeout
in interface org.apache.http.nio.NHttpClientEventHandler
IOException
org.apache.http.HttpException
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.