public class PrefixHandlerMapping
extends org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping
HandlerMapping to map @RequestMapping on objects and prefixes them. The semantics
of @RequestMapping should be identical to a normal @Controller, but the Objects
should not be annotated as @Controller (otherwise they will be mapped by the normal MVC
mechanisms).| Constructor and Description |
|---|
PrefixHandlerMapping(Object... handlers) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
String |
getPrefix() |
protected boolean |
isHandler(Class<?> beanType) |
protected void |
registerHandlerMethod(Object handler,
Method method,
org.springframework.web.servlet.mvc.method.RequestMappingInfo mapping) |
void |
setPrefix(String prefix) |
createRequestMappingInfo, getContentNegotiationManager, getCustomMethodCondition, getCustomTypeCondition, getFileExtensions, getMappingForMethod, initCorsConfiguration, match, resolveEmbeddedValuesInPatterns, setContentNegotiationManager, setEmbeddedValueResolver, setUseRegisteredSuffixPatternMatch, setUseSuffixPatternMatch, setUseTrailingSlashMatch, useRegisteredSuffixPatternMatch, useSuffixPatternMatch, useTrailingSlashMatchgetMappingComparator, getMappingPathPatterns, getMatchingMapping, handleMatch, handleNoMatchcreateHandlerMethod, detectHandlerMethods, getCorsConfiguration, getHandlerInternal, getHandlerMethods, getHandlerMethodsForMappingName, getNamingStrategy, handlerMethodsInitialized, initHandlerMethods, lookupHandlerMethod, registerMapping, setDetectHandlerMethodsInAncestorContexts, setHandlerMethodMappingNamingStrategy, unregisterMappingadaptInterceptor, detectMappedInterceptors, extendInterceptors, getAdaptedInterceptors, getCorsConfigurations, getCorsHandlerExecutionChain, getCorsProcessor, getDefaultHandler, getHandler, getHandlerExecutionChain, getMappedInterceptors, getOrder, getPathMatcher, getUrlPathHelper, initApplicationContext, initInterceptors, setAlwaysUseFullPath, setCorsConfigurations, setCorsProcessor, setDefaultHandler, setInterceptors, setOrder, setPathMatcher, setRemoveSemicolonContent, setUrlDecode, setUrlPathHelpergetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextgetApplicationContext, getMessageSourceAccessor, requiredContextClass, setApplicationContextpublic PrefixHandlerMapping(Object... handlers)
public void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanafterPropertiesSet in class org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMappingprotected boolean isHandler(Class<?> beanType)
isHandler in class org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMappingprotected void registerHandlerMethod(Object handler, Method method, org.springframework.web.servlet.mvc.method.RequestMappingInfo mapping)
registerHandlerMethod in class org.springframework.web.servlet.handler.AbstractHandlerMethodMapping<org.springframework.web.servlet.mvc.method.RequestMappingInfo>public void setPrefix(String prefix)
public String getPrefix()
Copyright © 2018 codecentric AG. All rights reserved.