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.RequestMappingSpecconsumes(String... consumes)The consumable media types of the mapped request, narrowing the primary mapping.HttpInboundEndpointSupportSpec.RequestMappingSpecheaders(String... headers)The headers of the mapped request, narrowing the primary mapping.HttpInboundEndpointSupportSpec.RequestMappingSpecmethods(HttpMethod... supportedMethods)The HTTP request methods to map to, narrowing the primary mapping: GET, POST, HEAD, OPTIONS, PUT, PATCH, DELETE, TRACE.HttpInboundEndpointSupportSpec.RequestMappingSpecparams(String... params)The parameters of the mapped request, narrowing the primary mapping.HttpInboundEndpointSupportSpec.RequestMappingSpecproduces(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- theHttpMethods 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-Typeheader.- Returns:
- the spec
-
produces
The producible media types of the mapped request, narrowing the primary mapping.- Parameters:
produces- the the media types forAcceptheader.- Returns:
- the spec
-