Class ProxyProperties
java.lang.Object
com.azure.spring.cloud.core.properties.proxy.ProxyProperties
- All Implemented Interfaces:
ProxyOptionsProvider.ProxyOptions
- Direct Known Subclasses:
AmqpProxyProperties,HttpProxyProperties
Common proxy properties for all Azure SDKs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the proxy hostname.Get the proxy password.getPort()Get the proxy port.getType()Get the proxy type.Get the proxy username.voidsetHostname(String hostname) Set proxy hostname.voidsetPassword(String password) Set the password for authentication.voidSet port.voidSet proxy type.voidsetUsername(String username) Set the username used for authentication.
-
Constructor Details
-
ProxyProperties
public ProxyProperties()
-
-
Method Details
-
getType
Description copied from interface:ProxyOptionsProvider.ProxyOptionsGet the proxy type.- Specified by:
getTypein interfaceProxyOptionsProvider.ProxyOptions- Returns:
- the proxy type.
-
setType
Set proxy type.- Parameters:
type- The proxy type.
-
getHostname
Description copied from interface:ProxyOptionsProvider.ProxyOptionsGet the proxy hostname.- Specified by:
getHostnamein interfaceProxyOptionsProvider.ProxyOptions- Returns:
- the proxy hostname.
-
setHostname
Set proxy hostname.- Parameters:
hostname- The hostname.
-
getPort
Description copied from interface:ProxyOptionsProvider.ProxyOptionsGet the proxy port.- Specified by:
getPortin interfaceProxyOptionsProvider.ProxyOptions- Returns:
- the proxy port.
-
setPort
Set port.- Parameters:
port- The port of the host.
-
getUsername
Description copied from interface:ProxyOptionsProvider.ProxyOptionsGet the proxy username.- Specified by:
getUsernamein interfaceProxyOptionsProvider.ProxyOptions- Returns:
- the proxy username.
-
setUsername
Set the username used for authentication.- Parameters:
username- The username.
-
getPassword
Description copied from interface:ProxyOptionsProvider.ProxyOptionsGet the proxy password.- Specified by:
getPasswordin interfaceProxyOptionsProvider.ProxyOptions- Returns:
- the proxy password.
-
setPassword
Set the password for authentication.- Parameters:
password- The password.
-