Class AbstractResource

    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractResource​(java.lang.String location)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String canonicalize​(java.lang.String input)  
      java.lang.String getLocation()  
      protected abstract java.lang.String getScheme()  
      protected boolean hasResourcePrefix​(java.lang.String resourcePath)
      Returns true if the resource path is not null and starts with one of the recognized resource prefixes (classpath:, url:, or file:, false otherwise.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AbstractResource

        public AbstractResource​(java.lang.String location)
    • Method Detail

      • canonicalize

        protected java.lang.String canonicalize​(java.lang.String input)
      • hasResourcePrefix

        protected boolean hasResourcePrefix​(java.lang.String resourcePath)
        Returns true if the resource path is not null and starts with one of the recognized resource prefixes (classpath:, url:, or file:, false otherwise.
        Parameters:
        resourcePath - the resource path to check
        Returns:
        true if the resource path is not null and starts with one of the recognized resource prefixes, false otherwise.
      • getLocation

        public java.lang.String getLocation()
      • getScheme

        protected abstract java.lang.String getScheme()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object