public class CachingMappingDiscoverer extends Object implements MappingDiscoverer
MappingDiscoverer
.Modifier and Type | Method and Description |
---|---|
List<MediaType> |
getConsumes(Method method)
Returns the
MediaType s supported for consumption. |
String |
getMapping(Class<?> type)
Returns the mapping associated with the given type.
|
String |
getMapping(Class<?> type,
Method method)
Returns the mapping for the given
Method invoked on the given type. |
String |
getMapping(Method method)
Returns the mapping associated with the given
Method . |
String[] |
getParams(Method method)
Returns the statically declared request parameters.
|
Collection<HttpMethod> |
getRequestMethod(Class<?> type,
Method method)
Returns the HTTP verbs for the given
Method invoked on the given type. |
static CachingMappingDiscoverer |
of(MappingDiscoverer delegate) |
public static CachingMappingDiscoverer of(MappingDiscoverer delegate)
@Nullable public String getMapping(Class<?> type)
MappingDiscoverer
getMapping
in interface MappingDiscoverer
type
- must not be null.@Nullable public String getMapping(Method method)
MappingDiscoverer
Method
. This will include the type-level mapping.getMapping
in interface MappingDiscoverer
method
- must not be null.@Nullable public String getMapping(Class<?> type, Method method)
MappingDiscoverer
Method
invoked on the given type. This can be used to calculate the
mapping for a super type method being invoked on a sub-type with a type mapping.getMapping
in interface MappingDiscoverer
type
- must not be null.method
- must not be null.public Collection<HttpMethod> getRequestMethod(Class<?> type, Method method)
MappingDiscoverer
Method
invoked on the given type. This can be used to build hypermedia
templates.getRequestMethod
in interface MappingDiscoverer
public List<MediaType> getConsumes(Method method)
MappingDiscoverer
MediaType
s supported for consumption.getConsumes
in interface MappingDiscoverer
method
- must not be null.public String[] getParams(Method method)
MappingDiscoverer
getParams
in interface MappingDiscoverer
method
- must not be null.Copyright © 2011–2021 Pivotal, Inc.. All rights reserved.