Package net.shibboleth.shared.httpclient
Class LocalAddressSystemRoutePlanner
java.lang.Object
org.apache.hc.client5.http.impl.routing.DefaultRoutePlanner
org.apache.hc.client5.http.impl.routing.SystemDefaultRoutePlanner
net.shibboleth.shared.httpclient.LocalAddressSystemRoutePlanner
- All Implemented Interfaces:
org.apache.hc.client5.http.routing.HttpRoutePlanner
public class LocalAddressSystemRoutePlanner
extends org.apache.hc.client5.http.impl.routing.SystemDefaultRoutePlanner
Extension of
SystemDefaultRoutePlanner which allows supplying a static local address.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLocalAddressSystemRoutePlanner(InetAddress localAddress, org.apache.hc.client5.http.SchemePortResolver schemePortResolver, ProxySelector proxySelector) 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.SystemDefaultRoutePlanner
determineProxyMethods inherited from class org.apache.hc.client5.http.impl.routing.DefaultRoutePlanner
determineRoute
-
Field Details
-
address
The local address.
-
-
Constructor Details
-
LocalAddressSystemRoutePlanner
public LocalAddressSystemRoutePlanner(@Nullable InetAddress localAddress, @Nullable org.apache.hc.client5.http.SchemePortResolver schemePortResolver, @Nullable ProxySelector proxySelector) Constructor.- Parameters:
localAddress- the local addressschemePortResolver- the schema port resolverproxySelector- the proxy selector
-
-
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
-