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 app.

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.http.HttpServletRequest request, javax.servlet.ServletContext ctx)
          Creates an instance with the request and the name of the target servlet.
 
Method Summary
 javax.servlet.http.HttpServletRequest request()
          Returns the request.
 javax.servlet.ServletContext servletContext()
           
 String servletName()
          Returns the name of the target servlet.
 String toString()
           
 String uri()
           
 
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.http.HttpServletRequest request,
                    javax.servlet.ServletContext ctx)
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.

servletContext

public javax.servlet.ServletContext servletContext()

uri

public String uri()

request

public javax.servlet.http.HttpServletRequest request()
Returns the request.

Returns:
the request

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.