Package springfox.documentation
Interface RequestHandler
-
- All Superinterfaces:
java.lang.Comparable<RequestHandler>
public interface RequestHandler extends java.lang.Comparable<RequestHandler>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description static java.util.Comparator<RequestHandler>byOperationName()static java.util.Comparator<RequestHandler>byPatternsCondition()RequestHandlercombine(RequestHandler other)This is to merge two request handlers that are indistinguishable other than the media types supporteddefault intcompareTo(RequestHandler other)java.util.Set<org.springframework.http.MediaType>consumes()java.lang.Class<?>declaringClass()Deprecated.<T extends java.lang.annotation.Annotation>
java.util.Optional<T>findAnnotation(java.lang.Class<T> annotation)<T extends java.lang.annotation.Annotation>
java.util.Optional<T>findControllerAnnotation(java.lang.Class<T> annotation)org.springframework.web.method.HandlerMethodgetHandlerMethod()Deprecated.This is introduced to preserve backwards compatjava.lang.StringgetName()java.util.List<ResolvedMethodParameter>getParameters()PatternsRequestConditiongetPatternsCondition()RequestMappingInfo<?>getRequestMapping()Deprecated.This is introduced to preserve backwards compatcom.fasterxml.classmate.ResolvedTypegetReturnType()java.lang.StringgroupName()java.util.Set<NameValueExpression<java.lang.String>>headers()booleanisAnnotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)RequestHandlerKeykey()java.util.Set<NameValueExpression<java.lang.String>>params()java.util.Set<org.springframework.http.MediaType>produces()static java.lang.StringsortedPaths(PatternsRequestCondition patternsCondition)java.util.Set<org.springframework.web.bind.annotation.RequestMethod>supportedMethods()
-
-
-
Method Detail
-
declaringClass
@Deprecated java.lang.Class<?> declaringClass()
Deprecated.- Returns:
- declaring class
- Since:
- 2.7.0 This is introduced to preserve backwards compat with groups
-
isAnnotatedWith
boolean isAnnotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
-
getPatternsCondition
PatternsRequestCondition getPatternsCondition()
-
groupName
java.lang.String groupName()
-
getName
java.lang.String getName()
-
supportedMethods
java.util.Set<org.springframework.web.bind.annotation.RequestMethod> supportedMethods()
-
produces
java.util.Set<org.springframework.http.MediaType> produces()
-
consumes
java.util.Set<org.springframework.http.MediaType> consumes()
-
headers
java.util.Set<NameValueExpression<java.lang.String>> headers()
-
params
java.util.Set<NameValueExpression<java.lang.String>> params()
-
findAnnotation
<T extends java.lang.annotation.Annotation> java.util.Optional<T> findAnnotation(java.lang.Class<T> annotation)
-
key
RequestHandlerKey key()
-
getParameters
java.util.List<ResolvedMethodParameter> getParameters()
-
getReturnType
com.fasterxml.classmate.ResolvedType getReturnType()
-
findControllerAnnotation
<T extends java.lang.annotation.Annotation> java.util.Optional<T> findControllerAnnotation(java.lang.Class<T> annotation)
-
getRequestMapping
@Deprecated RequestMappingInfo<?> getRequestMapping()
Deprecated.This is introduced to preserve backwards compat- Returns:
- request mapping info
-
getHandlerMethod
@Deprecated org.springframework.web.method.HandlerMethod getHandlerMethod()
Deprecated.This is introduced to preserve backwards compat- Returns:
- handler method
-
combine
RequestHandler combine(RequestHandler other)
This is to merge two request handlers that are indistinguishable other than the media types supported- Parameters:
other- handler- Returns:
- combined request handler
- Since:
- 2.5.0
-
compareTo
default int compareTo(RequestHandler other)
- Specified by:
compareToin interfacejava.lang.Comparable<RequestHandler>
-
sortedPaths
static java.lang.String sortedPaths(PatternsRequestCondition patternsCondition)
-
byPatternsCondition
static java.util.Comparator<RequestHandler> byPatternsCondition()
-
byOperationName
static java.util.Comparator<RequestHandler> byOperationName()
-
-