Class HttpInboundEndpointSupportSpec.RequestMappingSpec
java.lang.Object
org.springframework.integration.http.dsl.HttpInboundEndpointSupportSpec.RequestMappingSpec
- Enclosing class:
- HttpInboundEndpointSupportSpec<S extends HttpInboundEndpointSupportSpec<S,E>,E extends BaseHttpInboundEndpoint>
public static final class HttpInboundEndpointSupportSpec.RequestMappingSpec extends Object
A fluent API for the
RequestMapping
.-
Method Summary
Modifier and Type Method Description HttpInboundEndpointSupportSpec.RequestMappingSpec
consumes(String... consumes)
The consumable media types of the mapped request, narrowing the primary mapping.HttpInboundEndpointSupportSpec.RequestMappingSpec
headers(String... headers)
The headers of the mapped request, narrowing the primary mapping.HttpInboundEndpointSupportSpec.RequestMappingSpec
methods(HttpMethod... supportedMethods)
The HTTP request methods to map to, narrowing the primary mapping: GET, POST, HEAD, OPTIONS, PUT, PATCH, DELETE, TRACE.HttpInboundEndpointSupportSpec.RequestMappingSpec
params(String... params)
The parameters of the mapped request, narrowing the primary mapping.HttpInboundEndpointSupportSpec.RequestMappingSpec
produces(String... produces)
The producible media types of the mapped request, narrowing the primary mapping.
-
Method Details
-
methods
The HTTP request methods to map to, narrowing the primary mapping: GET, POST, HEAD, OPTIONS, PUT, PATCH, DELETE, TRACE.- Parameters:
supportedMethods
- theHttpMethod
s to use.- Returns:
- the spec
-
params
The parameters of the mapped request, narrowing the primary mapping.- Parameters:
params
- the request params to map to.- Returns:
- the spec
-
headers
The headers of the mapped request, narrowing the primary mapping.- Parameters:
headers
- the request headers to map to.- Returns:
- the spec
-
consumes
The consumable media types of the mapped request, narrowing the primary mapping.- Parameters:
consumes
- the the media types forContent-Type
header.- Returns:
- the spec
-
produces
The producible media types of the mapped request, narrowing the primary mapping.- Parameters:
produces
- the the media types forAccept
header.- Returns:
- the spec
-