Package org.silverpeas.core.test
Interface CommonWebArchive<T>
-
- All Superinterfaces:
CommonArchive<CommonWebArchive<T>>
- All Known Implementing Classes:
BasicCoreWarBuilder
,BasicWarBuilder
,WarBuilder
public interface CommonWebArchive<T> extends CommonArchive<CommonWebArchive<T>>
- Author:
- Yohann Chastagnier
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.silverpeas.core.test.CommonArchive
CommonArchive.OnShrinkWrapWar
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CommonWebArchive<T>
addAsWebInfResource(String resourceName, String target)
Adds the resource as a WEB-INF resource to the container, returning the container itself.CommonWebArchive<T>
addAsWebInfResource(org.jboss.shrinkwrap.api.asset.Asset resource, String target)
Adds theAsset
as a WEB-INF resource to the container, returning the container itself.-
Methods inherited from interface org.silverpeas.core.test.CommonArchive
addAsResource, addAsResource, addClasses, addPackages, applyManually, contains, contains, deleteClasses
-
-
-
-
Method Detail
-
addAsWebInfResource
CommonWebArchive<T> addAsWebInfResource(String resourceName, String target) throws IllegalArgumentException
Adds the resource as a WEB-INF resource to the container, returning the container itself.
TheClassLoader
used to obtain the resource is up to the implementation.- Parameters:
resourceName
- resource to addtarget
- The target path within the archive in which to add the resource, relative to theArchive
s WEB-INF path.- Returns:
- This
Archive
- Throws:
IllegalArgumentException
- if resourceName or target is not specified
-
addAsWebInfResource
CommonWebArchive<T> addAsWebInfResource(org.jboss.shrinkwrap.api.asset.Asset resource, String target) throws IllegalArgumentException
Adds theAsset
as a WEB-INF resource to the container, returning the container itself.- Parameters:
resource
-Asset
resource to addtarget
- The target path within the archive in which to add the resource, relative to theArchive
s WEB-INF path.- Returns:
- This
Archive
- Throws:
IllegalArgumentException
- If the resource or target is not specified
-
-