|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.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.
Nested Class Summary | |
---|---|
protected static class |
DefaultViewHandlerSupport.FacesServletMapping
Represents a mapping entry of the FacesServlet in the web.xml configuration file. |
Constructor Summary | |
---|---|
DefaultViewHandlerSupport()
|
Method Summary | |
---|---|
protected java.lang.String |
applyDefaultSuffix(javax.faces.context.FacesContext context,
java.lang.String viewId)
Return the viewId with any non-standard suffix stripped off and replaced with the default suffix configured for the specified context. |
java.lang.String |
calculateActionURL(javax.faces.context.FacesContext context,
java.lang.String viewId)
Return a string containing a webapp-relative URL that the user can invoke to render the specified view. |
protected static DefaultViewHandlerSupport.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(javax.faces.context.FacesContext context,
java.lang.String viewId)
|
protected java.lang.String |
getContextSuffix(javax.faces.context.FacesContext context)
|
protected DefaultViewHandlerSupport.FacesServletMapping |
getFacesServletMapping(javax.faces.context.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. |
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(javax.faces.context.FacesContext context, java.lang.String viewId)
calculateViewId
in interface ViewHandlerSupport
public java.lang.String calculateActionURL(javax.faces.context.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 DefaultViewHandlerSupport.FacesServletMapping getFacesServletMapping(javax.faces.context.FacesContext context)
protected static DefaultViewHandlerSupport.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(javax.faces.context.FacesContext context)
protected java.lang.String applyDefaultSuffix(javax.faces.context.FacesContext context, java.lang.String viewId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |