public interface WebResourceFacet extends Facet
Facet containing APIs to interact with Java Web Projects| Modifier and Type | Method and Description |
|---|---|
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. |
getProject, install, isInstalled, setProject, uninstallDirectoryResource 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()Copyright © 2013 JBoss by Red Hat. All Rights Reserved.