org.springframework.web.servlet.FrameworkServlet , org.springframework.context.ApplicationContext#publishEvent
| Modifier and Type | Field and Description |
|---|---|
| private final String | clientAddress
IP address that the request came from. |
| private final String | method
Usually GET or POST. |
| private final String | requestUrl
URL that triggered the request. |
| private final String | servletName
Name of the servlet that handled the request. |
| private final int | statusCode
HTTP status code of the response. |
| Access | Constructor and Description |
|---|---|
| public | ServletRequestHandledEvent(Object
the component that published the event source, String the URL of the request requestUrl, String the IP address that the request came from clientAddress, String the HTTP method of the request (usually GET or POST) method, String the name of the servlet that handled the request servletName, String the id of the HTTP session, if any sessionId, String the name of the user that was associated with the
request, if any (usually the UserPrincipal) userName, long the processing time of the request in milliseconds processingTimeMillis)Create a new ServletRequestHandledEvent. |
| public | ServletRequestHandledEvent(Object
the component that published the event source, String the URL of the request requestUrl, String the IP address that the request came from clientAddress, String the HTTP method of the request (usually GET or POST) method, String the name of the servlet that handled the request servletName, String the id of the HTTP session, if any sessionId, String the name of the user that was associated with the
request, if any (usually the UserPrincipal) userName, long the processing time of the request in milliseconds processingTimeMillis, Throwable the cause of failure, if any failureCause)Create a new ServletRequestHandledEvent. |
| public | ServletRequestHandledEvent(Object
the component that published the event source, String the URL of the request requestUrl, String the IP address that the request came from clientAddress, String the HTTP method of the request (usually GET or POST) method, String the name of the servlet that handled the request servletName, String the id of the HTTP session, if any sessionId, String the name of the user that was associated with the
request, if any (usually the UserPrincipal) userName, long the processing time of the request in milliseconds processingTimeMillis, Throwable the cause of failure, if any failureCause, int the HTTP status code of the response statusCode)Create a new ServletRequestHandledEvent. |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | getDescription()
Overrides org. |
| public String | |
| public String | |
| public String | |
| public String | getShortDescription()
Overrides org. |
| public int | getStatusCode()
Return the HTTP status code of the response or -1 if the status code is not available. |
| public String | toString()
Overrides org. |
| clientAddress | back to summary |
|---|---|
| private final String clientAddress IP address that the request came from. | |
| method | back to summary |
|---|---|
| private final String method Usually GET or POST. | |
| requestUrl | back to summary |
|---|---|
| private final String requestUrl URL that triggered the request. | |
| servletName | back to summary |
|---|---|
| private final String servletName Name of the servlet that handled the request. | |
| statusCode | back to summary |
|---|---|
| private final int statusCode HTTP status code of the response. | |
| ServletRequestHandledEvent | back to summary |
|---|---|
| public ServletRequestHandledEvent(Object source, String requestUrl, String clientAddress, String method, String servletName, String sessionId, String userName, long processingTimeMillis) Create a new ServletRequestHandledEvent.
| |
| ServletRequestHandledEvent | back to summary |
|---|---|
| public ServletRequestHandledEvent(Object source, String requestUrl, String clientAddress, String method, String servletName, String sessionId, String userName, long processingTimeMillis, Throwable failureCause) Create a new ServletRequestHandledEvent.
| |
| ServletRequestHandledEvent | back to summary |
|---|---|
| public ServletRequestHandledEvent(Object source, String requestUrl, String clientAddress, String method, String servletName, String sessionId, String userName, long processingTimeMillis, Throwable failureCause, int statusCode) Create a new ServletRequestHandledEvent.
| |
| getClientAddress | back to summary |
|---|---|
| public String getClientAddress() Return the IP address that the request came from. | |
| getDescription | back to summary |
|---|---|
| public String getDescription() Overrides org. Doc from org. Return a full description of this event, involving all available context data.
| |
| getMethod | back to summary |
|---|---|
| public String getMethod() Return the HTTP method of the request (usually GET or POST). | |
| getRequestUrl | back to summary |
|---|---|
| public String getRequestUrl() Return the URL of the request. | |
| getServletName | back to summary |
|---|---|
| public String getServletName() Return the name of the servlet that handled the request. | |
| getShortDescription | back to summary |
|---|---|
| public String getShortDescription() Overrides org. Doc from org. Return a short description of this event, only involving the most important context data.
| |
| getStatusCode | back to summary |
|---|---|
| public int getStatusCode() Return the HTTP status code of the response or -1 if the status code is not available.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a String representation of this EventObject. | |