Class ProxySettingsImpl

java.lang.Object
io.jenkins.plugins.railflow.commons.http.ProxySettingsImpl
All Implemented Interfaces:
ProxySettings, Serializable

public class ProxySettingsImpl extends Object implements ProxySettings
Default implementation of ProxySettings
Author:
Sergey Oplavin
See Also:
  • Constructor Details

    • ProxySettingsImpl

      public ProxySettingsImpl(String protocol, String host, int port)
    • ProxySettingsImpl

      public ProxySettingsImpl(String protocol, String host, int port, String userName, String password)
  • Method Details

    • getProtocol

      public String getProtocol()
      Specified by:
      getProtocol in interface ProxySettings
      Returns:
      proxy type
    • setProtocol

      public void setProtocol(String protocol)
    • getHost

      public String getHost()
      Specified by:
      getHost in interface ProxySettings
      Returns:
      host
    • setHost

      public void setHost(String host)
    • getPort

      public int getPort()
      Specified by:
      getPort in interface ProxySettings
      Returns:
      port.
    • setPort

      public void setPort(int port)
    • getUserName

      public String getUserName()
      Specified by:
      getUserName in interface ProxySettings
      Returns:
      user name or null if proxy does not require authorization.
    • setUserName

      public void setUserName(String userName)
    • getPassword

      public String getPassword()
      Specified by:
      getPassword in interface ProxySettings
      Returns:
      password or null if proxy does not require authorization.
    • setPassword

      public void setPassword(String password)