T
- public abstract class WebContainerBase<T extends Archive<T>> extends ContainerBase<T> implements WebContainer<T>
DEFAULT_MANIFEST_NAME
Modifier | Constructor and Description |
---|---|
protected |
WebContainerBase(Class<T> actualType,
Archive<?> archive) |
Modifier and Type | Method and Description |
---|---|
T |
addAsServiceProvider(Class<?> serviceInterface,
Class<?>... serviceImpls) |
T |
addAsServiceProvider(String serviceInterface,
String... serviceImpls) |
T |
addAsServiceProviderAndClasses(Class<?> serviceInterface,
Class<?>... serviceImpls) |
T |
addAsWebInfResource(Asset resource,
ArchivePath target) |
T |
addAsWebInfResource(Asset resource,
String target) |
T |
addAsWebInfResource(File resource) |
T |
addAsWebInfResource(File resource,
ArchivePath target) |
T |
addAsWebInfResource(File resource,
String target) |
T |
addAsWebInfResource(Package resourcePackage,
String resourceName) |
T |
addAsWebInfResource(Package resourcePackage,
String resourceName,
ArchivePath target) |
T |
addAsWebInfResource(Package resourcePackage,
String resourceName,
String target) |
T |
addAsWebInfResource(String resourceName) |
T |
addAsWebInfResource(String resourceName,
ArchivePath target) |
T |
addAsWebInfResource(String resourceName,
String target) |
T |
addAsWebInfResource(URL resource,
ArchivePath target) |
T |
addAsWebInfResource(URL resource,
String target) |
T |
addAsWebInfResources(Package resourcePackage,
String... resourceNames) |
T |
addAsWebResource(Asset resource,
ArchivePath target) |
T |
addAsWebResource(Asset resource,
String target) |
T |
addAsWebResource(File resource) |
T |
addAsWebResource(File resource,
ArchivePath target) |
T |
addAsWebResource(File resource,
String target) |
T |
addAsWebResource(Package resourcePackage,
String resourceName) |
T |
addAsWebResource(Package resourcePackage,
String resourceName,
ArchivePath target) |
T |
addAsWebResource(Package resourcePackage,
String resourceName,
String target) |
T |
addAsWebResource(String resourceName) |
T |
addAsWebResource(String resourceName,
ArchivePath target) |
T |
addAsWebResource(String resourceName,
String target) |
T |
addAsWebResource(URL resource,
ArchivePath target) |
T |
addAsWebResource(URL resource,
String target) |
T |
addAsWebResources(Package resourcePackage,
String... resourceNames) |
protected abstract ArchivePath |
getServiceProvidersPath()
Returns the path to web container service providers
|
protected abstract ArchivePath |
getWebInfPath()
Returns the path to WEB-INF
|
protected abstract ArchivePath |
getWebPath()
Returns the path to web resources
|
T |
setWebXML(Asset resource) |
T |
setWebXML(File resource) |
T |
setWebXML(Package resourcePackage,
String resourceName) |
T |
setWebXML(String resourceName) |
T |
setWebXML(URL resource) |
add, add, add, add, add, add, add, addAsDirectories, addAsDirectories, addAsDirectory, addAsDirectory, addAsLibraries, addAsLibraries, addAsLibraries, addAsLibraries, addAsLibraries, addAsLibrary, addAsLibrary, addAsLibrary, addAsLibrary, addAsLibrary, addAsLibrary, addAsLibrary, addAsLibrary, addAsLibrary, addAsLibrary, addAsLibrary, addAsManifestResource, addAsManifestResource, addAsManifestResource, addAsManifestResource, addAsManifestResource, addAsManifestResource, addAsManifestResource, addAsManifestResource, addAsManifestResource, addAsManifestResource, addAsManifestResource, addAsManifestResource, addAsManifestResource, addAsManifestResources, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResource, addAsResources, addClass, addClass, addClass, addClasses, addDefaultPackage, addHandlers, addManifest, addPackage, addPackage, addPackages, addPackages, addPackages, addPackages, contains, contains, covarientReturn, delete, delete, deleteClass, deleteClass, deleteClasses, deleteDefaultPackage, deletePackage, deletePackage, deletePackages, deletePackages, deletePackages, deletePackages, equals, get, get, getActualClass, getArchiveFormat, getAsType, getAsType, getAsType, getAsType, getAsType, getAsType, getClassesPath, getContent, getContent, getId, getLibraryPath, getManifestPath, getName, getResourcePath, hashCode, merge, merge, merge, merge, merge, merge, move, move, setManifest, setManifest, setManifest, setManifest, setManifest, shallowCopy, toString, toString, toString, writeTo
as, getArchive
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
as
protected abstract ArchivePath getWebPath()
protected abstract ArchivePath getWebInfPath()
protected abstract ArchivePath getServiceProvidersPath()
public T setWebXML(String resourceName) throws IllegalArgumentException
setWebXML
in interface WebContainer<T extends Archive<T>>
IllegalArgumentException
public T setWebXML(File resource) throws IllegalArgumentException
setWebXML
in interface WebContainer<T extends Archive<T>>
IllegalArgumentException
public T setWebXML(URL resource) throws IllegalArgumentException
setWebXML
in interface WebContainer<T extends Archive<T>>
IllegalArgumentException
public T setWebXML(Asset resource) throws IllegalArgumentException
setWebXML
in interface WebContainer<T extends Archive<T>>
IllegalArgumentException
public T setWebXML(Package resourcePackage, String resourceName) throws IllegalArgumentException
setWebXML
in interface WebContainer<T extends Archive<T>>
IllegalArgumentException
public T addAsWebResource(String resourceName) throws IllegalArgumentException
addAsWebResource
in interface WebContainer<T extends Archive<T>>
IllegalArgumentException
public T addAsWebResource(File resource) throws IllegalArgumentException
addAsWebResource
in interface WebContainer<T extends Archive<T>>
IllegalArgumentException
public T addAsWebResource(String resourceName, String target) throws IllegalArgumentException
addAsWebResource
in interface WebContainer<T extends Archive<T>>
IllegalArgumentException
public T addAsWebResource(File resource, String target) throws IllegalArgumentException
addAsWebResource
in interface WebContainer<T extends Archive<T>>
IllegalArgumentException
public T addAsWebResource(URL resource, String target) throws IllegalArgumentException
addAsWebResource
in interface WebContainer<T extends Archive<T>>
IllegalArgumentException
public T addAsWebResource(Asset resource, String target) throws IllegalArgumentException
addAsWebResource
in interface WebContainer<T extends Archive<T>>
IllegalArgumentException
public T addAsWebResource(String resourceName, ArchivePath target) throws IllegalArgumentException
addAsWebResource
in interface WebContainer<T extends Archive<T>>
IllegalArgumentException
public T addAsWebResource(File resource, ArchivePath target) throws IllegalArgumentException
addAsWebResource
in interface WebContainer<T extends Archive<T>>
IllegalArgumentException
WebContainer.addAsWebResource(java.io.File,
org.jboss.shrinkwrap.api.ArchivePath)
public T addAsWebResource(URL resource, ArchivePath target) throws IllegalArgumentException
addAsWebResource
in interface WebContainer<T extends Archive<T>>
IllegalArgumentException
public T addAsWebResource(Asset resource, ArchivePath target) throws IllegalArgumentException
addAsWebResource
in interface WebContainer<T extends Archive<T>>
IllegalArgumentException
WebContainer.addAsWebResource(org.jboss.shrinkwrap.api.asset.Asset,
org.jboss.shrinkwrap.api.ArchivePath)
public T addAsWebResources(Package resourcePackage, String... resourceNames) throws IllegalArgumentException
addAsWebResources
in interface WebContainer<T extends Archive<T>>
IllegalArgumentException
WebContainer.addAsWebResources(java.lang.Package, java.lang.String[])
public T addAsWebResource(Package resourcePackage, String resourceName) throws IllegalArgumentException
addAsWebResource
in interface WebContainer<T extends Archive<T>>
IllegalArgumentException
public T addAsWebResource(Package resourcePackage, String resourceName, String target) throws IllegalArgumentException
addAsWebResource
in interface WebContainer<T extends Archive<T>>
IllegalArgumentException
public T addAsWebResource(Package resourcePackage, String resourceName, ArchivePath target) throws IllegalArgumentException
addAsWebResource
in interface WebContainer<T extends Archive<T>>
IllegalArgumentException
public T addAsWebInfResource(String resourceName) throws IllegalArgumentException
addAsWebInfResource
in interface WebContainer<T extends Archive<T>>
IllegalArgumentException
WebContainer.addAsWebInfResource(java.lang.String)
public T addAsWebInfResource(File resource) throws IllegalArgumentException
addAsWebInfResource
in interface WebContainer<T extends Archive<T>>
IllegalArgumentException
WebContainer.addAsWebInfResource(java.io.File)
public T addAsWebInfResource(String resourceName, String target) throws IllegalArgumentException
addAsWebInfResource
in interface WebContainer<T extends Archive<T>>
IllegalArgumentException
WebContainer.addAsWebInfResource(java.lang.String, java.lang.String)
public T addAsWebInfResource(File resource, String target) throws IllegalArgumentException
addAsWebInfResource
in interface WebContainer<T extends Archive<T>>
IllegalArgumentException
WebContainer.addAsWebInfResource(java.io.File, java.lang.String)
public T addAsWebInfResource(URL resource, String target) throws IllegalArgumentException
addAsWebInfResource
in interface WebContainer<T extends Archive<T>>
IllegalArgumentException
WebContainer.addAsWebInfResource(java.net.URL, java.lang.String)
public T addAsWebInfResource(Asset resource, String target) throws IllegalArgumentException
addAsWebInfResource
in interface WebContainer<T extends Archive<T>>
IllegalArgumentException
WebContainer.addAsWebInfResource(org.jboss.shrinkwrap.api.asset.Asset,
java.lang.String)
public T addAsWebInfResource(String resourceName, ArchivePath target) throws IllegalArgumentException
addAsWebInfResource
in interface WebContainer<T extends Archive<T>>
IllegalArgumentException
WebContainer.addAsWebInfResource(java.lang.String,
org.jboss.shrinkwrap.api.ArchivePath)
public T addAsWebInfResource(File resource, ArchivePath target) throws IllegalArgumentException
addAsWebInfResource
in interface WebContainer<T extends Archive<T>>
IllegalArgumentException
WebContainer.addAsWebInfResource(java.io.File,
org.jboss.shrinkwrap.api.ArchivePath)
public T addAsWebInfResource(URL resource, ArchivePath target) throws IllegalArgumentException
addAsWebInfResource
in interface WebContainer<T extends Archive<T>>
IllegalArgumentException
WebContainer.addAsWebInfResource(java.net.URL,
org.jboss.shrinkwrap.api.ArchivePath)
public T addAsWebInfResource(Asset resource, ArchivePath target) throws IllegalArgumentException
addAsWebInfResource
in interface WebContainer<T extends Archive<T>>
IllegalArgumentException
WebContainer.addAsWebInfResource(org.jboss.shrinkwrap.api.asset.Asset,
org.jboss.shrinkwrap.api.ArchivePath)
public T addAsWebInfResources(Package resourcePackage, String... resourceNames) throws IllegalArgumentException
addAsWebInfResources
in interface WebContainer<T extends Archive<T>>
IllegalArgumentException
WebContainer.addAsWebInfResources(java.lang.Package, java.lang.String[])
public T addAsWebInfResource(Package resourcePackage, String resourceName) throws IllegalArgumentException
addAsWebInfResource
in interface WebContainer<T extends Archive<T>>
IllegalArgumentException
WebContainer.addAsWebInfResource(java.lang.Package, java.lang.String)
public T addAsWebInfResource(Package resourcePackage, String resourceName, String target) throws IllegalArgumentException
addAsWebInfResource
in interface WebContainer<T extends Archive<T>>
IllegalArgumentException
WebContainer.addAsWebInfResource(java.lang.Package, java.lang.String,
java.lang.String)
public T addAsWebInfResource(Package resourcePackage, String resourceName, ArchivePath target) throws IllegalArgumentException
addAsWebInfResource
in interface WebContainer<T extends Archive<T>>
IllegalArgumentException
WebContainer.addAsWebInfResource(java.lang.Package, java.lang.String,
org.jboss.shrinkwrap.api.ArchivePath)
public T addAsServiceProvider(Class<?> serviceInterface, Class<?>... serviceImpls) throws IllegalArgumentException
addAsServiceProvider
in interface ManifestContainer<T extends Archive<T>>
addAsServiceProvider
in class ContainerBase<T extends Archive<T>>
IllegalArgumentException
public T addAsServiceProvider(String serviceInterface, String... serviceImpls) throws IllegalArgumentException
addAsServiceProvider
in interface ManifestContainer<T extends Archive<T>>
addAsServiceProvider
in class ContainerBase<T extends Archive<T>>
IllegalArgumentException
public T addAsServiceProviderAndClasses(Class<?> serviceInterface, Class<?>... serviceImpls) throws IllegalArgumentException
addAsServiceProviderAndClasses
in interface ServiceProviderContainer<T extends Archive<T>>
addAsServiceProviderAndClasses
in class ContainerBase<T extends Archive<T>>
IllegalArgumentException
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.