Class HttpMetaServiceDescriptor
java.lang.Object
io.inverno.mod.discovery.http.meta.HttpMetaServiceDescriptor
Describes an HTTP meta service including: network configuration, traffic policy, routes and destinations.
An HTTP service descriptor is typically resolved by service name from a configuration source or any other source in a discovery service in order to create a meta HTTP service capable of rewriting, routing and/or load balancing requests to one or more destinations.
- Since:
- 1.12
- Author:
- Jeremy Kuhn
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDescribes a route destination.static classDescribes HTTP client configuration.static classDescribes least request traffic load balancer.static classDescribes an HTTP traffic load balancer.static classDescribes min load factor traffic load balancer.static classDescribes a path matcher.static classDescribes a regex value matcher.static classDescribes a request transformer.static classDescribes a response transformer.static classDescribes an HTTP route.static classDescribes a static value matcher.static classDescribes a value matcher. -
Constructor Summary
ConstructorsConstructorDescriptionHttpMetaServiceDescriptor(HttpMetaServiceDescriptor.HttpClientConfiguration configuration, HttpMetaServiceDescriptor.LoadBalancerDescriptor loadBalancer, List<HttpMetaServiceDescriptor.RouteDescriptor> routes) Creates an HTTP meta service descriptor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the HTTP client configuration.Returns the load balancer configuration.Returns the service routes.inthashCode()
-
Constructor Details
-
HttpMetaServiceDescriptor
public HttpMetaServiceDescriptor(HttpMetaServiceDescriptor.HttpClientConfiguration configuration, HttpMetaServiceDescriptor.LoadBalancerDescriptor loadBalancer, List<HttpMetaServiceDescriptor.RouteDescriptor> routes) Creates an HTTP meta service descriptor.
- Parameters:
configuration- the HTTP client configuration applying to all routes and destinationsloadBalancer- the load balancer configuration applying to all routes and destinationsroutes- the service routes
-
-
Method Details
-
getConfiguration
Returns the HTTP client configuration.
- Returns:
- the HTTP client configuration
-
getLoadBalancer
Returns the load balancer configuration.
- Returns:
- the load balancer configuration
-
getRoutes
Returns the service routes.
- Returns:
- the service routes
-
equals
-
hashCode
public int hashCode()
-