org.gcube.common.ghn.service.events
Class RequestEvent
java.lang.Object
org.gcube.common.ghn.service.events.ApplicationEvent<RequestHandler>
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()
|
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 applicationservlet - the name of the target servletrequest - the client request
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.