public class ConnectionListenerFilter extends ClientFilter
Constructor and Description |
---|
ConnectionListenerFilter(OnStartConnectionListener listenerFactory)
Creates ConnectionListenerFilter.
|
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 . |
getNext
public ConnectionListenerFilter(OnStartConnectionListener listenerFactory)
listenerFactory
- OnStartConnectionListener
instancepublic 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.Copyright © 2016 Oracle Corporation. All Rights Reserved.