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

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

public class RequestEvent
extends ApplicationEvent<RequestHandler>

An ApplicationEvent that occurs when a request reaches a servlet of the application.

Author:
Fabio Simeoni

Constructor Summary
RequestEvent(String servlet, ApplicationContext context, javax.servlet.http.HttpServletRequest request)
          Creates an instance with the application context, the client request, and the name of the target servlet.
 
Method Summary
 javax.servlet.http.HttpServletRequest request()
          Returns the client request.
 String servlet()
          Returns the name of the target servlet.
 String uri()
           
 
Methods inherited from class org.gcube.common.ghn.service.events.ApplicationEvent
context, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RequestEvent

public RequestEvent(String servlet,
                    ApplicationContext context,
                    javax.servlet.http.HttpServletRequest request)
Creates an instance with the application context, the client request, and the name of the target servlet.

Parameters:
context - the context of the application
servlet - the name of the target servlet
request - the client request
Method Detail

servlet

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

Returns:
the name of the servlet.

uri

public String uri()

request

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

Returns:
the request


Copyright © 2013. All Rights Reserved.