org.apache.axis2.transport.nhttp
Class LoggingNHttpServiceHandler

java.lang.Object
  extended by org.apache.axis2.transport.nhttp.LoggingNHttpServiceHandler
All Implemented Interfaces:
org.apache.http.nio.NHttpServiceHandler

public class LoggingNHttpServiceHandler
extends java.lang.Object
implements org.apache.http.nio.NHttpServiceHandler

Decorator class intended to transparently extend an NHttpServiceHandler with basic event logging capabilities using Commons Logging.


Constructor Summary
LoggingNHttpServiceHandler(org.apache.http.nio.NHttpServiceHandler handler)
           
 
Method Summary
 void closed(org.apache.http.nio.NHttpServerConnection conn)
           
 void connected(org.apache.http.nio.NHttpServerConnection conn)
           
 void exception(org.apache.http.nio.NHttpServerConnection conn, org.apache.http.HttpException ex)
           
 void exception(org.apache.http.nio.NHttpServerConnection conn, java.io.IOException 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingNHttpServiceHandler

public LoggingNHttpServiceHandler(org.apache.http.nio.NHttpServiceHandler handler)
Method Detail

connected

public void connected(org.apache.http.nio.NHttpServerConnection conn)
Specified by:
connected in interface org.apache.http.nio.NHttpServiceHandler

closed

public void closed(org.apache.http.nio.NHttpServerConnection conn)
Specified by:
closed in interface org.apache.http.nio.NHttpServiceHandler

exception

public void exception(org.apache.http.nio.NHttpServerConnection conn,
                      java.io.IOException ex)
Specified by:
exception in interface org.apache.http.nio.NHttpServiceHandler

exception

public void exception(org.apache.http.nio.NHttpServerConnection conn,
                      org.apache.http.HttpException ex)
Specified by:
exception in interface org.apache.http.nio.NHttpServiceHandler

requestReceived

public void requestReceived(org.apache.http.nio.NHttpServerConnection conn)
Specified by:
requestReceived in interface org.apache.http.nio.NHttpServiceHandler

outputReady

public void outputReady(org.apache.http.nio.NHttpServerConnection conn,
                        org.apache.http.nio.ContentEncoder encoder)
Specified by:
outputReady in interface org.apache.http.nio.NHttpServiceHandler

responseReady

public void responseReady(org.apache.http.nio.NHttpServerConnection conn)
Specified by:
responseReady in interface org.apache.http.nio.NHttpServiceHandler

inputReady

public void inputReady(org.apache.http.nio.NHttpServerConnection conn,
                       org.apache.http.nio.ContentDecoder decoder)
Specified by:
inputReady in interface org.apache.http.nio.NHttpServiceHandler

timeout

public void timeout(org.apache.http.nio.NHttpServerConnection conn)
Specified by:
timeout in interface org.apache.http.nio.NHttpServiceHandler


Copyright © 2007 Apache Web Services Project. All Rights Reserved.