microsoft.exchange.webservices.data
Class WebProxy

java.lang.Object
  extended by microsoft.exchange.webservices.data.WebProxy

public class WebProxy
extends java.lang.Object

WebProxy is used for setting proxy details for proxy authentication schemes such as basic, digest, NTLM, and Kerberos authentication.


Constructor Summary
WebProxy(java.lang.String host)
          Initializes a new instance to use specified proxy with default port 80.
WebProxy(java.lang.String host, int port)
          Initializes a new instance to use specified proxy details.
 
Method Summary
protected  java.lang.String getHost()
          Gets the Proxy Host.
protected  int getPort()
          Gets the Proxy Port.
 void setCredentials(java.lang.String user, java.lang.String pwd, java.lang.String domain)
          This method is used to set proxy credentials to a Web Request before the request is made.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebProxy

public WebProxy(java.lang.String host,
                int port)
Initializes a new instance to use specified proxy details.

Parameters:
host - proxy host.
port - proxy port.

WebProxy

public WebProxy(java.lang.String host)
Initializes a new instance to use specified proxy with default port 80.

Parameters:
host - proxy host.
Method Detail

getHost

protected java.lang.String getHost()
Gets the Proxy Host.

Returns:
the host

getPort

protected int getPort()
Gets the Proxy Port.

Returns:
the port

setCredentials

public void setCredentials(java.lang.String user,
                           java.lang.String pwd,
                           java.lang.String domain)
This method is used to set proxy credentials to a Web Request before the request is made.

Parameters:
user - The proxy username.
pwd - The proxy password.
domain - The proxy domain.