|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.shared_impl.application.DefaultViewHandlerSupport
public class DefaultViewHandlerSupport
A ViewHandlerSupport implementation for use with standard Java Servlet engines, ie an engine that supports javax.servlet, and uses a standard web.xml file.
Constructor Summary | |
---|---|
DefaultViewHandlerSupport()
|
Method Summary | |
---|---|
java.lang.String |
calculateActionURL(FacesContext context,
java.lang.String viewId)
Return a string containing a webapp-relative URL that the user can invoke to render the specified view. |
java.lang.String |
calculateAndCheckViewId(FacesContext context,
java.lang.String viewId)
|
protected static FacesServletMapping |
calculateFacesServletMapping(java.lang.String servletPath,
java.lang.String pathInfo)
Determines the mapping of the FacesServlet in the web.xml configuration file. |
java.lang.String |
calculateViewId(FacesContext context,
java.lang.String viewId)
|
protected boolean |
checkResourceExists(FacesContext context,
java.lang.String viewId)
|
protected java.lang.String[] |
getContextSuffix(FacesContext context)
|
protected java.lang.String |
getFaceletsContextSuffix(FacesContext context)
|
protected java.lang.String[] |
getFaceletsViewMappings(FacesContext context)
|
protected FacesServletMapping |
getFacesServletMapping(FacesContext context)
Read the web.xml file that is in the classpath and parse its internals to figure out how the FacesServlet is mapped for the current webapp. |
protected java.lang.String |
handlePrefixMapping(java.lang.String viewId,
java.lang.String prefix)
Return the normalized viewId according to the algorithm specified in 7.5.2 by stripping off any number of occurrences of the prefix mapping from the viewId. |
protected java.lang.String |
handleSuffixMapping(FacesContext context,
java.lang.String requestViewId)
Return the viewId with any non-standard suffix stripped off and replaced with the default suffix configured for the specified context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultViewHandlerSupport()
Method Detail |
---|
public java.lang.String calculateViewId(FacesContext context, java.lang.String viewId)
calculateViewId
in interface ViewHandlerSupport
public java.lang.String calculateAndCheckViewId(FacesContext context, java.lang.String viewId)
calculateAndCheckViewId
in interface ViewHandlerSupport
public java.lang.String calculateActionURL(FacesContext context, java.lang.String viewId)
ViewHandlerSupport
URLs and ViewIds are not quite the same; for example a url of "/foo.jsf" or "/faces/foo.jsp" may be needed to access the view "/foo.jsp".
calculateActionURL
in interface ViewHandlerSupport
protected FacesServletMapping getFacesServletMapping(FacesContext context)
protected static FacesServletMapping calculateFacesServletMapping(java.lang.String servletPath, java.lang.String pathInfo)
servletPath
- The servletPath of the current requestpathInfo
- The pathInfo of the current request
protected java.lang.String[] getContextSuffix(FacesContext context)
protected java.lang.String getFaceletsContextSuffix(FacesContext context)
protected java.lang.String[] getFaceletsViewMappings(FacesContext context)
protected java.lang.String handlePrefixMapping(java.lang.String viewId, java.lang.String prefix)
protected java.lang.String handleSuffixMapping(FacesContext context, java.lang.String requestViewId)
protected boolean checkResourceExists(FacesContext context, java.lang.String viewId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |