Class ShrinkWrapResource

  • All Implemented Interfaces:
    Resource

    public class ShrinkWrapResource
    extends Object
    implements Resource
    Author:
    Arjan Tijms
    • Constructor Detail

      • ShrinkWrapResource

        public ShrinkWrapResource​(String resourcesPath,
                                  org.jboss.shrinkwrap.api.Archive<?> archive)
      • ShrinkWrapResource

        public ShrinkWrapResource​(org.jboss.shrinkwrap.api.Archive<?> archive)
    • Method Detail

      • getResource

        public URL getResource​(String url)
        Description copied from interface: Resource
        Get the resource.
        Specified by:
        getResource in interface Resource
        Parameters:
        url - the location.
        Returns:
        the URL.
      • getResourceAsStream

        public InputStream getResourceAsStream​(String url)
        Description copied from interface: Resource
        Get the resource as a stream.
        Specified by:
        getResourceAsStream in interface Resource
        Parameters:
        url - the location.
        Returns:
        the resource as a stream, or null if not found.
      • getAllLocations

        public Stream<String> getAllLocations​(org.jboss.shrinkwrap.api.Archive<?> archiveToGetFrom)