Class RequestEvent
java.lang.Object
org.gcube.smartgears.handlers.Event<ApplicationContext>
org.gcube.smartgears.handlers.application.ApplicationEvent<RequestHandler>
org.gcube.smartgears.handlers.application.RequestEvent
- Direct Known Subclasses:
ResponseEvent
An
ApplicationEvent that occurs when an application receives a request.- Author:
- Fabio Simeoni
-
Constructor Summary
ConstructorsConstructorDescriptionRequestEvent(String servlet, ApplicationContext context, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Creates an instance with the application context, the client request, and the name of the target servlet. -
Method Summary
-
Constructor Details
-
RequestEvent
public RequestEvent(String servlet, ApplicationContext context, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) 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
-
-
Method Details
-
servlet
Returns the name of the target servlet.- Returns:
- the name of the servlet.
-
uri
-
request
public jakarta.servlet.http.HttpServletRequest request()Returns the client request.- Returns:
- the request
-
response
public jakarta.servlet.http.HttpServletResponse response()Returns the response.- Returns:
- the response
-
toString
- Overrides:
toStringin classEvent<ApplicationContext>
-