public interface WebResourcesFacet extends ProjectFacet
Facet containing APIs to interact with Java Web Projects| Modifier and Type | Method and Description |
|---|---|
FileResource<?> |
createWebResource(char[] bytes,
String relativeFilename)
Deprecated.
|
FileResource<?> |
createWebResource(String render,
String relativeFilename)
Deprecated.
|
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. |
void |
visitWebResources(ResourceVisitor visitor)
Recursively loops over all the resource directories and for each file it finds, calls the visitor.
|
getFaceted, install, isInstalled, 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.@Deprecated FileResource<?> createWebResource(char[] bytes, String relativeFilename)
getWebRootDirectory() - create a
FileResource containing the given bytes.FileResource that was created.@Deprecated 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()void visitWebResources(ResourceVisitor visitor)
visitor - The ResourceVisitor that processes all the found files. Cannot be null.Copyright © 2015 JBoss by Red Hat. All rights reserved.