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 RequestHandler
public RequestHandler combine(RequestHandler other)
RequestHandler
combine
in interface RequestHandler
other
- handlerpublic java.lang.Class<?> declaringClass()
declaringClass
in interface RequestHandler
public boolean isAnnotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
isAnnotatedWith
in interface RequestHandler
public org.springframework.web.servlet.mvc.condition.PatternsRequestCondition getPatternsCondition()
getPatternsCondition
in interface RequestHandler
public java.lang.String groupName()
groupName
in interface RequestHandler
public java.lang.String getName()
getName
in interface RequestHandler
public java.util.Set<org.springframework.web.bind.annotation.RequestMethod> supportedMethods()
supportedMethods
in interface RequestHandler
public java.util.Set<? extends org.springframework.http.MediaType> produces()
produces
in interface RequestHandler
public java.util.Set<? extends org.springframework.http.MediaType> consumes()
consumes
in interface RequestHandler
public java.util.Set<org.springframework.web.servlet.mvc.condition.NameValueExpression<java.lang.String>> headers()
headers
in interface RequestHandler
public java.util.Set<org.springframework.web.servlet.mvc.condition.NameValueExpression<java.lang.String>> params()
params
in interface RequestHandler
public <T extends java.lang.annotation.Annotation> com.google.common.base.Optional<T> findAnnotation(java.lang.Class<T> annotation)
findAnnotation
in interface RequestHandler
public RequestHandlerKey key()
key
in interface RequestHandler
public java.util.List<ResolvedMethodParameter> getParameters()
getParameters
in interface RequestHandler
public com.fasterxml.classmate.ResolvedType getReturnType()
getReturnType
in interface RequestHandler
public <T extends java.lang.annotation.Annotation> com.google.common.base.Optional<T> findControllerAnnotation(java.lang.Class<T> annotation)
findControllerAnnotation
in interface RequestHandler
public org.springframework.web.servlet.mvc.method.RequestMappingInfo getRequestMapping()
getRequestMapping
in interface RequestHandler