Interface CommonWebArchive<T>

    • 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.
        The ClassLoader used to obtain the resource is up to the implementation.
        Parameters:
        resourceName - resource to add
        target - The target path within the archive in which to add the resource, relative to the Archives 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 the Asset as a WEB-INF resource to the container, returning the container itself.
        Parameters:
        resource - Asset resource to add
        target - The target path within the archive in which to add the resource, relative to the Archives WEB-INF path.
        Returns:
        This Archive
        Throws:
        IllegalArgumentException - If the resource or target is not specified