|
Forge - Parent 1.2.2-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FacesFacet
If installed, this Project
supports features from the JSF specification.
Method Summary | |
---|---|
FileResource<?> |
getConfigFile()
Get a reference to this Project 's configured WEB-INF/faces-config.xml file. |
List<String> |
getEffectiveFacesServletMappings()
Get this application's currently configured FacesServlet mappings. |
List<String> |
getFaceletsDefaultSuffixes()
Return all Faces default suffixes for JSP files as configured by the javax.faces.FACELETS_SUFFIX context-parameter. |
List<String> |
getFaceletsViewMapping()
Return all Facelets view mappings as configured by the javax.faces.FACELETS_VIEW_MAPPINGS context-parameter. |
List<String> |
getFacesDefaultSuffixes()
Return all Faces default suffixes for JSP files as configured by the javax.faces.DEFAULT_SUFFIX context-parameter. |
List<String> |
getFacesServletMappings()
Get this application's currently configured FacesServlet mappings from the web.xml |
List<String> |
getFacesSuffixes()
Return all configured JSP or Facelets default suffixes. |
org.jboss.shrinkwrap.descriptor.api.spec.servlet.web.FacesProjectStage |
getProjectStage()
Get this application's currently configured FacesProjectStage . |
Resource<?> |
getResourceForWebPath(String path)
Given a web path, return the corresponding resource to which that path would resolve when the application is deployed. |
List<String> |
getWebPaths(Resource<?> r)
For a given Resource , if the resource is a web-resource, return all known context-relative URLs with which
that resource may be accessed. |
List<String> |
getWebPaths(String viewId)
For a given JSF view-ID, if the view-ID is valid, return all known context-relative URLs with which that resource may be accessed. |
void |
setFacesMapping(String mapping)
Set this application's FacesServlet mapping. |
Methods inherited from interface org.jboss.forge.project.Facet |
---|
getProject, install, isInstalled, setProject, uninstall |
Method Detail |
---|
FileResource<?> getConfigFile()
Project
's configured WEB-INF/faces-config.xml file.
Note: This method does not take into account any configuration files that may have been specified by the javax.faces.CONFIG_FILES context-parameter.
org.jboss.shrinkwrap.descriptor.api.spec.servlet.web.FacesProjectStage getProjectStage()
FacesProjectStage
.
List<String> getFacesServletMappings()
List<String> getEffectiveFacesServletMappings()
void setFacesMapping(String mapping)
List<String> getWebPaths(Resource<?> r)
Resource
, if the resource is a web-resource, return all known context-relative URLs with which
that resource may be accessed.
E.g: If the Faces Servlet were mapped to *.jsf, given the resource "$PROJECT_HOME/src/main/webapp/example.xhtml", this method would return "/example.jsf"
List<String> getWebPaths(String viewId)
E.g: If the Faces Servlet were mapped to *.jsf, given the view-ID "/example.xhtml", this method would return "/example.jsf"
Resource<?> getResourceForWebPath(String path)
E.g: If the Faces Servlet were mapped to *.jsf, given a web path of, "/example.jsf", this method would return a
Resource
reference to "$PROJECT_HOME/src/main/webapp/example.xhtml"
List<String> getFacesSuffixes()
#getFacesDefaultSuffixes()}, {@link #getFaceletsDefaultSuffixes()}
List<String> getFacesDefaultSuffixes()
List<String> getFaceletsDefaultSuffixes()
List<String> getFaceletsViewMapping()
|
Forge - Parent 1.2.2-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |