|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.riotfamily.common.web.mapping.HandlerUrlResolver
public class HandlerUrlResolver
Class that performs URL lookups for handlers mapped by a
ReverseHandlerMapping
.
Constructor Summary | |
---|---|
HandlerUrlResolver(PathCompleter pathCompleter)
|
Method Summary | |
---|---|
String |
getUrlForHandler(HttpServletRequest request,
String handlerName,
Object... attributes)
Returns the URL of a mapped handler. |
String |
getUrlForHandler(HttpServletRequest request,
String handlerName,
Object attributes)
Returns the URL of a mapped handler. |
String |
getUrlForHandler(HttpServletRequest request,
String handlerName,
Object attributes,
String prefix)
Returns the URL of a mapped handler. |
String |
getUrlForHandler(UrlResolverContext context,
String handlerName,
Object... attributes)
|
String |
getUrlForHandler(UrlResolverContext context,
String handlerName,
Object attributes)
|
String |
getUrlForHandler(UrlResolverContext context,
String handlerName,
Object attributes,
String prefix)
|
void |
setApplicationContext(ApplicationContext applicationContext)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HandlerUrlResolver(PathCompleter pathCompleter)
Method Detail |
---|
public void setApplicationContext(ApplicationContext applicationContext)
setApplicationContext
in interface ApplicationContextAware
public String getUrlForHandler(HttpServletRequest request, String handlerName, Object attributes)
handlerName
- The name of the handlerattributes
- Optional attributes to fill out wildcards. Can either
be null
, a primitive wrapper, a Map or a bean.request
- The current requestpublic String getUrlForHandler(HttpServletRequest request, String handlerName, Object... attributes)
handlerName
- The name of the handlerattributes
- Optional attributes to fill out wildcards.request
- The current requestpublic String getUrlForHandler(HttpServletRequest request, String handlerName, Object attributes, String prefix)
handlerName
- The name of the handlerattributes
- Optional attributes to fill out wildcards. Can either
be null
, a primitive wrapper, a Map or a bean.request
- The current requestprefix
- Optional prefix to sort out ambiguitiespublic String getUrlForHandler(UrlResolverContext context, String handlerName, Object attributes)
public String getUrlForHandler(UrlResolverContext context, String handlerName, Object... attributes)
public String getUrlForHandler(UrlResolverContext context, String handlerName, Object attributes, String prefix)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |