|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.riotfamily.pages.mapping.PageResolver
public class PageResolver
Field Summary | |
---|---|
static String |
PAGE_ATTRIBUTE
|
static String |
PATH_ATTRIBUTE
|
static String |
SITE_ATTRIBUTE
|
Constructor Summary | |
---|---|
PageResolver(PageDao pageDao,
PathCompleter pathCompleter)
|
Method Summary | |
---|---|
protected void |
exposePathWithinSite(String pathWithinSite,
HttpServletRequest request)
|
Page |
getPage(HttpServletRequest request)
Returns the Page for the given request. |
String |
getPathWithinSite(HttpServletRequest request)
Returns the path within the resolved Site. |
static Page |
getResolvedPage(HttpServletRequest request)
Returns the previously resolved Page for the given request. |
static Page |
getResolvedPage(UrlResolverContext context)
Returns the previously resolved Page for the given context. |
static String |
getResolvedPathWithinSite(HttpServletRequest request)
Returns the previously resolved Path within the Site for the given request. |
static String |
getResolvedPathWithinSite(UrlResolverContext context)
Returns the previously resolved Path within the Site for the given context. |
static Site |
getResolvedSite(HttpServletRequest request)
Returns the previously resolved Site for the given request. |
static Site |
getResolvedSite(UrlResolverContext context)
Returns the previously resolved Site for the given context. |
Site |
getSite(HttpServletRequest request)
Returns the first Site that matches the given request. |
static void |
resetAttributes(HttpServletRequest request)
Resets all internally used attributes. |
Page |
resolvePage(String url,
String contextPath,
Site fallbackSite)
Returns the Page which is requestable at the given URL. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PATH_ATTRIBUTE
public static final String SITE_ATTRIBUTE
public static final String PAGE_ATTRIBUTE
Constructor Detail |
---|
public PageResolver(PageDao pageDao, PathCompleter pathCompleter)
Method Detail |
---|
public Site getSite(HttpServletRequest request)
null
if no match is foundpublic String getPathWithinSite(HttpServletRequest request)
public Page getPage(HttpServletRequest request)
public static Page getResolvedPage(HttpServletRequest request)
Note: This method does not perform any lookups itself.
Only use this method if you are sure that
getPage(HttpServletRequest)
has been invoked before.
public static Page getResolvedPage(UrlResolverContext context)
Note: This method does not perform any lookups itself.
Only use this method if you are sure that
getPage(HttpServletRequest)
has been invoked before.
public static Site getResolvedSite(HttpServletRequest request)
Note: This method does not perform any lookups itself.
Only use this method if you are sure that
getSite(HttpServletRequest)
has been invoked before.
public static Site getResolvedSite(UrlResolverContext context)
Note: This method does not perform any lookups itself.
Only use this method if you are sure that
getSite(HttpServletRequest)
has been invoked before.
public static String getResolvedPathWithinSite(HttpServletRequest request)
Note: This method does not perform any lookups itself.
Only use this method if you are sure that
getSite(HttpServletRequest)
has been invoked before.
public static String getResolvedPathWithinSite(UrlResolverContext context)
Note: This method does not perform any lookups itself.
Only use this method if you are sure that
getSite(HttpServletRequest)
has been invoked before.
public Page resolvePage(String url, String contextPath, Site fallbackSite)
null
in case the given parameters do not match a page.
url
- url of the requestable pagecontextPath
- of the application in order to strip itfallbackSite
- in case the site can't be looked up, this site will
be used to find the pagepathCompleter
- in order to strip the servlet mapping
protected void exposePathWithinSite(String pathWithinSite, HttpServletRequest request)
public static void resetAttributes(HttpServletRequest request)
request
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |