Class ProxySettingsImpl
java.lang.Object
io.jenkins.plugins.railflow.commons.http.ProxySettingsImpl
- All Implemented Interfaces:
ProxySettings
,Serializable
Default implementation of
ProxySettings
- Author:
- Sergey Oplavin
- See Also:
-
Constructor Summary
ConstructorDescriptionProxySettingsImpl
(String protocol, String host, int port) ProxySettingsImpl
(String protocol, String host, int port, String userName, String password) -
Method Summary
Modifier and TypeMethodDescriptiongetHost()
int
getPort()
void
void
setPassword
(String password) void
setPort
(int port) void
setProtocol
(String protocol) void
setUserName
(String userName)
-
Constructor Details
-
ProxySettingsImpl
-
ProxySettingsImpl
-
-
Method Details
-
getProtocol
- Specified by:
getProtocol
in interfaceProxySettings
- Returns:
- proxy type
-
setProtocol
-
getHost
- Specified by:
getHost
in interfaceProxySettings
- Returns:
- host
-
setHost
-
getPort
public int getPort()- Specified by:
getPort
in interfaceProxySettings
- Returns:
- port.
-
setPort
public void setPort(int port) -
getUserName
- Specified by:
getUserName
in interfaceProxySettings
- Returns:
- user name or
null
if proxy does not require authorization.
-
setUserName
-
getPassword
- Specified by:
getPassword
in interfaceProxySettings
- Returns:
- password or
null
if proxy does not require authorization.
-
setPassword
-