|
||||||||||
| 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(ServiceEvent).
RequestEvent,
ResponseEvent,
Pipeline| Constructor Summary | |
|---|---|
RequestHandler()
|
|
| Method Summary | |
|---|---|
void |
handleRequest(Pipeline<RequestHandler> pipeline,
RequestEvent e)
Invoked when the container receives a request for a servlet of a managed app. |
void |
handleResponse(Pipeline<RequestHandler> pipeline,
ResponseEvent e)
Invoked when a servlet of a managed app has produced a response to a request. |
void |
onEvent(Pipeline<RequestHandler> pipeline,
ServiceEvent<RequestHandler> e)
Processes a given event. |
void |
start(javax.servlet.ServletContext 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 |
| Methods inherited from interface org.gcube.common.ghn.service.handlers.ServiceHandler |
|---|
name |
| Constructor Detail |
|---|
public RequestHandler()
| Method Detail |
|---|
public void start(javax.servlet.ServletContext ctx)
ctx - the servlet context of the managed app.
public void handleRequest(Pipeline<RequestHandler> pipeline,
RequestEvent e)
pipeline - the pipeline in which this handler is registerede - the event
public void handleResponse(Pipeline<RequestHandler> pipeline,
ResponseEvent e)
pipeline - the pipeline in which this handler is registerede - the event
public void onEvent(Pipeline<RequestHandler> pipeline,
ServiceEvent<RequestHandler> e)
ServiceHandler
pipeline - the pipeline in which the handler is registered.e - the eventpublic void stop()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||