java.lang.Object
io.helidon.webclient.Proxy
A definition of a proxy server to use for outgoing requests.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Fluent API builder forProxy
.static enum
Type of the proxy. -
Method Summary
Modifier and TypeMethodDescriptionstatic Proxy.Builder
builder()
Fluent API builder for new instances.static Proxy
create()
Create from environment and system properties.static Proxy
Create a new proxy instance from configuration.boolean
Creates new proxy channel handler.int
hashCode()
static Proxy
noProxy()
A Proxy instance that does not proxy requests.
-
Method Details
-
builder
Fluent API builder for new instances.- Returns:
- a new builder
-
noProxy
A Proxy instance that does not proxy requests.- Returns:
- a new instance with no proxy definition
-
create
Create a new proxy instance from configuration.proxy: http: uri: https://www.example.org https: uri: https://www.example.org no-proxy: ["*.example.org", "localhost"]
- Parameters:
config
- configuration, should be located on a key that has proxy as a subkey- Returns:
- proxy instance
-
create
Create from environment and system properties.- Returns:
- a proxy instance configured based on this system settings
-
handler
Creates new proxy channel handler.- Parameters:
address
- request address- Returns:
- channel handler
-
equals
-
hashCode
public int hashCode()
-