nl.surfnet.coin.shared.log
Class ApiCallLogContextListener

java.lang.Object
  extended by 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.


Constructor Summary
ApiCallLogContextListener()
           
 
Method Summary
static ApiCallLog getApiCallLog()
          Get the ApiCallLog of the current thread
 void requestDestroyed(javax.servlet.ServletRequestEvent sre)
           
 void requestInitialized(javax.servlet.ServletRequestEvent requestEvent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApiCallLogContextListener

public ApiCallLogContextListener()
Method Detail

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-2012 SURFnet bv, The Netherlands. All Rights Reserved.