|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.filter.LoggingFilter
@PreMatching @Priority(value=-2147483648) public class LoggingFilter
Universal logging filter. Can be used on client or server side. Has the highest priority.
| Constructor Summary | |
|---|---|
LoggingFilter()
Create a logging filter logging the request and response to a default JDK logger, named as the fully qualified class name of this class. |
|
LoggingFilter(Logger logger,
boolean printEntity)
Create a logging filter with custom logger and custom settings of entity logging. |
|
LoggingFilter(Logger logger,
int maxEntitySize)
Creates a logging filter with custom logger and entity logging turned on, but potentially limiting the size of entity to be buffered and logged. |
|
| Method Summary | |
|---|---|
void |
aroundWriteTo(javax.ws.rs.ext.WriterInterceptorContext writerInterceptorContext)
|
void |
filter(javax.ws.rs.client.ClientRequestContext context)
|
void |
filter(javax.ws.rs.client.ClientRequestContext requestContext,
javax.ws.rs.client.ClientResponseContext responseContext)
|
void |
filter(javax.ws.rs.container.ContainerRequestContext context)
|
void |
filter(javax.ws.rs.container.ContainerRequestContext requestContext,
javax.ws.rs.container.ContainerResponseContext responseContext)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LoggingFilter()
public LoggingFilter(Logger logger,
boolean printEntity)
logger - the logger to log requests and responses.printEntity - if true, entity will be logged as well up to the default maxEntitySize, which is 10KB
public LoggingFilter(Logger logger,
int maxEntitySize)
logger - the logger to log requests and responses.maxEntitySize - maximum number of entity bytes to be logged (and buffered) - if the entity is larger,
logging filter will print (and buffer in memory) only the specified number of bytes
and print "...more..." string at the end.| Method Detail |
|---|
public void filter(javax.ws.rs.client.ClientRequestContext context)
throws IOException
filter in interface javax.ws.rs.client.ClientRequestFilterIOException
public void filter(javax.ws.rs.client.ClientRequestContext requestContext,
javax.ws.rs.client.ClientResponseContext responseContext)
throws IOException
filter in interface javax.ws.rs.client.ClientResponseFilterIOException
public void filter(javax.ws.rs.container.ContainerRequestContext context)
throws IOException
filter in interface javax.ws.rs.container.ContainerRequestFilterIOException
public void filter(javax.ws.rs.container.ContainerRequestContext requestContext,
javax.ws.rs.container.ContainerResponseContext responseContext)
throws IOException
filter in interface javax.ws.rs.container.ContainerResponseFilterIOException
public void aroundWriteTo(javax.ws.rs.ext.WriterInterceptorContext writerInterceptorContext)
throws IOException,
javax.ws.rs.WebApplicationException
aroundWriteTo in interface javax.ws.rs.ext.WriterInterceptorIOException
javax.ws.rs.WebApplicationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||