Class HttpMetaServiceDescriptor.DestinationDescriptor
java.lang.Object
io.inverno.mod.discovery.http.meta.HttpMetaServiceDescriptor.DestinationDescriptor
- Enclosing class:
HttpMetaServiceDescriptor
Describes a route destination.
- Since:
- 1.12
- Author:
- Jeremy Kuhn
-
Constructor Summary
ConstructorDescriptionDestinationDescriptor
(HttpMetaServiceDescriptor.HttpClientConfiguration configuration, HttpMetaServiceDescriptor.LoadBalancerDescriptor loadBalancer, URI uri, Integer weight, HttpMetaServiceDescriptor.RequestTransformer transformRequest, HttpMetaServiceDescriptor.ResponseTransformer transformResponse) Creates a route destination. -
Method Summary
-
Constructor Details
-
DestinationDescriptor
public DestinationDescriptor(HttpMetaServiceDescriptor.HttpClientConfiguration configuration, HttpMetaServiceDescriptor.LoadBalancerDescriptor loadBalancer, URI uri, Integer weight, HttpMetaServiceDescriptor.RequestTransformer transformRequest, HttpMetaServiceDescriptor.ResponseTransformer transformResponse) throws IllegalArgumentException Creates a route destination.
- Parameters:
configuration
- the HTTP client configurationloadBalancer
- the load balancer descriptoruri
- the destination URIweight
- the destination weighttransformRequest
- the request transformertransformResponse
- the response transformer- Throws:
IllegalArgumentException
- if the specified weight is invalid or if the specified URI is not a valid service URI
-
-
Method Details
-
getConfiguration
Returns the HTTP client configuration.
- Returns:
- the HTTP client configuration
-
getLoadBalancer
Returns the load balancer descriptor.
- Returns:
- the load balancer descriptor
-
getURI
Returns the destination URI.
- Returns:
- the destination URI
-
getWeight
Returns the destination weight.
- Returns:
- the destination weight
-
getTransformRequest
Returns the request transformer.
- Returns:
- the request transformer
-
getTransformResponse
Returns the response transformer.
- Returns:
- the response transformer
-
equals
-
hashCode
public int hashCode()
-