Class HttpResources


  • public class HttpResources
    extends Object
    Author:
    Kai Moritz
    • Method Detail

      • getResource

        public HttpResource getResource​(String uri)
        Parameters:
        uri - the resource location (must be a valid URI)
        Returns:
        the corresponding Resource handle (never null)
      • getResource

        public HttpResource getResource​(URI uri)
        Returns the HttpResource, that represents the given URI.

        Note that a Resource handle does not imply an existing resource; you need to invoke Resource.exists() to check for existence.

        Parameters:
        uri - the resource location, represented as an URI
        Returns:
        the corresponding Resource handle (never null)
      • convert

        public static URI convert​(String url)
      • normalize

        public static URI normalize​(URI uri)
      • isHttpResource

        public static boolean isHttpResource​(String resourcePath)