|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- public interface WebContainer<T extends Archive<T>>
WebContainer
Defines the contract for a component capable of storing
Web related resources.
The actual path to the Web resources within the Archive
is up to the implementations/specifications.
Method Summary | |
---|---|
T |
addWebResource(java.io.File resource)
|
T |
addWebResource(Path target,
Asset resource)
|
T |
addWebResource(Path target,
java.io.File resource)
|
T |
addWebResource(Path target,
java.lang.String resourceName)
Adds the resource with the specified name to the container, returning the container itself. |
T |
addWebResource(Path target,
java.net.URL resource)
|
T |
addWebResource(java.lang.String resourceName)
Adds the resource with the specified name to the container, returning the container itself. |
T |
addWebResource(java.lang.String target,
Asset resource)
|
T |
addWebResource(java.lang.String target,
java.io.File resource)
|
T |
addWebResource(java.lang.String target,
java.lang.String resourceName)
|
T |
addWebResource(java.lang.String target,
java.net.URL resource)
|
T |
setWebXML(Asset resource)
Adds a resource to this Archive as /WEB-INF/web.xml. |
T |
setWebXML(java.io.File resource)
Adds a resource to this Archive as /WEB-INF/web.xml. |
T |
setWebXML(java.lang.String resourceName)
Adds a resource to this Archive as /WEB-INF/web.xml. |
T |
setWebXML(java.net.URL resource)
Adds a resource to this Archive as /WEB-INF/web.xml. |
Method Detail |
---|
T setWebXML(java.lang.String resourceName) throws java.lang.IllegalArgumentException
ClassLoader
used to obtain the resource is up to
the implementation.
resourceName
- Name of the ClassLoader
resource to add
java.lang.IllegalArgumentException
- if resourceName is nullT setWebXML(java.io.File resource) throws java.lang.IllegalArgumentException
resource
- File
resource to add
java.lang.IllegalArgumentException
- if resource is nullT setWebXML(java.net.URL resource) throws java.lang.IllegalArgumentException
resource
- URL
resource to add
java.lang.IllegalArgumentException
- if resource is nullT setWebXML(Asset resource) throws java.lang.IllegalArgumentException
resource
- Asset
resource to add
java.lang.IllegalArgumentException
- if resource is nullT addWebResource(java.lang.String resourceName) throws java.lang.IllegalArgumentException
ClassLoader
used to obtain the resource is up to
the implementation.
resourceName
- Name of the ClassLoader
resource to add
java.lang.IllegalArgumentException
- if resourceName is nullT addWebResource(java.io.File resource) throws java.lang.IllegalArgumentException
resource
- File
resource to add
java.lang.IllegalArgumentException
- if resource is nullT addWebResource(java.lang.String target, java.lang.String resourceName) throws java.lang.IllegalArgumentException
target
- The target relative to Web path within the archive into which we'll place the resourceresourceName
- Name of the ClassLoader
resource to add
java.lang.IllegalArgumentException
- if target is null
java.lang.IllegalArgumentException
- if resourceName is nullT addWebResource(java.lang.String target, java.io.File resource) throws java.lang.IllegalArgumentException
target
- The target relative to Web path within the archive into which we'll place the resourceresource
- File
resource to add
java.lang.IllegalArgumentException
- if target is null
java.lang.IllegalArgumentException
- if resource is nullT addWebResource(java.lang.String target, java.net.URL resource) throws java.lang.IllegalArgumentException
target
- The target relative to Web path within the archive into which we'll place the resourceresource
- URL
resource to add
java.lang.IllegalArgumentException
- if target is null
java.lang.IllegalArgumentException
- if resource is nullT addWebResource(java.lang.String target, Asset resource) throws java.lang.IllegalArgumentException
target
- The target relative to Web path within the archive into which we'll place the resourceresource
- Asset
resource to add
java.lang.IllegalArgumentException
- if target is null
java.lang.IllegalArgumentException
- if resource is nullT addWebResource(Path target, java.lang.String resourceName) throws java.lang.IllegalArgumentException
ClassLoader
used to obtain the resource is up to
the implementation.
target
- The target relative to Web path within the archive into which we'll place the resourceresourceName
- Name of the ClassLoader
resource to add
java.lang.IllegalArgumentException
- if target is null
java.lang.IllegalArgumentException
- if resourceName is nullT addWebResource(Path target, java.io.File resource) throws java.lang.IllegalArgumentException
target
- The target relative to Web path within the archive into which we'll place the resourceresource
- File
resource to add
java.lang.IllegalArgumentException
- if target is null
java.lang.IllegalArgumentException
- if resource is nullT addWebResource(Path target, java.net.URL resource) throws java.lang.IllegalArgumentException
target
- The target relative to Web path within the archive into which we'll place the resourceresource
- URL
resource to add
java.lang.IllegalArgumentException
- if target is null
java.lang.IllegalArgumentException
- if resource is nullT addWebResource(Path target, Asset resource) throws java.lang.IllegalArgumentException
target
- The target relative to Web path within the archive into which we'll place the resourceresource
- Asset
resource to add
java.lang.IllegalArgumentException
- if target is null
java.lang.IllegalArgumentException
- if resource is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |