|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jersey.api.container.filter.LoggingFilter
public class LoggingFilter
A logging filter.
The request headers, request entity, response headers and response entity will be logged. By default logging will be output to System.out.
When an application is deployed as a Servlet or Filter this Jersey filter can be registered using the following initialization parameters:
<init-param>
<param-name>com.sun.jersey.spi.container.ContainerRequestFilters</param-name>
<param-value>com.sun.jersey.api.container.filter.LoggingFilter</param-value>
</init-param>
<init-param>
<param-name>com.sun.jersey.spi.container.ContainerResponseFilters</param-name>
<param-value>com.sun.jersey.api.container.filter.LoggingFilter</param-value>
</init-param>
com.sun.jersey.api.container.filter| Constructor Summary | |
|---|---|
LoggingFilter()
|
|
LoggingFilter(java.io.PrintStream loggingStream)
|
|
| Method Summary | |
|---|---|
ContainerRequest |
filter(ContainerRequest request)
Filter the request. |
ContainerResponse |
filter(ContainerRequest request,
ContainerResponse response)
Filter the response. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LoggingFilter()
public LoggingFilter(java.io.PrintStream loggingStream)
| Method Detail |
|---|
public ContainerRequest filter(ContainerRequest request)
ContainerRequestFilterAn implementation may modify the state of the request or create a new instance.
filter in interface ContainerRequestFilterrequest - the request.
public ContainerResponse filter(ContainerRequest request,
ContainerResponse response)
ContainerResponseFilterAn implementation may modify the state of the response or return a new instance.
filter in interface ContainerResponseFilterrequest - the request.response - the response.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||