org.netbeans.api.web.webmodule 1.9

org.netbeans.modules.web.spi.webmodule
Interface WebModuleImplementation


public interface WebModuleImplementation

SPI for WebModule.

See Also:
WebModuleFactory

Method Summary
 String getContextPath()
          Returns the context path of the web module.
 org.openide.filesystems.FileObject getDeploymentDescriptor()
          Returns the deployment descriptor (web.xml file) of the web module.
 org.openide.filesystems.FileObject getDocumentBase()
          Returns the folder that contains sources of the static documents for the web module (html, JSPs, etc.).
 String getJ2eePlatformVersion()
          Returns the J2EE platform version of this module.
 org.openide.filesystems.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.
 org.netbeans.modules.j2ee.metadata.model.api.MetadataModel<org.netbeans.modules.j2ee.dd.api.web.WebAppMetadata> getMetadataModel()
          Returns a model describing the metadata of this web module (servlets, resources, etc.).
 org.openide.filesystems.FileObject getWebInf()
          WEB-INF folder for the web module.
 

Method Detail

getDocumentBase

org.openide.filesystems.FileObject getDocumentBase()
Returns the folder that contains sources of the static documents for the web module (html, JSPs, etc.).

Returns:
the static documents folder; can be null.

getContextPath

String getContextPath()
Returns the context path of the web module.

Returns:
the context path; can be null.

getJ2eePlatformVersion

String getJ2eePlatformVersion()
Returns the J2EE platform version of this module. The returned value is one of the constants WebModule.J2EE_13_LEVEL, WebModule.J2EE_14_LEVEL or WebModule.JAVA_EE_5_LEVEL.

Returns:
J2EE platform version; never null.

getWebInf

org.openide.filesystems.FileObject getWebInf()
WEB-INF folder for the web module.
The WEB-INF folder would typically be a child of the folder returned by getDocumentBase() but does not need to be.

Returns:
the FileObject; might be null

getDeploymentDescriptor

org.openide.filesystems.FileObject getDeploymentDescriptor()
Returns the deployment descriptor (web.xml file) of the web module.
The web.xml file would typically be a child of the folder returned by getWebInf() but does not need to be.

Returns:
the web.xml file; can be null.

getJavaSources

@Deprecated
org.openide.filesystems.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.

Returns the Java source roots associated with the web module.

Note that not all the java source roots in the project (e.g. in a freeform project) belong to the web module.

Returns:
this web module's Java source roots; never null.

getMetadataModel

org.netbeans.modules.j2ee.metadata.model.api.MetadataModel<org.netbeans.modules.j2ee.dd.api.web.WebAppMetadata> getMetadataModel()
Returns a model describing the metadata of this web module (servlets, resources, etc.).

Returns:
this web module's metadata model; never null.

org.netbeans.api.web.webmodule 1.9

Built on September 25 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.