Interface Resource


  • public interface Resource
    Describe a resource, such as a file or class path resource.
    • Method Detail

      • getScheme

        String getScheme()
        The scheme of the resource such as file, classpath, http
      • getLocation

        String getLocation()
        The location of the resource.
      • exists

        boolean exists()
        Whether this resource exists.
      • getURI

        default URI getURI()
        The URI of the resource.

        The default implementation creates a URI object from resource location.