|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ReverseHandlerMapping
Interface that can be implemented by HandlerMappings
in order to allow reverse lookups. This way you can obtain an URL for a
mapped handler.
Field Summary | |
---|---|
static String |
TOP_LEVEL_HANDLER_NAME_ATTRIBUTE
Name of the HttpServletRequest attribute that contains the
beanName of the matched handler. |
Method Summary | |
---|---|
String |
getUrlForHandler(String handlerName,
String prefix,
Object attributes,
UrlResolverContext context)
Returns the URL of a mapped handler. |
Field Detail |
---|
static final String TOP_LEVEL_HANDLER_NAME_ATTRIBUTE
HttpServletRequest
attribute that contains the
beanName of the matched handler.
Note: This attribute is not required to be supported by all ReverseHandlerMapping implementations.
Method Detail |
---|
String getUrlForHandler(String handlerName, String prefix, Object attributes, UrlResolverContext context)
handlerName
- The name of the handlerprefix
- Optional prefix to sort out ambiguitiesattributes
- Optional attributes to fill out wildcards. Can either
be null
, a primitive wrapper, a Map or a bean.context
- The context
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |