Package net.shibboleth.shared.httpclient
Class LocalAddressProxyRoutePlanner
java.lang.Object
org.apache.hc.client5.http.impl.routing.DefaultRoutePlanner
org.apache.hc.client5.http.impl.routing.DefaultProxyRoutePlanner
net.shibboleth.shared.httpclient.LocalAddressProxyRoutePlanner
- All Implemented Interfaces:
org.apache.hc.client5.http.routing.HttpRoutePlanner
public class LocalAddressProxyRoutePlanner
extends org.apache.hc.client5.http.impl.routing.DefaultProxyRoutePlanner
Extension of
DefaultProxyRoutePlanner which allows supplying a static local address.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLocalAddressProxyRoutePlanner(InetAddress localAddress, org.apache.hc.core5.http.HttpHost proxy, org.apache.hc.client5.http.SchemePortResolver schemePortResolver) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected InetAddressdetermineLocalAddress(org.apache.hc.core5.http.HttpHost firstHop, org.apache.hc.core5.http.protocol.HttpContext context) Methods inherited from class org.apache.hc.client5.http.impl.routing.DefaultProxyRoutePlanner
determineProxyMethods inherited from class org.apache.hc.client5.http.impl.routing.DefaultRoutePlanner
determineRoute
-
Field Details
-
address
The local address.
-
-
Constructor Details
-
LocalAddressProxyRoutePlanner
public LocalAddressProxyRoutePlanner(@Nullable InetAddress localAddress, @Nonnull org.apache.hc.core5.http.HttpHost proxy, @Nullable org.apache.hc.client5.http.SchemePortResolver schemePortResolver) Constructor.- Parameters:
localAddress- the local addressproxy- the proxy hostschemePortResolver- the scheme port resolver
-
-
Method Details
-
determineLocalAddress
@Nullable protected InetAddress determineLocalAddress(org.apache.hc.core5.http.HttpHost firstHop, org.apache.hc.core5.http.protocol.HttpContext context) throws org.apache.hc.core5.http.HttpException - Overrides:
determineLocalAddressin classorg.apache.hc.client5.http.impl.routing.DefaultRoutePlanner- Throws:
org.apache.hc.core5.http.HttpException
-