public class LoggingServerEventHandler extends Object implements org.apache.http.nio.NHttpServerEventHandler
Constructor and Description |
---|
LoggingServerEventHandler(org.apache.http.nio.NHttpServerEventHandler handler)
Create a new instance of the decorator.
|
Modifier and Type | Method and Description |
---|---|
void |
closed(org.apache.http.nio.NHttpServerConnection conn) |
void |
connected(org.apache.http.nio.NHttpServerConnection conn) |
void |
endOfInput(org.apache.http.nio.NHttpServerConnection conn) |
void |
exception(org.apache.http.nio.NHttpServerConnection conn,
Exception ex) |
void |
inputReady(org.apache.http.nio.NHttpServerConnection conn,
org.apache.http.nio.ContentDecoder decoder) |
void |
outputReady(org.apache.http.nio.NHttpServerConnection conn,
org.apache.http.nio.ContentEncoder encoder) |
void |
requestReceived(org.apache.http.nio.NHttpServerConnection conn) |
void |
responseReady(org.apache.http.nio.NHttpServerConnection conn) |
void |
timeout(org.apache.http.nio.NHttpServerConnection conn) |
public LoggingServerEventHandler(org.apache.http.nio.NHttpServerEventHandler handler)
handler
- The instance of NHttpServerEventHandler to be decorated (wrapped)public void connected(org.apache.http.nio.NHttpServerConnection conn) throws IOException, org.apache.http.HttpException
connected
in interface org.apache.http.nio.NHttpServerEventHandler
IOException
org.apache.http.HttpException
public void closed(org.apache.http.nio.NHttpServerConnection conn)
closed
in interface org.apache.http.nio.NHttpServerEventHandler
public void endOfInput(org.apache.http.nio.NHttpServerConnection conn) throws IOException
endOfInput
in interface org.apache.http.nio.NHttpServerEventHandler
IOException
public void exception(org.apache.http.nio.NHttpServerConnection conn, Exception ex)
exception
in interface org.apache.http.nio.NHttpServerEventHandler
public void requestReceived(org.apache.http.nio.NHttpServerConnection conn) throws IOException, org.apache.http.HttpException
requestReceived
in interface org.apache.http.nio.NHttpServerEventHandler
IOException
org.apache.http.HttpException
public void outputReady(org.apache.http.nio.NHttpServerConnection conn, org.apache.http.nio.ContentEncoder encoder) throws IOException, org.apache.http.HttpException
outputReady
in interface org.apache.http.nio.NHttpServerEventHandler
IOException
org.apache.http.HttpException
public void responseReady(org.apache.http.nio.NHttpServerConnection conn) throws IOException, org.apache.http.HttpException
responseReady
in interface org.apache.http.nio.NHttpServerEventHandler
IOException
org.apache.http.HttpException
public void inputReady(org.apache.http.nio.NHttpServerConnection conn, org.apache.http.nio.ContentDecoder decoder) throws IOException, org.apache.http.HttpException
inputReady
in interface org.apache.http.nio.NHttpServerEventHandler
IOException
org.apache.http.HttpException
public void timeout(org.apache.http.nio.NHttpServerConnection conn) throws IOException
timeout
in interface org.apache.http.nio.NHttpServerEventHandler
IOException
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.