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
-
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.void
setHostname
(String hostname) Set proxy hostname.void
setPassword
(String password) Set the password for authentication.void
Set port.void
Set proxy type.void
setUsername
(String username) Set the username used for authentication.
-
Constructor Details
-
ProxyProperties
public ProxyProperties()Creates an instance ofProxyProperties
.
-
-
Method Details
-
getType
Description copied from interface:ProxyOptionsProvider.ProxyOptions
Get the proxy type.- Specified by:
getType
in interfaceProxyOptionsProvider.ProxyOptions
- Returns:
- the proxy type.
-
setType
Set proxy type.- Parameters:
type
- The proxy type.
-
getHostname
Description copied from interface:ProxyOptionsProvider.ProxyOptions
Get the proxy hostname.- Specified by:
getHostname
in interfaceProxyOptionsProvider.ProxyOptions
- Returns:
- the proxy hostname.
-
setHostname
Set proxy hostname.- Parameters:
hostname
- The hostname.
-
getPort
Description copied from interface:ProxyOptionsProvider.ProxyOptions
Get the proxy port.- Specified by:
getPort
in interfaceProxyOptionsProvider.ProxyOptions
- Returns:
- the proxy port.
-
setPort
Set port.- Parameters:
port
- The port of the host.
-
getUsername
Description copied from interface:ProxyOptionsProvider.ProxyOptions
Get the proxy username.- Specified by:
getUsername
in interfaceProxyOptionsProvider.ProxyOptions
- Returns:
- the proxy username.
-
setUsername
Set the username used for authentication.- Parameters:
username
- The username.
-
getPassword
Description copied from interface:ProxyOptionsProvider.ProxyOptions
Get the proxy password.- Specified by:
getPassword
in interfaceProxyOptionsProvider.ProxyOptions
- Returns:
- the proxy password.
-
setPassword
Set the password for authentication.- Parameters:
password
- The password.
-