T - public abstract class WebContainerBase<T extends Archive<T>> extends ContainerBase<T> implements WebContainer<T>
DEFAULT_MANIFEST_NAME| Modifier | Constructor and Description |
|---|---|
protected |
WebContainerBase(java.lang.Class<T> actualType,
Archive<?> archive) |
| Modifier and Type | Method and Description |
|---|---|
T |
addAsServiceProvider(java.lang.Class<?> serviceInterface,
java.lang.Class<?>... serviceImpls)
Adds a META-INF/services/ServiceInterfaceName
Asset representing this service. |
T |
addAsServiceProvider(java.lang.String serviceInterface,
java.lang.String... serviceImpls)
Adds a META-INF/services/ServiceInterfaceName
Asset representing this service. |
T |
addAsServiceProviderAndClasses(java.lang.Class<?> serviceInterface,
java.lang.Class<?>... serviceImpls)
Adds a META-INF/services/ServiceInterfaceName
Asset and the classes related to the service to the
archive. |
T |
addAsWebInfResource(Asset resource,
ArchivePath target)
Adds the
Asset as a WEB-INF resource to the container, returning the container itself. |
T |
addAsWebInfResource(Asset resource,
java.lang.String target)
Adds the
Asset as a WEB-INF resource to the container, returning the container itself. |
T |
addAsWebInfResource(java.io.File resource)
Adds the
File as a WEB-INF resource to the container, returning the container itself. |
T |
addAsWebInfResource(java.io.File resource,
ArchivePath target)
Adds the
File as a WEB-INF resource to the container, returning the container itself. |
T |
addAsWebInfResource(java.io.File resource,
java.lang.String target)
Adds the
File as a WEB-INF resource to the container, returning the container itself. |
T |
addAsWebInfResource(java.lang.Package resourcePackage,
java.lang.String resourceName)
Adds the resource as a WEB-INF resource to the container, returning the container itself.
|
T |
addAsWebInfResource(java.lang.Package resourcePackage,
java.lang.String resourceName,
ArchivePath target)
Adds the resource as a WEB-INF resource to a specific path inside the container, returning the container itself.
|
T |
addAsWebInfResource(java.lang.Package resourcePackage,
java.lang.String resourceName,
java.lang.String target)
Adds the resource as a WEB-INF resource to a specific path inside the container, returning the container itself.
|
T |
addAsWebInfResource(java.lang.String resourceName)
Adds the resource as a WEB-INF resource to the container, returning the container itself.
|
T |
addAsWebInfResource(java.lang.String resourceName,
ArchivePath target)
Adds the resource as a WEB-INF resource to the container, returning the container itself.
|
T |
addAsWebInfResource(java.lang.String resourceName,
java.lang.String target)
Adds the resource as a WEB-INF resource to the container, returning the container itself.
|
T |
addAsWebInfResource(java.net.URL resource,
ArchivePath target)
Adds the
URL as a WEB-INF resource to the container, returning the container itself. |
T |
addAsWebInfResource(java.net.URL resource,
java.lang.String target)
Adds the
URL as a WEB-INF resource to the container, returning the container itself. |
T |
addAsWebInfResources(java.lang.Package resourcePackage,
java.lang.String... resourceNames)
Adds the resources inside the package as multiple WEB-INF resources to the container, returning the container
itself.
|
T |
addAsWebResource(Asset resource,
ArchivePath target)
Adds the
Asset as a Web resource to the container, returning the container itself. |
T |
addAsWebResource(Asset resource,
java.lang.String target)
Adds the
Asset as a Web resource to the container, returning the container itself. |
T |
addAsWebResource(java.io.File resource)
Adds the
File as a Web resource to the container, returning the container itself. |
T |
addAsWebResource(java.io.File resource,
ArchivePath target)
Adds the
File as a Web resource to the container, returning the container itself. |
T |
addAsWebResource(java.io.File resource,
java.lang.String target)
Adds the
File as a Web resource to the container, returning the container itself. |
T |
addAsWebResource(java.lang.Package resourcePackage,
java.lang.String resourceName)
Adds the resource as a resource to the container, returning the container itself.
|
T |
addAsWebResource(java.lang.Package resourcePackage,
java.lang.String resourceName,
ArchivePath target)
Adds the resource as a resource to a specific path inside the container, returning the container itself.
|
T |
addAsWebResource(java.lang.Package resourcePackage,
java.lang.String resourceName,
java.lang.String target)
Adds the resource as a resource to a specific path inside the container, returning the container itself.
|
T |
addAsWebResource(java.lang.String resourceName)
Adds the resource as a Web resource to the container, returning the container itself.
|
T |
addAsWebResource(java.lang.String resourceName,
ArchivePath target)
Adds the resource as a Web resource to the container, returning the container itself.
|
T |
addAsWebResource(java.lang.String resourceName,
java.lang.String target)
Adds the resource as a Web resource to the container, returning the container itself.
|
T |
addAsWebResource(java.net.URL resource,
ArchivePath target)
Adds the
URL as a Web resource to the container, returning the container itself. |
T |
addAsWebResource(java.net.URL resource,
java.lang.String target)
Adds the
URL as a Web resource to the container, returning the container itself. |
T |
addAsWebResources(java.lang.Package resourcePackage,
java.lang.String... resourceNames)
Adds the resources inside the package as multiple resources to the container, returning the container itself.
|
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)
Adds the
Asset as web.xml to the container, returning the container itself. |
T |
setWebXML(java.io.File resource)
Adds the
File as web.xml to the container, returning the container itself. |
T |
setWebXML(java.lang.Package resourcePackage,
java.lang.String resourceName)
Adds the resource inside the package as web.xml to the container, returning the container itself.
|
T |
setWebXML(java.lang.String resourceName)
Adds the resource as web.xml to the container, returning the container itself.
|
T |
setWebXML(java.net.URL resource)
Adds the
URL as web.xml to the container, returning the container itself. |
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, filter, 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, shallowCopy, toString, toString, toString, writeToas, getArchiveclone, finalize, getClass, notify, notifyAll, wait, wait, waitasprotected abstract ArchivePath getWebPath()
protected abstract ArchivePath getWebInfPath()
protected abstract ArchivePath getServiceProvidersPath()
public T setWebXML(java.lang.String resourceName) throws java.lang.IllegalArgumentException
WebContainerClassLoader used to obtain the resource is up to the implementation.setWebXML in interface WebContainer<T extends Archive<T>>resourceName - resource to addjava.lang.IllegalArgumentException - if resourceName is nullWebContainer.setWebXML(Asset)public T setWebXML(java.io.File resource) throws java.lang.IllegalArgumentException
WebContainerFile as web.xml to the container, returning the container itself.setWebXML in interface WebContainer<T extends Archive<T>>resource - File resource to addjava.lang.IllegalArgumentException - if resource is nullWebContainer.setWebXML(Asset)public T setWebXML(java.net.URL resource) throws java.lang.IllegalArgumentException
WebContainerURL as web.xml to the container, returning the container itself.setWebXML in interface WebContainer<T extends Archive<T>>resource - URL resource to addjava.lang.IllegalArgumentException - if resource is nullWebContainer.setWebXML(Asset)public T setWebXML(Asset resource) throws java.lang.IllegalArgumentException
WebContainerAsset as web.xml to the container, returning the container itself.public T setWebXML(java.lang.Package resourcePackage, java.lang.String resourceName) throws java.lang.IllegalArgumentException
WebContainerClassLoader used to obtain the resource is up to the implementation.setWebXML in interface WebContainer<T extends Archive<T>>resourcePackage - The package of the resourcesresourceName - The name of the resources inside resourcePackagejava.lang.IllegalArgumentException - if resourcePackage is nullpublic T addAsWebResource(java.lang.String resourceName) throws java.lang.IllegalArgumentException
WebContainerClassLoader used to obtain the resource is up to the implementation.addAsWebResource in interface WebContainer<T extends Archive<T>>resourceName - resource to addjava.lang.IllegalArgumentException - if resourceName is nullWebContainer.addAsWebResource(Asset, ArchivePath)public T addAsWebResource(java.io.File resource) throws java.lang.IllegalArgumentException
WebContainerFile as a Web resource to the container, returning the container itself. File will be placed into the Container Web path under File.getName().addAsWebResource in interface WebContainer<T extends Archive<T>>resource - resource to addjava.lang.IllegalArgumentException - if File resource is nullWebContainer.addAsWebResource(Asset, ArchivePath)public T addAsWebResource(java.lang.String resourceName, java.lang.String target) throws java.lang.IllegalArgumentException
WebContainerClassLoader used to obtain the resource is up to the implementation.addAsWebResource in interface WebContainer<T extends Archive<T>>resourceName - resource to addtarget - The target path within the archive in which to add the resource, relative to the Archives web
path.java.lang.IllegalArgumentException - if resourceName is nullWebContainer.addAsWebResource(Asset, ArchivePath)public T addAsWebResource(java.io.File resource, java.lang.String target) throws java.lang.IllegalArgumentException
WebContainerFile as a Web resource to the container, returning the container itself.addAsWebResource in interface WebContainer<T extends Archive<T>>resource - File resource to addtarget - The target path within the archive in which to add the resource, relative to the Archives web
path.java.lang.IllegalArgumentException - if resource is nullWebContainer.addAsWebResource(Asset, ArchivePath)public T addAsWebResource(java.net.URL resource, java.lang.String target) throws java.lang.IllegalArgumentException
WebContainerURL as a Web resource to the container, returning the container itself.addAsWebResource in interface WebContainer<T extends Archive<T>>resource - URL resource to addtarget - The target path within the archive in which to add the resource, relative to the Archives web
path.java.lang.IllegalArgumentException - if resource is nullWebContainer.addAsWebResource(Asset, ArchivePath)public T addAsWebResource(Asset resource, java.lang.String target) throws java.lang.IllegalArgumentException
WebContainerAsset as a Web resource to the container, returning the container itself.addAsWebResource in interface WebContainer<T extends Archive<T>>resource - Asset resource to addtarget - The target path within the archive in which to add the resource, relative to the Archives web
path.java.lang.IllegalArgumentException - if resource is nullWebContainer.addAsWebResource(Asset, ArchivePath)public T addAsWebResource(java.lang.String resourceName, ArchivePath target) throws java.lang.IllegalArgumentException
WebContainerClassLoader used to obtain the resource is up to the implementation.addAsWebResource in interface WebContainer<T extends Archive<T>>resourceName - resource to addtarget - The target path within the archive in which to add the resource, relative to the Archives web
path.java.lang.IllegalArgumentException - if resourceName is nullWebContainer.addAsWebResource(Asset, ArchivePath)public T addAsWebResource(java.io.File resource, ArchivePath target) throws java.lang.IllegalArgumentException
File as a Web resource to the container, returning the container itself.addAsWebResource in interface WebContainer<T extends Archive<T>>resource - File resource to addtarget - The target path within the archive in which to add the resource, relative to the Archives web
path.java.lang.IllegalArgumentException - if resource is nullWebContainer.addAsWebResource(java.io.File,
org.jboss.shrinkwrap.api.ArchivePath)public T addAsWebResource(java.net.URL resource, ArchivePath target) throws java.lang.IllegalArgumentException
WebContainerURL as a Web resource to the container, returning the container itself.addAsWebResource in interface WebContainer<T extends Archive<T>>resource - URL resource to addtarget - The target path within the archive in which to add the resource, relative to the Archives web
path.java.lang.IllegalArgumentException - if resource is nullWebContainer.addAsWebResource(Asset, ArchivePath)public T addAsWebResource(Asset resource, ArchivePath target) throws java.lang.IllegalArgumentException
Asset as a Web resource to the container, returning the container itself.addAsWebResource in interface WebContainer<T extends Archive<T>>resource - Asset resource to addtarget - The target path within the archive in which to add the resource, relative to the Archives web
path.java.lang.IllegalArgumentException - if resource is nullWebContainer.addAsWebResource(org.jboss.shrinkwrap.api.asset.Asset,
org.jboss.shrinkwrap.api.ArchivePath)public T addAsWebResources(java.lang.Package resourcePackage, java.lang.String... resourceNames) throws java.lang.IllegalArgumentException
ClassLoader used to obtain the resource is up to the implementation.addAsWebResources in interface WebContainer<T extends Archive<T>>resourcePackage - The package of the resourcesresourceNames - The names of the resources inside resoucePackagejava.lang.IllegalArgumentException - if resourcePackage is nullWebContainer.addAsWebResources(java.lang.Package, java.lang.String[])public T addAsWebResource(java.lang.Package resourcePackage, java.lang.String resourceName) throws java.lang.IllegalArgumentException
WebContainerClassLoader used to obtain the resource is up to the implementation.addAsWebResource in interface WebContainer<T extends Archive<T>>resourcePackage - The package of the resourceresourceName - The name of the resource inside resoucePackagejava.lang.IllegalArgumentException - if resourcePackage is nullpublic T addAsWebResource(java.lang.Package resourcePackage, java.lang.String resourceName, java.lang.String target) throws java.lang.IllegalArgumentException
WebContainerClassLoader used to obtain the resource is up to the implementation.addAsWebResource in interface WebContainer<T extends Archive<T>>resourcePackage - The package of the resourceresourceName - The name of the resource inside resoucePackagetarget - The target location inside the containerjava.lang.IllegalArgumentException - if resourcePackage is nullpublic T addAsWebResource(java.lang.Package resourcePackage, java.lang.String resourceName, ArchivePath target) throws java.lang.IllegalArgumentException
WebContainerClassLoader used to obtain the resource is up to the implementation.addAsWebResource in interface WebContainer<T extends Archive<T>>resourcePackage - The package of the resourceresourceName - The name of the resource inside resoucePackagetarget - The target location inside the containerjava.lang.IllegalArgumentException - if resourcePackage is nullpublic T addAsWebInfResource(java.lang.String resourceName) throws java.lang.IllegalArgumentException
ClassLoader used to obtain the resource is up to the implementation.addAsWebInfResource in interface WebContainer<T extends Archive<T>>resourceName - resource to addArchivejava.lang.IllegalArgumentException - if resourceName is not specifiedWebContainer.addAsWebInfResource(java.lang.String)public T addAsWebInfResource(java.io.File resource) throws java.lang.IllegalArgumentException
File as a WEB-INF resource to the container, returning the container itself. File will be placed into the Container WEB-INF path under File.getName().addAsWebInfResource in interface WebContainer<T extends Archive<T>>resource - Resource to addArchivejava.lang.IllegalArgumentException - if File resource is nullWebContainer.addAsWebInfResource(java.io.File)public T addAsWebInfResource(java.lang.String resourceName, java.lang.String target) throws java.lang.IllegalArgumentException
ClassLoader used to obtain the resource is up to the implementation.addAsWebInfResource in interface WebContainer<T extends Archive<T>>resourceName - resource to addtarget - The target path within the archive in which to add the resource, relative to the Archives
WEB-INF path.Archivejava.lang.IllegalArgumentException - if resourceName or target is not specifiedWebContainer.addAsWebInfResource(java.lang.String, java.lang.String)public T addAsWebInfResource(java.io.File resource, java.lang.String target) throws java.lang.IllegalArgumentException
File as a WEB-INF resource to the container, returning the container itself.addAsWebInfResource in interface WebContainer<T extends Archive<T>>resource - File resource to addtarget - The target path within the archive in which to add the resource, relative to the Archives
WEB-INF path.Archivejava.lang.IllegalArgumentException - If the resource or target is not specifiedWebContainer.addAsWebInfResource(java.io.File, java.lang.String)public T addAsWebInfResource(java.net.URL resource, java.lang.String target) throws java.lang.IllegalArgumentException
URL as a WEB-INF resource to the container, returning the container itself.addAsWebInfResource in interface WebContainer<T extends Archive<T>>resource - URL resource to addtarget - The target path within the archive in which to add the resource, relative to the Archives
WEB-INF path.Archivejava.lang.IllegalArgumentException - If the resource or target is not specifiedWebContainer.addAsWebInfResource(java.net.URL, java.lang.String)public T addAsWebInfResource(Asset resource, java.lang.String target) throws java.lang.IllegalArgumentException
Asset as a WEB-INF resource to the container, returning the container itself.addAsWebInfResource in interface WebContainer<T extends Archive<T>>resource - Asset resource to addtarget - The target path within the archive in which to add the resource, relative to the Archives
WEB-INF path.Archivejava.lang.IllegalArgumentException - If the resource or target is not specifiedWebContainer.addAsWebInfResource(org.jboss.shrinkwrap.api.asset.Asset,
java.lang.String)public T addAsWebInfResource(java.lang.String resourceName, ArchivePath target) throws java.lang.IllegalArgumentException
ClassLoader used to obtain the resource is up to the implementation.addAsWebInfResource in interface WebContainer<T extends Archive<T>>resourceName - resource to addtarget - The target path within the archive in which to add the resource, relative to the Archives
WEB-INF path.Archivejava.lang.IllegalArgumentException - If the resource or target is not specifiedWebContainer.addAsWebInfResource(java.lang.String,
org.jboss.shrinkwrap.api.ArchivePath)public T addAsWebInfResource(java.io.File resource, ArchivePath target) throws java.lang.IllegalArgumentException
File as a WEB-INF resource to the container, returning the container itself.addAsWebInfResource in interface WebContainer<T extends Archive<T>>resource - File resource to addtarget - The target path within the archive in which to add the resource, relative to the Archives
WEB-INF path.Archivejava.lang.IllegalArgumentException - If the resource or target is not specifiedWebContainer.addAsWebInfResource(java.io.File,
org.jboss.shrinkwrap.api.ArchivePath)public T addAsWebInfResource(java.net.URL resource, ArchivePath target) throws java.lang.IllegalArgumentException
URL as a WEB-INF resource to the container, returning the container itself.addAsWebInfResource in interface WebContainer<T extends Archive<T>>resource - URL resource to addtarget - The target path within the archive in which to add the resource, relative to the Archives
WEB-INF path.Archivejava.lang.IllegalArgumentException - If the resource or target is not specifiedWebContainer.addAsWebInfResource(java.net.URL,
org.jboss.shrinkwrap.api.ArchivePath)public T addAsWebInfResource(Asset resource, ArchivePath target) throws java.lang.IllegalArgumentException
Asset as a WEB-INF resource to the container, returning the container itself.addAsWebInfResource in interface WebContainer<T extends Archive<T>>resource - Asset resource to addtarget - The target path within the archive in which to add the resource, relative to the Archives
WEB-INF path.Archivejava.lang.IllegalArgumentException - If the resource or target is not specifiedWebContainer.addAsWebInfResource(org.jboss.shrinkwrap.api.asset.Asset,
org.jboss.shrinkwrap.api.ArchivePath)public T addAsWebInfResources(java.lang.Package resourcePackage, java.lang.String... resourceNames) throws java.lang.IllegalArgumentException
ClassLoader used to obtain the resource is up to the implementation.addAsWebInfResources in interface WebContainer<T extends Archive<T>>resourcePackage - The package of the resourcesresourceNames - The names of the resources inside resourcePackageArchivejava.lang.IllegalArgumentException - If resourcePackage is null, or if no resourceNames are specified or containing nullWebContainer.addAsWebInfResources(java.lang.Package, java.lang.String[])public T addAsWebInfResource(java.lang.Package resourcePackage, java.lang.String resourceName) throws java.lang.IllegalArgumentException
ClassLoader used to obtain the resource is up to the implementation.addAsWebInfResource in interface WebContainer<T extends Archive<T>>resourcePackage - The package of the resourceresourceName - The name of the resource inside resourcePackageArchivejava.lang.IllegalArgumentException - If the package or resource name is not specifiedWebContainer.addAsWebInfResource(java.lang.Package, java.lang.String)public T addAsWebInfResource(java.lang.Package resourcePackage, java.lang.String resourceName, java.lang.String target) throws java.lang.IllegalArgumentException
ClassLoader used to obtain the resource is up to the implementation.addAsWebInfResource in interface WebContainer<T extends Archive<T>>resourcePackage - The package of the resourceresourceName - The name of the resource inside resoucePackagetarget - The target location inside the containerArchivejava.lang.IllegalArgumentException - If the package, resource name, or target is not specifiedWebContainer.addAsWebInfResource(java.lang.Package, java.lang.String,
java.lang.String)public T addAsWebInfResource(java.lang.Package resourcePackage, java.lang.String resourceName, ArchivePath target) throws java.lang.IllegalArgumentException
ClassLoader used to obtain the resource is up to the implementation.addAsWebInfResource in interface WebContainer<T extends Archive<T>>resourcePackage - The package of the resourceresourceName - The name of the resource inside resoucePackagetarget - The target location inside the containerArchivejava.lang.IllegalArgumentException - If the package, resource name, or target is not specifiedWebContainer.addAsWebInfResource(java.lang.Package, java.lang.String,
org.jboss.shrinkwrap.api.ArchivePath)public T addAsServiceProvider(java.lang.Class<?> serviceInterface, java.lang.Class<?>... serviceImpls) throws java.lang.IllegalArgumentException
ManifestContainerAsset representing this service.
Warning: this method does not add the specified classes to the archive.addAsServiceProvider in interface ManifestContainer<T extends Archive<T>>addAsServiceProvider in class ContainerBase<T extends Archive<T>>serviceInterface - The Service Interface classserviceImpls - The Service Interface Implementationsjava.lang.IllegalArgumentException - if serviceInterface is nullpublic T addAsServiceProvider(java.lang.String serviceInterface, java.lang.String... serviceImpls) throws java.lang.IllegalArgumentException
ManifestContainerAsset representing this service.addAsServiceProvider in interface ManifestContainer<T extends Archive<T>>addAsServiceProvider in class ContainerBase<T extends Archive<T>>serviceInterface - The Service Interface class nameserviceImpls - The Service Interface Implementations class namesjava.lang.IllegalArgumentException - if serviceInterface is nullManifestContainer.addAsServiceProvider(Class, Class...)public T addAsServiceProviderAndClasses(java.lang.Class<?> serviceInterface, java.lang.Class<?>... serviceImpls) throws java.lang.IllegalArgumentException
ServiceProviderContainerAsset and the classes related to the service to the
archive.addAsServiceProviderAndClasses in interface ServiceProviderContainer<T extends Archive<T>>addAsServiceProviderAndClasses in class ContainerBase<T extends Archive<T>>serviceInterface - The Service Interface classserviceImpls - The Service Interface Implementationsjava.lang.IllegalArgumentException - if serviceInterface is null