Class DataSourceBaseResolver

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean isCid​(java.lang.String resourceLocation)
      Is this a content id?
      protected boolean isFileUrl​(java.lang.String urlString)
      Is this a file URL?
      protected boolean isHttpUrl​(java.lang.String urlString)
      Is this a HTTP/HTTPS URL?
      boolean isLenient()
      Shall we ignore resources not found or throw an exception?
      • Methods inherited from class java.lang.Object

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

      • DataSourceBaseResolver

        public DataSourceBaseResolver​(boolean lenient)
        Constructor.
        Parameters:
        lenient - shall we ignore resources not found or throw an exception?
    • Method Detail

      • isLenient

        public boolean isLenient()
        Shall we ignore resources not found or throw an exception?
        Returns:
        the lenient flag
      • isCid

        protected boolean isCid​(java.lang.String resourceLocation)
        Is this a content id?
        Parameters:
        resourceLocation - the resource location
        Returns:
        true if it is a CID
      • isFileUrl

        protected boolean isFileUrl​(java.lang.String urlString)
        Is this a file URL?
        Parameters:
        urlString - the URL string
        Returns:
        true if it is a file URL
      • isHttpUrl

        protected boolean isHttpUrl​(java.lang.String urlString)
        Is this a HTTP/HTTPS URL?
        Parameters:
        urlString - the URL string
        Returns:
        true if it is a HTTP/HTTPS URL