Class WebProxy
- java.lang.Object
-
- microsoft.exchange.webservices.data.core.WebProxy
-
-
Constructor Summary
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebProxyCredentialsgetCredentials()Gets the Proxy Credentials.StringgetHost()Gets the Proxy Host.intgetPort()Gets the Proxy Port.booleanhasCredentials()
-
-
-
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
-
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
-
-