public class WebMvcRequestHandler extends java.lang.Object implements RequestHandler
| Constructor and Description |
|---|
WebMvcRequestHandler(org.springframework.web.servlet.mvc.method.RequestMappingInfo requestMapping,
org.springframework.web.method.HandlerMethod handlerMethod) |
| Modifier and Type | Method and Description |
|---|---|
RequestHandler |
combine(RequestHandler other)
This is to merge two request handlers that are indistinguishable other than the media types supported
|
java.util.Set<? extends org.springframework.http.MediaType> |
consumes() |
java.lang.Class<?> |
declaringClass() |
<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() |
java.lang.String |
getName() |
java.util.List<ResolvedMethodParameter> |
getParameters() |
org.springframework.web.servlet.mvc.condition.PatternsRequestCondition |
getPatternsCondition() |
org.springframework.web.servlet.mvc.method.RequestMappingInfo |
getRequestMapping() |
com.fasterxml.classmate.ResolvedType |
getReturnType() |
java.lang.String |
groupName() |
java.util.Set<org.springframework.web.servlet.mvc.condition.NameValueExpression<java.lang.String>> |
headers() |
boolean |
isAnnotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation> annotation) |
RequestHandlerKey |
key() |
java.util.Set<org.springframework.web.servlet.mvc.condition.NameValueExpression<java.lang.String>> |
params() |
java.util.Set<? extends org.springframework.http.MediaType> |
produces() |
java.util.Set<org.springframework.web.bind.annotation.RequestMethod> |
supportedMethods() |
public WebMvcRequestHandler(org.springframework.web.servlet.mvc.method.RequestMappingInfo requestMapping,
org.springframework.web.method.HandlerMethod handlerMethod)
public org.springframework.web.method.HandlerMethod getHandlerMethod()
getHandlerMethod in interface RequestHandlerpublic RequestHandler combine(RequestHandler other)
RequestHandlercombine in interface RequestHandlerother - handlerpublic java.lang.Class<?> declaringClass()
declaringClass in interface RequestHandlerpublic boolean isAnnotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
isAnnotatedWith in interface RequestHandlerpublic org.springframework.web.servlet.mvc.condition.PatternsRequestCondition getPatternsCondition()
getPatternsCondition in interface RequestHandlerpublic java.lang.String groupName()
groupName in interface RequestHandlerpublic java.lang.String getName()
getName in interface RequestHandlerpublic java.util.Set<org.springframework.web.bind.annotation.RequestMethod> supportedMethods()
supportedMethods in interface RequestHandlerpublic java.util.Set<? extends org.springframework.http.MediaType> produces()
produces in interface RequestHandlerpublic java.util.Set<? extends org.springframework.http.MediaType> consumes()
consumes in interface RequestHandlerpublic java.util.Set<org.springframework.web.servlet.mvc.condition.NameValueExpression<java.lang.String>> headers()
headers in interface RequestHandlerpublic java.util.Set<org.springframework.web.servlet.mvc.condition.NameValueExpression<java.lang.String>> params()
params in interface RequestHandlerpublic <T extends java.lang.annotation.Annotation> com.google.common.base.Optional<T> findAnnotation(java.lang.Class<T> annotation)
findAnnotation in interface RequestHandlerpublic RequestHandlerKey key()
key in interface RequestHandlerpublic java.util.List<ResolvedMethodParameter> getParameters()
getParameters in interface RequestHandlerpublic com.fasterxml.classmate.ResolvedType getReturnType()
getReturnType in interface RequestHandlerpublic <T extends java.lang.annotation.Annotation> com.google.common.base.Optional<T> findControllerAnnotation(java.lang.Class<T> annotation)
findControllerAnnotation in interface RequestHandlerpublic org.springframework.web.servlet.mvc.method.RequestMappingInfo getRequestMapping()
getRequestMapping in interface RequestHandler