Package de.bmiag.tapir.core.net
Class HttpProxy
- java.lang.Object
-
- de.bmiag.tapir.core.net.HttpProxy
-
public final class HttpProxy extends java.lang.Object
Immutable implementation ofHttpProxy
.Use the
build(Procedure1)
orcopy(Procedure1)
method to create immutable instances.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HttpProxy.Builder
Builds instances of typeHttpProxy
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HttpProxy
build(org.eclipse.xtext.xbase.lib.Procedures.Procedure1<HttpProxy.Builder> init)
Creates an immutable instance of HttpProxy.HttpProxy
copy(org.eclipse.xtext.xbase.lib.Procedures.Procedure1<HttpProxy.Builder> init)
Creates an immutable copy of this instance.boolean
equals(java.lang.Object obj)
java.lang.String
getHost()
java.util.List<java.lang.String>
getNonProxyHosts()
java.util.Optional<java.lang.String>
getPassword()
int
getPort()
java.util.Optional<java.lang.String>
getUsername()
int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
getHost
public java.lang.String getHost()
- Returns:
- The value of the
host
attribute
-
getPort
public int getPort()
- Returns:
- The value of the
port
attribute
-
getNonProxyHosts
public java.util.List<java.lang.String> getNonProxyHosts()
- Returns:
- The value of the
nonProxyHosts
attribute
-
getUsername
public java.util.Optional<java.lang.String> getUsername()
- Returns:
- The value of the
username
attribute
-
getPassword
public java.util.Optional<java.lang.String> getPassword()
- Returns:
- The value of the
password
attribute
-
equals
@Pure public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
@Pure public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
@Pure public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
build
public static HttpProxy build(org.eclipse.xtext.xbase.lib.Procedures.Procedure1<HttpProxy.Builder> init)
Creates an immutable instance of HttpProxy. The values can be initialized by using the init parameter.- Parameters:
init
- The initializer- Returns:
- An immutable HttpProxy instance
- Throws:
java.lang.IllegalStateException
- if any required attributes are missing
-
copy
public HttpProxy copy(org.eclipse.xtext.xbase.lib.Procedures.Procedure1<HttpProxy.Builder> init)
Creates an immutable copy of this instance. Uses accessors to get values to initialize the new immutable instance. The values can be modified by using the init parameter.- Parameters:
init
- The initializer- Returns:
- A copied immutable HttpProxy instance
-
-