public interface ServletFacet extends Facet
Project supports features from the Servlet specification.| Modifier and Type | Method and Description |
|---|---|
org.jboss.shrinkwrap.descriptor.api.spec.servlet.web.WebAppDescriptor |
getConfig()
Parse and return this
Project's web.xml file as a WebAppDescriptor. |
FileResource<?> |
getConfigFile()
Return a reference to this
Project's web.xml file. |
List<Resource<?>> |
getResources()
List all files in this
Project's WebContent directory, recursively. |
List<Resource<?>> |
getResources(ResourceFilter filter)
List all files in this
Project's WebContent directory, recursively, only if they match the given
ResourceFilter. |
void |
saveConfig(org.jboss.shrinkwrap.descriptor.api.spec.servlet.web.WebAppDescriptor descriptor)
Save the given
WebAppDescriptor as this Project's web.xml file. |
getProject, install, isInstalled, setProject, uninstallorg.jboss.shrinkwrap.descriptor.api.spec.servlet.web.WebAppDescriptor getConfig()
Project's web.xml file as a WebAppDescriptor. If no web.xml exists
(particularly in the case of Servlet 3.0 projects), return a virtual web-descriptor instance. This virtual
instance may then be modified in memory, then saved using saveConfig(WebAppDescriptor), at which point a
physical web.xml file will be created on disk.void saveConfig(org.jboss.shrinkwrap.descriptor.api.spec.servlet.web.WebAppDescriptor descriptor)
WebAppDescriptor as this Project's web.xml file. If no web.xml file exists, a new
web.xml file will be created.FileResource<?> getConfigFile()
Project's web.xml file.List<Resource<?>> getResources()
Project's WebContent directory, recursively.List<Resource<?>> getResources(ResourceFilter filter)
Project's WebContent directory, recursively, only if they match the given
ResourceFilter.Copyright © 2013 JBoss by Red Hat. All Rights Reserved.