Package | Description |
---|---|
org.apache.hc.core5.http.impl.routing |
Modifier and Type | Method and Description |
---|---|
RequestRouter.Builder<T> |
RequestRouter.Builder.addRoute(String hostname,
String pathPattern,
T handler)
Adds a route with given hostname and path pattern.
|
RequestRouter.Builder<T> |
RequestRouter.Builder.addRoute(URIAuthority authority,
String pathPattern,
T handler)
Adds a route with given authority and path pattern.
|
static <T> RequestRouter.Builder<T> |
RequestRouter.builder() |
static <T> RequestRouter.Builder<T> |
RequestRouter.builder(UriPatternType patternType) |
RequestRouter.Builder<T> |
RequestRouter.Builder.downstream(HttpRequestMapper<T> downstream)
Sets a downstream request mapper that can be used as a fallback in case no authoritative service can be found
to handle an incoming request.
|
RequestRouter.Builder<T> |
RequestRouter.Builder.resolveAuthority(BiFunction<String,URIAuthority,URIAuthority> authorityResolver)
Sets custom
URIAuthority resolution Function that can be used to normalize or re-write
the authority specified in incoming requests prior to request routing. |
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.