org.apache.shindig.protocol
Interface HandlerExecutionListener

All Known Implementing Classes:
HandlerExecutionListener.LoggingHandler, HandlerExecutionListener.NoOpHandler

public interface HandlerExecutionListener

Called by the handler dispatcher prior to executing a handler. Used to allow containers to implement cross-cutting features such as request logging.


Nested Class Summary
static class HandlerExecutionListener.LoggingHandler
          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);
static class HandlerExecutionListener.NoOpHandler
          Default no-op implementation
 
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
 

Method Detail

executing

void executing(String service,
               String operation,
               RequestItem request)
Called prior to executing a REST or RPC handler

Parameters:
service - Name of the service being called
operation - Name of operation being called
request - being executed

executed

void executed(String service,
              String operation,
              RequestItem request)


Copyright © 2007-2012. All Rights Reserved.