ContainerRequestType - An implementation of HttpServletRequestContainerResponseType - An implementation of HttpServletResponsepublic class ApacheCombinedServletLogFormatter<ContainerRequestType extends javax.servlet.http.HttpServletRequest,ContainerResponseType extends javax.servlet.http.HttpServletResponse> extends java.lang.Object implements LogFormatter<ContainerRequestType,ContainerResponseType>
HttpServletRequest and HttpServletResponse implementations produced
a log line in the Apache combined log format: https://httpd.apache.org/docs/2.4/logs.html| Constructor and Description |
|---|
ApacheCombinedServletLogFormatter() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
format(ContainerRequestType servletRequest,
ContainerResponseType servletResponse,
javax.ws.rs.core.SecurityContext ctx)
The format method is called by the container handler to produce the log line that should be written to the logs.
|
public java.lang.String format(ContainerRequestType servletRequest, ContainerResponseType servletResponse, javax.ws.rs.core.SecurityContext ctx)
LogFormatterformat in interface LogFormatter<ContainerRequestType extends javax.servlet.http.HttpServletRequest,ContainerResponseType extends javax.servlet.http.HttpServletResponse>servletRequest - The incoming requestservletResponse - The completed responsectx - The security context produced based on the requestCopyright © 2018. All Rights Reserved.