public class LoggingFilter extends ClientFilter
| Constructor and Description |
|---|
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)
Create a logging filter logging the request and response to
a JDK logger.
|
LoggingFilter(PrintStream loggingStream)
Create a logging filter logging the request and response to
print stream.
|
| Modifier and Type | Method and Description |
|---|---|
ClientResponse |
handle(ClientRequest request)
Handle a HTTP request as a
ClientRequest and return the HTTP
response as a ClientResponse. |
getNextpublic LoggingFilter()
public LoggingFilter(Logger logger)
logger - the logger to log requests and responses.public LoggingFilter(PrintStream loggingStream)
loggingStream - the print stream to log requests and responses.public ClientResponse handle(ClientRequest request) throws ClientHandlerException
ClientHandlerClientRequest and return the HTTP
response as a ClientResponse.handle in interface ClientHandlerhandle in class ClientFilterrequest - the HTTP request.ClientHandlerException - if the client
handler fails to process the request or response.Copyright © 2014 Oracle Corporation. All rights reserved.