public class WarDeployment extends Object implements Deployment
The deployment handles some common activities if not provided by the application:
| Modifier and Type | Field and Description |
|---|---|
protected org.jboss.shrinkwrap.api.spec.WebArchive |
archive |
protected String |
contextPath |
protected Map<String,String> |
staticResources |
protected Set<String> |
structureModules |
protected boolean |
webInfLibAdded |
| Constructor and Description |
|---|
WarDeployment(Container container) |
WarDeployment(Container container,
String contextPath) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addJavaClassPathToWebInfLib() |
protected void |
ensureJBossWebXml() |
protected void |
ensureWebInfLib() |
org.jboss.shrinkwrap.api.spec.WebArchive |
getArchive() |
org.jboss.shrinkwrap.api.spec.WebArchive |
getArchive(boolean finalize) |
protected void |
setupStaticResources() |
WarDeployment |
staticContent() |
WarDeployment |
staticContent(String context) |
WarDeployment |
staticContent(String context,
String base) |
protected final org.jboss.shrinkwrap.api.spec.WebArchive archive
protected boolean webInfLibAdded
protected String contextPath
public WarDeployment(Container container) throws IOException, ModuleLoadException
IOExceptionModuleLoadExceptionpublic WarDeployment(Container container, String contextPath) throws IOException, ModuleLoadException
IOExceptionModuleLoadExceptionpublic WarDeployment staticContent()
public WarDeployment staticContent(String context)
public WarDeployment staticContent(String context, String base)
protected void ensureJBossWebXml()
protected void addJavaClassPathToWebInfLib()
protected void ensureWebInfLib()
protected void setupStaticResources()
public org.jboss.shrinkwrap.api.spec.WebArchive getArchive()
getArchive in interface Deploymentpublic org.jboss.shrinkwrap.api.spec.WebArchive getArchive(boolean finalize)
getArchive in interface DeploymentCopyright © 2015 JBoss by Red Hat. All rights reserved.