Package feign
-
Interface Summary Interface Description Client Submits HTTPrequests
.Contract Defines what annotations and values are valid on interfaces.InvocationHandlerFactory Controls reflective method dispatch.InvocationHandlerFactory.MethodHandler LikeInvocationHandler.invoke(Object, java.lang.reflect.Method, Object[])
, except for a single method.Param.Expander QueryMapEncoder A QueryMapEncoder encodes Objects into maps of query parameter names to values.RequestInterceptor Zero or moreRequestInterceptors
may be configured for purposes such as adding headers to all requests.Response.Body ResponseMapper Map function to apply to the response before decoding it.Retryer Cloned for each invocation toClient.execute(Request, feign.Request.Options)
.Target<T>
relationship to JAXRS 2.0
Similar tojavax.ws.rs.client.WebTarget
, as it produces requests. -
Class Summary Class Description Client.Default Contract.BaseContract Contract.Default Feign Feign's purpose is to ease development against http apis that feign restfulness.Feign.Builder InvocationHandlerFactory.Default Logger Simple logging abstraction for debug messages.Logger.ErrorLogger Logs to System.err.Logger.JavaLogger Logs to the categoryLogger
atLevel.FINE
, if loggable.Logger.NoOpLogger MethodMetadata Param.ToStringExpander QueryMapEncoder.Default Deprecated. useBeanQueryMapEncoder
instead.ReflectiveFeign Request An immutable request to an http server.Request.Body Request.Options RequestTemplate Request Builder for an HTTP Target.Response An immutable response to an http invocation which only returns string content.Response.Builder Retryer.Default Target.EmptyTarget<T> Target.HardCodedTarget<T> Types Static methods for working with types.Util Utilities, typically copied in from guava, so as to avoid dependency conflicts. -
Enum Summary Enum Description CollectionFormat Various ways to encode collections in URL parameters.ExceptionPropagationPolicy Logger.Level Controls the level of logging.Request.HttpMethod -
Exception Summary Exception Description FeignException Origin exception type for all Http Apis.RetryableException This exception is raised when theResponse
is deemed to be retryable, typically via anErrorDecoder
when thestatus
is 503. -
Annotation Types Summary Annotation Type Description Body A possibly templated body of a PUT or POST command.HeaderMap A template parameter that can be applied to a Map that contains header entries, where the keys are Strings that are the header field names and the values are the header field values.Headers Expands headers supplied in thevalue
.Param QueryMap A template parameter that can be applied to a Map that contains query parameters, where the keys are Strings that are the parameter names and the values are the parameter values.RequestLine Expands the uri template supplied in thevalue
, permitting path and query variables, or just the http method.