|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.smartgears.handlers.AbstractHandler
org.gcube.smartgears.handlers.application.RequestHandler
public abstract class RequestHandler
A Handler of RequestEvents and ResponseEvents.
The handler participates in a ApplicationPipeline 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
ApplicationPipeline ApplicationPipeline#forward(ApplicationEvent).
RequestEvent,
ResponseEvent,
ApplicationPipeline| 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.smartgears.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)
Handler
onEvent in interface Handler<ApplicationEvent<RequestHandler>>public void stop()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||