public interface RequestHandler extends java.lang.Comparable<RequestHandler>
Modifier and Type | Method and Description |
---|---|
static java.util.Comparator<RequestHandler> |
byOperationName() |
static java.util.Comparator<RequestHandler> |
byPatternsCondition() |
RequestHandler |
combine(RequestHandler other)
This is to merge two request handlers that are indistinguishable other than the media types supported
|
default int |
compareTo(RequestHandler other) |
java.util.Set<? extends org.springframework.http.MediaType> |
consumes() |
java.lang.Class<?> |
declaringClass()
Deprecated.
@since 2.7.0 This is introduced to preserve backwards compat with groups
|
<T extends java.lang.annotation.Annotation> |
findAnnotation(java.lang.Class<T> annotation) |
<T extends java.lang.annotation.Annotation> |
findControllerAnnotation(java.lang.Class<T> annotation) |
org.springframework.web.method.HandlerMethod |
getHandlerMethod()
Deprecated.
This is introduced to preserve backwards compat
|
java.lang.String |
getName() |
java.util.List<ResolvedMethodParameter> |
getParameters() |
PatternsRequestCondition |
getPatternsCondition() |
RequestMappingInfo |
getRequestMapping()
Deprecated.
This is introduced to preserve backwards compat
|
com.fasterxml.classmate.ResolvedType |
getReturnType() |
java.lang.String |
groupName() |
java.util.Set<NameValueExpression<java.lang.String>> |
headers() |
boolean |
isAnnotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation> annotation) |
RequestHandlerKey |
key() |
java.util.Set<NameValueExpression<java.lang.String>> |
params() |
java.util.Set<? extends org.springframework.http.MediaType> |
produces() |
static java.lang.String |
sortedPaths(PatternsRequestCondition patternsCondition) |
java.util.Set<org.springframework.web.bind.annotation.RequestMethod> |
supportedMethods() |
@Deprecated java.lang.Class<?> declaringClass()
boolean isAnnotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
PatternsRequestCondition getPatternsCondition()
java.lang.String groupName()
java.lang.String getName()
java.util.Set<org.springframework.web.bind.annotation.RequestMethod> supportedMethods()
java.util.Set<? extends org.springframework.http.MediaType> produces()
java.util.Set<? extends org.springframework.http.MediaType> consumes()
java.util.Set<NameValueExpression<java.lang.String>> headers()
java.util.Set<NameValueExpression<java.lang.String>> params()
<T extends java.lang.annotation.Annotation> java.util.Optional<T> findAnnotation(java.lang.Class<T> annotation)
RequestHandlerKey key()
java.util.List<ResolvedMethodParameter> getParameters()
com.fasterxml.classmate.ResolvedType getReturnType()
<T extends java.lang.annotation.Annotation> java.util.Optional<T> findControllerAnnotation(java.lang.Class<T> annotation)
@Deprecated RequestMappingInfo getRequestMapping()
@Deprecated org.springframework.web.method.HandlerMethod getHandlerMethod()
RequestHandler combine(RequestHandler other)
other
- handlerdefault int compareTo(RequestHandler other)
compareTo
in interface java.lang.Comparable<RequestHandler>
static java.lang.String sortedPaths(PatternsRequestCondition patternsCondition)
static java.util.Comparator<RequestHandler> byPatternsCondition()
static java.util.Comparator<RequestHandler> byOperationName()