microsoft.exchange.webservices.data.core
Class WebProxy

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

public class WebProxy
extends Object

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


Constructor Summary
WebProxy(String host)
          Initializes a new instance to use specified proxy with default port 80.
WebProxy(String host, int port)
          Initializes a new instance to use specified proxy details.
WebProxy(String host, int port, WebProxyCredentials credentials)
          Initializes a new instance to use specified proxy details.
WebProxy(String host, WebProxyCredentials credentials)
          Initializes a new instance to use specified proxy with default port 80.
 
Method Summary
 WebProxyCredentials getCredentials()
          Gets the Proxy Credentials.
 String getHost()
          Gets the Proxy Host.
 int getPort()
          Gets the Proxy Port.
 boolean hasCredentials()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebProxy

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

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

WebProxy

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

Parameters:
host - proxy host.

WebProxy

public WebProxy(String host,
                WebProxyCredentials credentials)
Initializes a new instance to use specified proxy with default port 80.

Parameters:
host - proxy host.
credentials - the credential to use for the proxy.

WebProxy

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

Parameters:
host - proxy host.
port - proxy port.
credentials - the credential to use for the proxy.
Method Detail

getHost

public String getHost()
Gets the Proxy Host.

Returns:
the host

getPort

public int getPort()
Gets the Proxy Port.

Returns:
the port

hasCredentials

public boolean hasCredentials()

getCredentials

public WebProxyCredentials getCredentials()
Gets the Proxy Credentials.

Returns:
the proxy credential


Copyright © 2012–2015 Microsoft. All rights reserved.