|
Forge - Shell API 1.2.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WebResourceFacet
A Facet containing APIs to interact with Java Web Projects
| Method Summary | |
|---|---|
FileResource<?> |
createWebResource(char[] bytes,
String relativeFilename)
At the given path/filename relative to the project Web Root directory: getWebRootDirectory() - create a
FileResource containing the given bytes. |
FileResource<?> |
createWebResource(String render,
String relativeFilename)
At the given path/filename relative to the project Web Root directory: getWebRootDirectory() - create a
FileResource containing the given String. |
FileResource<?> |
getWebResource(String relativePath)
Get the given FileResource relative to the project Web Root directory: getWebRootDirectory() |
List<DirectoryResource> |
getWebRootDirectories()
Get a list containing all possible Web Root DirectoryResources for the current project. |
DirectoryResource |
getWebRootDirectory()
Get the default Web Root directory (this is the DirectoryResource containing resources to be deployed to
the web-root URL when the application is published. |
| Methods inherited from interface org.jboss.forge.project.Facet |
|---|
getProject, install, isInstalled, setProject, uninstall |
| Method Detail |
|---|
DirectoryResource getWebRootDirectory()
DirectoryResource containing resources to be deployed to
the web-root URL when the application is published. (E.g. In a maven project, files in the
/project/src/main/webapp directory are typically published to the root URL:
http://localhost:8080/project/ root directory. In an eclipse project, this folder is typically
located by default at: /project/WebContent/.)
List<DirectoryResource> getWebRootDirectories()
DirectoryResources for the current project.
FileResource<?> createWebResource(char[] bytes,
String relativeFilename)
getWebRootDirectory() - create a
FileResource containing the given bytes.
FileResource that was created.
FileResource<?> createWebResource(String render,
String relativeFilename)
getWebRootDirectory() - create a
FileResource containing the given String.
FileResource that was created.FileResource<?> getWebResource(String relativePath)
FileResource relative to the project Web Root directory: getWebRootDirectory()
|
Forge - Shell API 1.2.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||