|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jersey.api.client.filter.ClientFilter
com.sun.jersey.api.client.filter.HTTPBasicAuthFilter
public final class HTTPBasicAuthFilter
Client filter adding HTTP Basic Authentication header to the HTTP request, if no such header is already present
| Constructor Summary | |
|---|---|
HTTPBasicAuthFilter(java.lang.String username,
java.lang.String password)
Creates a new HTTP Basic Authentication filter using provided username and password credentials |
|
| Method Summary | |
|---|---|
ClientResponse |
handle(ClientRequest cr)
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 HTTPBasicAuthFilter(java.lang.String username,
java.lang.String password)
username - password - | Method Detail |
|---|
public ClientResponse handle(ClientRequest cr)
throws ClientHandlerException
ClientHandlerClientRequest and return the HTTP
response as a ClientResponse.
handle in interface ClientHandlerhandle in class ClientFiltercr - 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 | |||||||||