|
org.netbeans.api.web.webmodule 1.28 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.modules.web.api.webmodule.WebModule
public final class WebModule
This class encapsulates a web module.
A client may obtain a WebModule instance using
method getWebModule(org.openide.filesystems.FileObject), for any
FileObject in the web module directory structure.
Use the classpath API to obtain the classpath for the document base (this classpath is used for code completion of JSPs). An example:
WebModule wm = ...;
FileObject docRoot = wm.getDocumentBase ();
ClassPath cp = ClassPath.getClassPath(docRoot, ClassPath.EXECUTE);
Note that no particular directory structure for web module is guaranteed by this API.
| Field Summary | |
|---|---|
static String |
J2EE_13_LEVEL
Deprecated. |
static String |
J2EE_14_LEVEL
Deprecated. |
static String |
JAVA_EE_5_LEVEL
Deprecated. |
| Method Summary | |
|---|---|
String |
getContextPath()
Returns the context path of the web module. |
FileObject |
getDeploymentDescriptor()
Returns the deployment descriptor ( web.xml file) of the web module. |
FileObject |
getDocumentBase()
Returns the folder that contains sources of the static documents for the web module (html, JSPs, etc.). |
String |
getJ2eePlatformVersion()
Deprecated. use getJ2eeProfile() |
org.netbeans.api.j2ee.core.Profile |
getJ2eeProfile()
|
FileObject[] |
getJavaSources()
Deprecated. This method is deprecated, because its return values does not contain enough information about the source roots. Source roots are usually implemented by a org.netbeans.api.project.SourceGroup,
which is more than just a container for a FileObject. |
MetadataModel<WebAppMetadata> |
getMetadataModel()
Returns a model describing the metadata of this web module (servlets, resources, etc.). |
FileObject |
getWebInf()
Returns the WEB-INF folder for the web module. |
static WebModule |
getWebModule(FileObject file)
Finds the web module that a given file belongs to. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@Deprecated public static final String J2EE_13_LEVEL
@Deprecated public static final String J2EE_14_LEVEL
@Deprecated public static final String JAVA_EE_5_LEVEL
| Method Detail |
|---|
public static WebModule getWebModule(FileObject file)
file - the file to find the web module for; never null.
NullPointerException - if the file parameter is null.public FileObject getDocumentBase()
public FileObject getWebInf()
The WEB-INF folder would typically be a child of the folder returned
by getDocumentBase() but does not need to be.
public FileObject getDeploymentDescriptor()
web.xml file) of the web module.
getWebInf() but does not need to be.
web.xml file; can be null.public String getContextPath()
public String getJ2eePlatformVersion()
getJ2eeProfile()
Profile.
public org.netbeans.api.j2ee.core.Profile getJ2eeProfile()
@Deprecated public FileObject[] getJavaSources()
org.netbeans.api.project.SourceGroup,
which is more than just a container for a FileObject.
Note that not all the java source roots in the project (e.g. in a freeform project) belong to the web module.
public MetadataModel<WebAppMetadata> getMetadataModel()
|
org.netbeans.api.web.webmodule 1.28 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||