com.oaklandsw.http
Interface HttpUserAgent


public interface HttpUserAgent

Represents the user agent for the HTTP client. This interface is optionally implemented by the user if the user requires notification of certain HTTP events.


Method Summary
 Credential getCredential(java.lang.String realm, java.lang.String url, int scheme)
          Get the authentication credentials.
 Credential getProxyCredential(java.lang.String realm, java.lang.String url, int scheme)
          Get the proxy authentication credentials.
 

Method Detail

getCredential

public Credential getCredential(java.lang.String realm,
                                java.lang.String url,
                                int scheme)
Get the authentication credentials. This is used when a request for authentication has occurred.

Parameters:
url - the URL of the request
scheme - the value representing the authentication scheme as found in Credential

getProxyCredential

public Credential getProxyCredential(java.lang.String realm,
                                     java.lang.String url,
                                     int scheme)
Get the proxy authentication credentials. This is used when a request for authentication has occurred.

Parameters:
url - the URL of the request
scheme - the value representing the authentication scheme as found in Credential


Copyright © 2002-2005 Oakland Software Incorporated. All Rights Reserved.