Top Description Inners Fields Constructors Methods
org.springframework.web.service.invoker

pack-priv final Class HttpServiceMethod

extends Object
Class Inheritance
Imports
java.lang.reflect.AnnotatedElement, .Method, java.time.Duration, java.util.List, .Optional, java.util.function.Function, .Supplier, org.reactivestreams.Publisher, reactor.core.publisher.Flux, .Mono, org.springframework.core.DefaultParameterNameDiscoverer, .KotlinDetector, .MethodParameter, .ParameterizedTypeReference, .ReactiveAdapter, org.springframework.core.annotation.MergedAnnotation, .MergedAnnotationPredicates, .MergedAnnotations, .MergedAnnotations.SearchStrategy, .RepeatableContainers, .SynthesizingMethodParameter, org.springframework.http.HttpHeaders, .HttpMethod, .MediaType, .ResponseEntity, org.springframework.lang.Nullable, org.springframework.util.Assert, .ClassUtils, .ObjectUtils, .StringUtils, .StringValueResolver, org.springframework.web.service.annotation.HttpExchange

Implements the invocation of an @HttpExchange-annotated, HTTP service proxy method by delegating to an HttpExchangeAdapter to perform actual requests.
Authors
Rossen Stoyanchev, Sebastien Deleuze, Olga Maciaszek-Sharma, Sam Brannen
Since
6.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static record
private static record
HttpServiceMethod.HttpRequestValuesInitializer

Factory for HttpRequestValues with values extracted from the type and method-level @HttpExchange annotations.

private static record
private static interface
HttpServiceMethod.ResponseFunction

Execute a request, obtain a response, and adapt to the expected return type.

Field Summary

Modifier and TypeField and Description
private final List<HttpServiceArgumentResolver>
private final Method
private final MethodParameter[]
private static final boolean
private final HttpServiceMethod.HttpRequestValuesInitializer
private final HttpServiceMethod.ResponseFunction

Constructor Summary

AccessConstructor and Description
pack-priv
HttpServiceMethod(Method method, Class<?> containingClass, List<HttpServiceArgumentResolver> argumentResolvers, HttpExchangeAdapter adapter, StringValueResolver embeddedValueResolver)

Method Summary

Modifier and TypeMethod and Description
private void
applyArguments(HttpRequestValues.Builder requestValues, Object[] arguments)

public Method
private static MethodParameter[]
public Object
invoke(Object[] arguments)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait