|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.common.ghn.service.handlers.AbstractHandler<RequestHandler>
org.gcube.common.ghn.service.handlers.RequestHandler
public abstract class RequestHandler
A Handler of RequestEvents and ResponseEvents.
The handler participates in a Pipeline of other handlers registered for notification of the same events.
After processing the event, it may or may not propagate the event to the handlers further down in the
Pipeline Pipeline.forward(ApplicationEvent).
RequestEvent,
ResponseEvent,
Pipeline| Constructor Summary | |
|---|---|
RequestHandler()
|
|
| Method Summary | |
|---|---|
void |
handleRequest(RequestEvent e)
Invoked when the container receives a request for a servlet of a managed app. |
void |
handleResponse(ResponseEvent e)
Invoked when a servlet of a managed app has produced a response to a request. |
void |
onEvent(ApplicationEvent<RequestHandler> e)
Processes a given event. |
void |
start(ApplicationContext ctx)
Initialises the handler. |
void |
stop()
Terminates the handler. |
| Methods inherited from class org.gcube.common.ghn.service.handlers.AbstractHandler |
|---|
toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RequestHandler()
| Method Detail |
|---|
public void start(ApplicationContext ctx)
ctx - the servlet context of the managed app.public void handleRequest(RequestEvent e)
pipeline - the pipeline in which this handler is registerede - the eventpublic void handleResponse(ResponseEvent e)
pipeline - the pipeline in which this handler is registerede - the eventpublic void onEvent(ApplicationEvent<RequestHandler> e)
ApplicationHandler
e - the eventpublic void stop()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||