Show / Hide Table of Contents

Class ProxyServerConfig.Builder

Builds a ProxyServerConfig instance.

Inheritance
System.Object
ProxyServerConfig.Builder
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 Builder instance to add any additional parameters.

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 Builder instance to add any additional parameters.

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 Builder instance to add any additional parameters.

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 Builder instance to add any additional parameters.

In This Article
Back to top Copyright © 2020 Adobe. All rights reserved.