@Provider public class HttpLoggerForJersey extends Object implements javax.ws.rs.container.ContainerResponseFilter, javax.ws.rs.ext.ReaderInterceptor, javax.ws.rs.ext.WriterInterceptor
| Modifier and Type | Field and Description |
|---|---|
protected HttpLogger |
logger |
| Constructor and Description |
|---|
HttpLoggerForJersey(List<String> queue)
Initialize enabled logger using queue and default rules.
|
HttpLoggerForJersey(List<String> queue,
String rules)
Initialize enabled logger using queue and specified rules.
|
HttpLoggerForJersey(String url)
Initialize logger using specified url and default rules.
|
HttpLoggerForJersey(String url,
String rules)
Initialize logger using specified url and specified rules.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
aroundReadFrom(javax.ws.rs.ext.ReaderInterceptorContext context)
Interceptor method called when reading from the request body.
|
void |
aroundWriteTo(javax.ws.rs.ext.WriterInterceptorContext context)
Interceptor method called when writing out the response body.
|
void |
filter(javax.ws.rs.container.ContainerRequestContext request,
javax.ws.rs.container.ContainerResponseContext response)
Filter method called after a response has been provided for a request.
|
HttpLogger |
getLogger()
Returns wrapped logger instance.
|
protected final HttpLogger logger
public HttpLoggerForJersey(String url)
public HttpLoggerForJersey(String url, String rules)
public HttpLoggerForJersey(List<String> queue)
public HttpLogger getLogger()
public Object aroundReadFrom(javax.ws.rs.ext.ReaderInterceptorContext context) throws IOException, javax.ws.rs.WebApplicationException
aroundReadFrom in interface javax.ws.rs.ext.ReaderInterceptorIOExceptionjavax.ws.rs.WebApplicationExceptionpublic void filter(javax.ws.rs.container.ContainerRequestContext request,
javax.ws.rs.container.ContainerResponseContext response)
filter in interface javax.ws.rs.container.ContainerResponseFilterpublic void aroundWriteTo(javax.ws.rs.ext.WriterInterceptorContext context)
throws IOException,
javax.ws.rs.WebApplicationException
aroundWriteTo in interface javax.ws.rs.ext.WriterInterceptorIOExceptionjavax.ws.rs.WebApplicationExceptionCopyright © 2019 resurface.io. All rights reserved.