org.glassfish.jersey.client.filter
Class HttpBasicAuthFilter

java.lang.Object
  extended by org.glassfish.jersey.client.filter.HttpBasicAuthFilter
All Implemented Interfaces:
ClientRequestFilter

public final class HttpBasicAuthFilter
extends java.lang.Object
implements ClientRequestFilter

Client filter adding HTTP Basic Authentication header to the HTTP request, if no such header is already present.

Author:
Jakub Podlesak (jakub.podlesak at oracle.com), Craig McClanahan

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
 void filter(ClientRequestContext rc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpBasicAuthFilter

public HttpBasicAuthFilter(java.lang.String username,
                           java.lang.String password)
Creates a new HTTP Basic Authentication filter using provided username and password credentials.

Parameters:
username - user name
password - password
Method Detail

filter

public void filter(ClientRequestContext rc)
            throws java.io.IOException
Specified by:
filter in interface ClientRequestFilter
Throws:
java.io.IOException


Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.