org.abstracthorizon.danube.support.logging
Class AccessLogConnectionHandler.DateWrapper
java.lang.Object
   org.abstracthorizon.danube.connection.ConnectionWrapper
org.abstracthorizon.danube.connection.ConnectionWrapper
       org.abstracthorizon.danube.support.logging.AccessLogConnectionHandler.DateWrapper
org.abstracthorizon.danube.support.logging.AccessLogConnectionHandler.DateWrapper
- All Implemented Interfaces: 
- Adaptable, Connection
- Enclosing class:
- AccessLogConnectionHandler
- public static class AccessLogConnectionHandler.DateWrapper 
- extends ConnectionWrapper
Simple connection wrapper that adds handling started time in milliseconds
- Author:
- Daniel Sendula
 
 
 
| Method Summary | 
| 
 | adapt(Class<T> cls)If this class is request than returns this object otherwise calls super method
 | 
|  long | getHandlingStarted()Returns handling started time
 | 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
AccessLogConnectionHandler.DateWrapper
public AccessLogConnectionHandler.DateWrapper(Connection connection,
                                              long handlingStarted)
- Constructor
 
- Parameters:
- connection- connection to be wrapped
- handlingStarted- handling started time
 
getHandlingStarted
public long getHandlingStarted()
- Returns handling started time
 
- 
- Returns:
- handling started time
 
adapt
public <T> T adapt(Class<T> cls)
- If this class is request than returns this object otherwise calls super method
 
- 
- Specified by:
- adaptin interface- Adaptable
- Overrides:
- adaptin class- ConnectionWrapper
 
- 
- Parameters:
- cls- class to be adapted to
- Returns:
- adapted object or nothing
 
Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.