接口 RequestHandler
public interface RequestHandler
-
方法概要
修饰符和类型方法说明combine(RequestHandler other) This is to merge two request handlers that are indistinguishable other than the media types supportedSet<? extends org.springframework.http.MediaType>consumes()Class<?>已过时。<T extends Annotation>
com.google.common.base.Optional<T>findAnnotation(Class<T> annotation) <T extends Annotation>
com.google.common.base.Optional<T>findControllerAnnotation(Class<T> annotation) org.springframework.web.method.HandlerMethod已过时。This is introduced to preserve backwards compatgetName()org.springframework.web.servlet.mvc.condition.PathPatternsRequestConditionorg.springframework.web.servlet.mvc.condition.PatternsRequestConditionorg.springframework.web.servlet.mvc.method.RequestMappingInfo已过时。This is introduced to preserve backwards compatcom.fasterxml.classmate.ResolvedTypeheaders()booleanisAnnotatedWith(Class<? extends Annotation> annotation) key()params()Set<? extends org.springframework.http.MediaType>produces()Set<org.springframework.web.bind.annotation.RequestMethod>
-
方法详细资料
-
declaringClass
已过时。- 返回:
- declaring class
- 从以下版本开始:
- 2.7.0 This is introduced to preserve backwards compat with groups
-
isAnnotatedWith
-
getPatternsCondition
org.springframework.web.servlet.mvc.condition.PatternsRequestCondition getPatternsCondition() -
getPathPatternsCondition
org.springframework.web.servlet.mvc.condition.PathPatternsRequestCondition getPathPatternsCondition() -
groupName
String groupName() -
getName
String getName() -
supportedMethods
Set<org.springframework.web.bind.annotation.RequestMethod> supportedMethods() -
produces
Set<? extends org.springframework.http.MediaType> produces() -
consumes
Set<? extends org.springframework.http.MediaType> consumes() -
headers
-
params
-
findAnnotation
-
key
RequestHandlerKey key() -
getParameters
List<ResolvedMethodParameter> getParameters() -
getReturnType
com.fasterxml.classmate.ResolvedType getReturnType() -
findControllerAnnotation
<T extends Annotation> com.google.common.base.Optional<T> findControllerAnnotation(Class<T> annotation) -
getRequestMapping
已过时。This is introduced to preserve backwards compat- 返回:
- request mapping info
-
getHandlerMethod
已过时。This is introduced to preserve backwards compat- 返回:
- handler method
-
combine
This is to merge two request handlers that are indistinguishable other than the media types supported- 参数:
other- handler- 返回:
- combined request handler
- 从以下版本开始:
- 2.5.0
-