Class HttpMetaServiceDescriptor.RouteDescriptor
java.lang.Object
io.inverno.mod.discovery.http.meta.HttpMetaServiceDescriptor.RouteDescriptor
- Enclosing class:
HttpMetaServiceDescriptor
Describes an HTTP route.
- Since:
- 1.12
- Author:
- Jeremy Kuhn
-
Constructor Summary
ConstructorDescriptionRouteDescriptor
(HttpMetaServiceDescriptor.HttpClientConfiguration configuration, HttpMetaServiceDescriptor.LoadBalancerDescriptor loadBalancer, Set<? extends HttpMetaServiceDescriptor.ValueMatcher> authorityMatchers, Set<HttpMetaServiceDescriptor.PathMatcher> pathMatchers, Set<Method> methodMatchers, Set<String> contentTypeMatchers, Set<String> acceptMatchers, Set<String> languageMatchers, Map<String, Set<? extends HttpMetaServiceDescriptor.ValueMatcher>> headersMatchers, Map<String, Set<? extends HttpMetaServiceDescriptor.ValueMatcher>> queryParameterMatchers, HttpMetaServiceDescriptor.RequestTransformer transformRequest, HttpMetaServiceDescriptor.ResponseTransformer transformResponse, List<HttpMetaServiceDescriptor.DestinationDescriptor> destinations) Creates an HTTP route descriptor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the accept matchers.Set
<? extends HttpMetaServiceDescriptor.ValueMatcher> Returns the authority matchers.Returns the HTTP client configuration.Returns the content type matchers.Returns the route destinations.Map
<String, Set<? extends HttpMetaServiceDescriptor.ValueMatcher>> Returns the headers matchers.Returns the language matchers.Returns the load balancer descriptor.Returns the method matchers.Returns the path matchers.Map
<String, Set<? extends HttpMetaServiceDescriptor.ValueMatcher>> Returns the query parameter matchers.Returns the request transformer.Returns the response transformer.int
hashCode()
-
Constructor Details
-
RouteDescriptor
public RouteDescriptor(HttpMetaServiceDescriptor.HttpClientConfiguration configuration, HttpMetaServiceDescriptor.LoadBalancerDescriptor loadBalancer, Set<? extends HttpMetaServiceDescriptor.ValueMatcher> authorityMatchers, Set<HttpMetaServiceDescriptor.PathMatcher> pathMatchers, Set<Method> methodMatchers, Set<String> contentTypeMatchers, Set<String> acceptMatchers, Set<String> languageMatchers, Map<String, Set<? extends HttpMetaServiceDescriptor.ValueMatcher>> headersMatchers, Map<String, Set<? extends HttpMetaServiceDescriptor.ValueMatcher>> queryParameterMatchers, HttpMetaServiceDescriptor.RequestTransformer transformRequest, HttpMetaServiceDescriptor.ResponseTransformer transformResponse, List<HttpMetaServiceDescriptor.DestinationDescriptor> destinations) Creates an HTTP route descriptor.
- Parameters:
configuration
- the HTTP client configurationloadBalancer
- the load balancer descriptorauthorityMatchers
- the authority matcherspathMatchers
- the path matchersmethodMatchers
- the method matcherscontentTypeMatchers
- the content type matchersacceptMatchers
- the accept matcherslanguageMatchers
- the language matchersheadersMatchers
- the headers matchersqueryParameterMatchers
- the query parameters matcherstransformRequest
- the request transformertransformResponse
- the response transformerdestinations
- the route destinations
-
-
Method Details
-
getConfiguration
Returns the HTTP client configuration.
- Returns:
- the HTTP client configuration
-
getLoadBalancer
Returns the load balancer descriptor.
- Returns:
- the load balancer descriptor
-
getAuthorityMatchers
Returns the authority matchers.
- Returns:
- the authority matchers
-
getPathMatchers
Returns the path matchers.
- Returns:
- the path matchers
-
getMethodMatchers
Returns the method matchers.
- Returns:
- the method matchers
-
getContentTypeMatchers
Returns the content type matchers.
- Returns:
- the content type matchers
-
getAcceptMatchers
Returns the accept matchers.
- Returns:
- the accept matchers
-
getLanguageMatchers
Returns the language matchers.
- Returns:
- the language matchers
-
getHeadersMatchers
Returns the headers matchers.
- Returns:
- the headers matchers
-
getQueryParameterMatchers
public Map<String,Set<? extends HttpMetaServiceDescriptor.ValueMatcher>> getQueryParameterMatchers()Returns the query parameter matchers.
- Returns:
- the query parameter matchers
-
getTransformRequest
Returns the request transformer.
- Returns:
- the request transformer
-
getTransformResponse
Returns the response transformer.
- Returns:
- the response transformer
-
getDestinations
Returns the route destinations.
- Returns:
- the route destinations
-
equals
-
hashCode
public int hashCode()
-