org.apache.shindig.protocol
Class HandlerExecutionListener.LoggingHandler

java.lang.Object
  extended by org.apache.shindig.protocol.HandlerExecutionListener.LoggingHandler
All Implemented Interfaces:
HandlerExecutionListener
Enclosing interface:
HandlerExecutionListener

public static class HandlerExecutionListener.LoggingHandler
extends Object
implements HandlerExecutionListener

A simple implementation that logs the start/stop times of requests You can configure this for use by adding a binding in your Guice Module like this: bind(HandlerExecutionListener.class).to(HandlerExecutionListener.LoggingHandler.class);


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.shindig.protocol.HandlerExecutionListener
HandlerExecutionListener.LoggingHandler, HandlerExecutionListener.NoOpHandler
 
Field Summary
static Logger LOG
           
 
Constructor Summary
HandlerExecutionListener.LoggingHandler()
           
 
Method Summary
 void executed(String service, String operation, RequestItem request)
           
 void executing(String service, String operation, RequestItem request)
          Called prior to executing a REST or RPC handler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final Logger LOG
Constructor Detail

HandlerExecutionListener.LoggingHandler

public HandlerExecutionListener.LoggingHandler()
Method Detail

executing

public void executing(String service,
                      String operation,
                      RequestItem request)
Description copied from interface: HandlerExecutionListener
Called prior to executing a REST or RPC handler

Specified by:
executing in interface HandlerExecutionListener
Parameters:
service - Name of the service being called
operation - Name of operation being called
request - being executed

executed

public void executed(String service,
                     String operation,
                     RequestItem request)
Specified by:
executed in interface HandlerExecutionListener


Copyright © 2007-2012. All Rights Reserved.