public static class RequestedContentTypeResolverBuilder.ParameterResolverConfigurer extends Object
ParameterContentTypeResolver
.Constructor and Description |
---|
ParameterResolverConfigurer() |
Modifier and Type | Method and Description |
---|---|
RequestedContentTypeResolverBuilder.ParameterResolverConfigurer |
mediaType(Map<String,MediaType> mediaTypes)
Map-based variant of
mediaType(String, MediaType) . |
RequestedContentTypeResolverBuilder.ParameterResolverConfigurer |
mediaType(String key,
MediaType mediaType)
Configure a mapping between a lookup key (extracted from a query
parameter value) and a corresponding
MediaType . |
RequestedContentTypeResolverBuilder.ParameterResolverConfigurer |
parameterName(String parameterName)
Set the name of the parameter to use to determine requested media types.
|
public RequestedContentTypeResolverBuilder.ParameterResolverConfigurer mediaType(String key, MediaType mediaType)
MediaType
.key
- the lookup keymediaType
- the MediaType for that keypublic RequestedContentTypeResolverBuilder.ParameterResolverConfigurer mediaType(Map<String,MediaType> mediaTypes)
mediaType(String, MediaType)
.mediaTypes
- the mappings to copypublic RequestedContentTypeResolverBuilder.ParameterResolverConfigurer parameterName(String parameterName)
By default this is set to "format".