|
||||||||||
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(Asset resource,
ArchivePath target)
Adds the Asset as a Web resource to the container, returning the container itself. |
T |
addWebResource(Asset resource,
String target)
Adds the Asset as a Web resource to the container, returning the container itself. |
T |
addWebResource(File resource)
Adds the File as a Web resource to the container, returning the container itself. |
T |
addWebResource(File resource,
ArchivePath target)
Adds the File as a Web resource to the container, returning the container itself. |
T |
addWebResource(File resource,
String target)
Adds the File as a Web resource to the container, returning the container itself. |
T |
addWebResource(String resourceName)
Adds the resource as a Web resource to the container, returning the container itself. |
T |
addWebResource(String resourceName,
ArchivePath target)
Adds the resource as a Web resource to the container, returning the container itself. |
T |
addWebResource(String resourceName,
String target)
Adds the resource as a Web resource to the container, returning the container itself. |
T |
addWebResource(URL resource,
ArchivePath target)
Adds the URL as a Web resource to the container, returning the container itself. |
T |
addWebResource(URL resource,
String target)
Adds the URL as a Web resource 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(File resource)
Adds the File as web.xml to the container, returning the container itself. |
T |
setWebXML(String resourceName)
Adds the resource as web.xml to the container, returning the container itself. |
T |
setWebXML(URL resource)
Adds the URL as web.xml to the container, returning the container itself. |
Method Detail |
---|
T setWebXML(String resourceName) throws IllegalArgumentException
ClassLoader
used to obtain the resource is up to the implementation.
resourceName
- resource to add
IllegalArgumentException
- if resourceName is nullsetWebXML(Asset)
T setWebXML(File resource) throws IllegalArgumentException
File
as web.xml to the container, returning the container itself.
resource
- File
resource to add
IllegalArgumentException
- if resource is nullsetWebXML(Asset)
T setWebXML(URL resource) throws IllegalArgumentException
URL
as web.xml to the container, returning the container itself.
resource
- URL
resource to add
IllegalArgumentException
- if resource is nullsetWebXML(Asset)
T setWebXML(Asset resource) throws IllegalArgumentException
Asset
as web.xml to the container, returning the container itself.
resource
- Asset
resource to add
IllegalArgumentException
- if resource is nulladdWebResource(Asset, ArchivePath)
T addWebResource(String resourceName) throws IllegalArgumentException
ClassLoader
used to obtain the resource is up to the implementation.
resourceName
- resource to add
IllegalArgumentException
- if resourceName is null
IllegalArgumentException
- if target is nulladdWebResource(Asset, ArchivePath)
T addWebResource(File resource) throws 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 add
IllegalArgumentException
- if File
resource is null
IllegalArgumentException
- if target is nulladdWebResource(Asset, ArchivePath)
T addWebResource(String resourceName, String target) throws 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.
IllegalArgumentException
- if resourceName is null
IllegalArgumentException
- if target is nulladdWebResource(Asset, ArchivePath)
T addWebResource(File resource, String target) throws 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.
IllegalArgumentException
- if resource is null
IllegalArgumentException
- if target is nulladdWebResource(Asset, ArchivePath)
T addWebResource(URL resource, String target) throws 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.
IllegalArgumentException
- if resource is null
IllegalArgumentException
- if target is nulladdWebResource(Asset, ArchivePath)
T addWebResource(Asset resource, String target) throws 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.
IllegalArgumentException
- if resource is null
IllegalArgumentException
- if target is nulladdWebResource(Asset, ArchivePath)
T addWebResource(String resourceName, ArchivePath target) throws 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.
IllegalArgumentException
- if resourceName is null
IllegalArgumentException
- if target is nulladdWebResource(Asset, ArchivePath)
T addWebResource(File resource, ArchivePath target) throws 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.
IllegalArgumentException
- if resource is null
IllegalArgumentException
- if target is nulladdWebResource(Asset, ArchivePath)
T addWebResource(URL resource, ArchivePath target) throws 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.
IllegalArgumentException
- if resource is null
IllegalArgumentException
- if target is nulladdWebResource(Asset, ArchivePath)
T addWebResource(Asset resource, ArchivePath target) throws 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.
IllegalArgumentException
- if resource is null
IllegalArgumentException
- if target is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |