public final class HTTPBasicAuthFilter extends ClientFilter
Constructor and Description |
---|
HTTPBasicAuthFilter(String username,
byte[] password)
Creates a new HTTP Basic Authentication filter using provided username
and password credentials.
|
HTTPBasicAuthFilter(String username,
String password)
Creates a new HTTP Basic Authentication filter using provided username
and password credentials.
|
Modifier and Type | Method and Description |
---|---|
ClientResponse |
handle(ClientRequest cr)
Handle a HTTP request as a
ClientRequest and return the HTTP
response as a ClientResponse . |
getNext
public HTTPBasicAuthFilter(String username, byte[] password)
username
- password
- public ClientResponse handle(ClientRequest cr) throws ClientHandlerException
ClientHandler
ClientRequest
and return the HTTP
response as a ClientResponse
.handle
in interface ClientHandler
handle
in class ClientFilter
cr
- the HTTP request.ClientHandlerException
- if the client
handler fails to process the request or response.Copyright © 2013 Oracle Corporation. All rights reserved.