public class RequestEvent extends ApplicationEvent<RequestHandler>
ApplicationEvent that occurs when an application receives a request.| Constructor and Description |
|---|
RequestEvent(String servlet,
ApplicationContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Creates an instance with the application context, the client request, and the name of the target servlet.
|
| Modifier and Type | Method and Description |
|---|---|
javax.servlet.http.HttpServletRequest |
request()
Returns the client request.
|
javax.servlet.http.HttpServletResponse |
response()
Returns the response.
|
String |
servlet()
Returns the name of the target servlet.
|
String |
toString() |
String |
uri() |
public RequestEvent(String servlet, ApplicationContext context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
context - the context of the applicationservlet - the name of the target servletrequest - the client requestpublic String servlet()
public String uri()
public javax.servlet.http.HttpServletRequest request()
public javax.servlet.http.HttpServletResponse response()
public String toString()
toString in class Event<ApplicationContext>Copyright © 2020. All Rights Reserved.