nl.surfnet.coin.shared.log
Class ApiCallLogContextListener
java.lang.Object
nl.surfnet.coin.shared.log.ApiCallLogContextListener
- All Implemented Interfaces:
- EventListener, javax.servlet.ServletRequestListener
public class ApiCallLogContextListener
- extends Object
- implements javax.servlet.ServletRequestListener
ServletRequestListener for storing information that needs to end up
in the log regarding calls to SURFconext endpoints in the Request local
thread. Because not all information is 'present' on the place where we
actually store the log record (e.g. shindig service implementation) and we
can't modify all Shindig interfaces to pass the info we need to apply the
ThreadLocal strategy.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ApiCallLogContextListener
public ApiCallLogContextListener()
requestDestroyed
public void requestDestroyed(javax.servlet.ServletRequestEvent sre)
- Specified by:
requestDestroyed in interface javax.servlet.ServletRequestListener
requestInitialized
public void requestInitialized(javax.servlet.ServletRequestEvent requestEvent)
- Specified by:
requestInitialized in interface javax.servlet.ServletRequestListener
getApiCallLog
public static ApiCallLog getApiCallLog()
- Get the ApiCallLog of the current thread
- Returns:
- the apiCallLog
Copyright © 2009-2013 SURFnet bv, The Netherlands. All Rights Reserved.