T
- public interface WebContainer<T extends Archive<T>>
Modifier and Type | Method and Description |
---|---|
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.
|
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. |
T setWebXML(java.lang.String resourceName) throws java.lang.IllegalArgumentException
ClassLoader
used to obtain the resource is up to the implementation.resourceName
- resource to addjava.lang.IllegalArgumentException
- if resourceName is nullsetWebXML(Asset)
T setWebXML(java.io.File resource) throws java.lang.IllegalArgumentException
File
as web.xml to the container, returning the container itself.resource
- File
resource to addjava.lang.IllegalArgumentException
- if resource is nullsetWebXML(Asset)
T setWebXML(java.net.URL resource) throws java.lang.IllegalArgumentException
URL
as web.xml to the container, returning the container itself.resource
- URL
resource to addjava.lang.IllegalArgumentException
- if resource is nullsetWebXML(Asset)
T setWebXML(Asset resource) throws java.lang.IllegalArgumentException
Asset
as web.xml to the container, returning the container itself.resource
- Asset
resource to addjava.lang.IllegalArgumentException
- if resource is nulladdAsWebResource(Asset, ArchivePath)
T setWebXML(java.lang.Package resourcePackage, java.lang.String resourceName) throws java.lang.IllegalArgumentException
ClassLoader
used to obtain the resource is up to the implementation.resourcePackage
- The package of the resourcesresourceName
- The name of the resources inside resourcePackagejava.lang.IllegalArgumentException
- if resourcePackage is nulljava.lang.IllegalArgumentException
- if resourceName is nullT addAsWebResource(java.lang.String resourceName) throws java.lang.IllegalArgumentException
ClassLoader
used to obtain the resource is up to the implementation.resourceName
- resource to addjava.lang.IllegalArgumentException
- if resourceName is nulljava.lang.IllegalArgumentException
- if target is nulladdAsWebResource(Asset, ArchivePath)
T addAsWebResource(java.io.File resource) throws java.lang.IllegalArgumentException
File
as a Web resource to the container, returning the container itself. File
will be placed into the Container Web path under File.getName()
.resource
- resource to addjava.lang.IllegalArgumentException
- if File
resource is nulljava.lang.IllegalArgumentException
- if target is nulladdAsWebResource(Asset, ArchivePath)
T addAsWebResource(java.lang.String resourceName, java.lang.String target) throws java.lang.IllegalArgumentException
ClassLoader
used to obtain the resource is up to the implementation.resourceName
- resource to addtarget
- The target path within the archive in which to add the resource, relative to the Archive
s web
path.java.lang.IllegalArgumentException
- if resourceName is nulljava.lang.IllegalArgumentException
- if target is nulladdAsWebResource(Asset, ArchivePath)
T addAsWebResource(java.io.File resource, java.lang.String target) throws java.lang.IllegalArgumentException
File
as a Web resource to the container, returning the container itself.resource
- File
resource to addtarget
- The target path within the archive in which to add the resource, relative to the Archive
s web
path.java.lang.IllegalArgumentException
- if resource is nulljava.lang.IllegalArgumentException
- if target is nulladdAsWebResource(Asset, ArchivePath)
T addAsWebResource(java.net.URL resource, java.lang.String target) throws java.lang.IllegalArgumentException
URL
as a Web resource to the container, returning the container itself.resource
- URL
resource to addtarget
- The target path within the archive in which to add the resource, relative to the Archive
s web
path.java.lang.IllegalArgumentException
- if resource is nulljava.lang.IllegalArgumentException
- if target is nulladdAsWebResource(Asset, ArchivePath)
T addAsWebResource(Asset resource, java.lang.String target) throws java.lang.IllegalArgumentException
Asset
as a Web resource to the container, returning the container itself.resource
- Asset
resource to addtarget
- The target path within the archive in which to add the resource, relative to the Archive
s web
path.java.lang.IllegalArgumentException
- if resource is nulljava.lang.IllegalArgumentException
- if target is nulladdAsWebResource(Asset, ArchivePath)
T addAsWebResource(java.lang.String resourceName, ArchivePath target) throws java.lang.IllegalArgumentException
ClassLoader
used to obtain the resource is up to the implementation.resourceName
- resource to addtarget
- The target path within the archive in which to add the resource, relative to the Archive
s web
path.java.lang.IllegalArgumentException
- if resourceName is nulljava.lang.IllegalArgumentException
- if target is nulladdAsWebResource(Asset, ArchivePath)
T addAsWebResource(java.io.File resource, ArchivePath target) throws java.lang.IllegalArgumentException
File
as a Web resource to the container, returning the container itself.resource
- File
resource to addtarget
- The target path within the archive in which to add the resource, relative to the Archive
s web
path.java.lang.IllegalArgumentException
- if resource is nulljava.lang.IllegalArgumentException
- if target is nulladdAsWebResource(Asset, ArchivePath)
T addAsWebResource(java.net.URL resource, ArchivePath target) throws java.lang.IllegalArgumentException
URL
as a Web resource to the container, returning the container itself.resource
- URL
resource to addtarget
- The target path within the archive in which to add the resource, relative to the Archive
s web
path.java.lang.IllegalArgumentException
- if resource is nulljava.lang.IllegalArgumentException
- if target is nulladdAsWebResource(Asset, ArchivePath)
T addAsWebResource(Asset resource, ArchivePath target) throws java.lang.IllegalArgumentException
Asset
as a Web resource to the container, returning the container itself.resource
- Asset
resource to addtarget
- The target path within the archive in which to add the resource, relative to the Archive
s web
path.java.lang.IllegalArgumentException
- if resource is nulljava.lang.IllegalArgumentException
- if target is nullT addAsWebResources(java.lang.Package resourcePackage, java.lang.String... resourceNames) throws java.lang.IllegalArgumentException
ClassLoader
used to obtain the resource is up to the implementation.resourcePackage
- The package of the resourcesresourceNames
- The names of the resources inside resoucePackagejava.lang.IllegalArgumentException
- if resourcePackage is nulljava.lang.IllegalArgumentException
- if no resourceNames are specified or containing nullT addAsWebResource(java.lang.Package resourcePackage, java.lang.String resourceName) throws java.lang.IllegalArgumentException
ClassLoader
used to obtain the resource is up to the implementation.resourcePackage
- The package of the resourceresourceName
- The name of the resource inside resoucePackagejava.lang.IllegalArgumentException
- if resourcePackage is nulljava.lang.IllegalArgumentException
- if resourceName is nullT addAsWebResource(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.resourcePackage
- The package of the resourceresourceName
- The name of the resource inside resoucePackagetarget
- The target location inside the containerjava.lang.IllegalArgumentException
- if resourcePackage is nulljava.lang.IllegalArgumentException
- if resourceName is nulljava.lang.IllegalArgumentException
- if target is nullT addAsWebResource(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.resourcePackage
- The package of the resourceresourceName
- The name of the resource inside resoucePackagetarget
- The target location inside the containerjava.lang.IllegalArgumentException
- if resourcePackage is nulljava.lang.IllegalArgumentException
- if resourceName is nulljava.lang.IllegalArgumentException
- if target is nullT addAsWebInfResource(java.lang.String resourceName) throws java.lang.IllegalArgumentException
ClassLoader
used to obtain the resource is up to the implementation.resourceName
- resource to addArchive
java.lang.IllegalArgumentException
- if resourceName is not specifiedT 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()
.resource
- Resource to addArchive
java.lang.IllegalArgumentException
- if File
resource is nullT addAsWebInfResource(java.lang.String resourceName, java.lang.String target) throws java.lang.IllegalArgumentException
ClassLoader
used to obtain the resource is up to the implementation.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.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.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.T addAsWebInfResource(java.lang.String resourceName, ArchivePath target) throws java.lang.IllegalArgumentException
ClassLoader
used to obtain the resource is up to the implementation.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.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.T addAsWebInfResource(Asset resource, ArchivePath target) throws java.lang.IllegalArgumentException
Asset
as a WEB-INF resource to the container, returning the container itself.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.resourcePackage
- The package of the resourcesresourceNames
- The names of the resources inside resourcePackageArchive
java.lang.IllegalArgumentException
- If resourcePackage is null, or if no resourceNames are specified or containing nullT addAsWebInfResource(java.lang.Package resourcePackage, java.lang.String resourceName) throws java.lang.IllegalArgumentException
ClassLoader
used to obtain the resource is up to the implementation.resourcePackage
- The package of the resourceresourceName
- The name of the resource inside resourcePackageArchive
java.lang.IllegalArgumentException
- If the package or resource name is not specifiedT 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.resourcePackage
- The package of the resourceresourceName
- The name of the resource inside resoucePackagetarget
- The target location inside the containerArchive
java.lang.IllegalArgumentException
- If the package, resource name, or target is not specifiedT 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.resourcePackage
- The package of the resourceresourceName
- The name of the resource inside resoucePackagetarget
- The target location inside the containerArchive
java.lang.IllegalArgumentException
- If the package, resource name, or target is not specified