Class ProxyServerConfig.Builder
Builds a ProxyServerConfig instance.
Inheritance
Namespace: Adobe.PDFServicesSDK.config.proxy
Assembly: Adobe.PDFServicesSDK.Doc.dll
Syntax
public class Builder
Methods
Build()
Returns a new ProxyServerConfig instance built from the current state of this builder.
Declaration
public ProxyServerConfig Build()
Returns
Type | Description |
---|---|
ProxyServerConfig | ProxyServerConfig instance. |
WithCredentials(IProxyAuthenticationCredentials)
Sets the credentials for authenticating with a proxy server.
Declaration
public ProxyServerConfig.Builder WithCredentials(IProxyAuthenticationCredentials proxyAuthenticationCredentials)
Parameters
Type | Name | Description |
---|---|---|
IProxyAuthenticationCredentials | proxyAuthenticationCredentials | A ProxyAuthenticationCredentials instance; cannot be null. |
Returns
Type | Description |
---|---|
ProxyServerConfig.Builder | This |
WithHost(String)
Sets the host name of the proxy server.
Declaration
public ProxyServerConfig.Builder WithHost(string host)
Parameters
Type | Name | Description |
---|---|---|
System.String | host | Host name. Cannot be null or empty. |
Returns
Type | Description |
---|---|
ProxyServerConfig.Builder | This |
WithPort(Int32)
Sets the port number of the proxy server. It should be greater than 0. Scheme's default port is used if not provided.
Declaration
public ProxyServerConfig.Builder WithPort(int port)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | port | Port number; cannot be null. |
Returns
Type | Description |
---|---|
ProxyServerConfig.Builder | This |
WithProxyScheme(ProxyScheme)
Sets the scheme of the proxy server. Possible values are HTTP and HTTPS. Default value is HTTP.
Declaration
public ProxyServerConfig.Builder WithProxyScheme(ProxyScheme proxyScheme)
Parameters
Type | Name | Description |
---|---|---|
ProxyScheme | proxyScheme | Proxy scheme. See ProxyScheme for scheme values; cannot be null. |
Returns
Type | Description |
---|---|
ProxyServerConfig.Builder | This |