|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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 |
|---|
void executing(String service,
String operation,
RequestItem request)
service - Name of the service being calledoperation - Name of operation being calledrequest - being executed
void executed(String service,
String operation,
RequestItem request)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||