org.gcube.common.ghn.service.events
Class RequestEvent

java.lang.Object
  extended by org.gcube.common.ghn.service.events.RequestEvent
All Implemented Interfaces:
ServiceEvent<RequestHandler>
Direct Known Subclasses:
ResponseEvent

public class RequestEvent
extends Object
implements ServiceEvent<RequestHandler>

A ServiceEvent that occurs when the a request reaches a servlet of the managed service.

The event is passed to RequestHandler registered in the Pipeline's of RequestFilter.

Author:
Fabio Simeoni
See Also:
RequestHandler, Pipeline, RequestFilter

Constructor Summary
RequestEvent(String servletName, javax.servlet.ServletRequest request)
          Creates an instance with the request and the name of the target servlet.
 
Method Summary
 javax.servlet.ServletRequest request()
          Returns the request.
 String servletName()
          Returns the name of the target servlet.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RequestEvent

public RequestEvent(String servletName,
                    javax.servlet.ServletRequest request)
Creates an instance with the request and the name of the target servlet.

Parameters:
servletName - the name of the servlet
request - the request
Method Detail

servletName

public String servletName()
Returns the name of the target servlet.

Returns:
the name of the servlet.

request

public javax.servlet.ServletRequest request()
Returns the request.

Returns:
the request

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.