|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.jersey.api.client.filter.ClientFilter com.sun.jersey.api.client.filter.LoggingFilter
public class LoggingFilter
A logging filter.
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(java.util.logging.Logger logger)
Create a logging filter logging the request and response to a JDK logger. |
|
LoggingFilter(java.io.PrintStream loggingStream)
Create a logging filter logging the request and response to print stream. |
Method Summary | |
---|---|
ClientResponse |
handle(ClientRequest request)
Handle a HTTP request as a ClientRequest and return the HTTP
response as a ClientResponse . |
Methods inherited from class com.sun.jersey.api.client.filter.ClientFilter |
---|
getNext |
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.util.logging.Logger logger)
logger
- the logger to log requests and responses.public LoggingFilter(java.io.PrintStream loggingStream)
loggingStream
- the print stream to log requests and responses.Method Detail |
---|
public ClientResponse handle(ClientRequest request) throws ClientHandlerException
ClientHandler
ClientRequest
and return the HTTP
response as a ClientResponse
.
handle
in interface ClientHandler
handle
in class ClientFilter
request
- the HTTP request.
ClientHandlerException
- if the client
handler fails to process the request or response.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |