Class ResourceResolverSpi

    • Field Detail

      • LOG

        private static final org.slf4j.Logger LOG
      • properties

        protected java.util.Map<java.lang.String,​java.lang.String> properties
        Field properties
    • Constructor Detail

      • ResourceResolverSpi

        public ResourceResolverSpi()
    • Method Detail

      • engineSetProperty

        public void engineSetProperty​(java.lang.String key,
                                      java.lang.String value)
        Method engineSetProperty
        Parameters:
        key -
        value -
      • engineGetProperty

        public java.lang.String engineGetProperty​(java.lang.String key)
        Method engineGetProperty
        Parameters:
        key -
        Returns:
        the value of the property
      • engineAddProperies

        public void engineAddProperies​(java.util.Map<java.lang.String,​java.lang.String> newProperties)
        Parameters:
        newProperties -
      • engineIsThreadSafe

        public boolean engineIsThreadSafe()
        Tells if the implementation does can be reused by several threads safely. It normally means that the implementation does not have any member, or there is member change between engineCanResolve and engineResolve invocations. Or it maintains all member info in ThreadLocal methods.
      • engineCanResolveURI

        public abstract boolean engineCanResolveURI​(ResourceResolverContext context)
        This method helps the ResourceResolver to decide whether a ResourceResolverSpi is able to perform the requested action.
        Parameters:
        context - Context in which to do resolution.
        Returns:
        true if the engine can resolve the uri
      • engineGetPropertyKeys

        public java.lang.String[] engineGetPropertyKeys()
        Method engineGetPropertyKeys
        Returns:
        the property keys
      • understandsProperty

        public boolean understandsProperty​(java.lang.String propertyToTest)
        Method understandsProperty
        Parameters:
        propertyToTest -
        Returns:
        true if understands the property
      • fixURI

        public static java.lang.String fixURI​(java.lang.String str)
        Fixes a platform dependent filename to standard URI form.
        Parameters:
        str - The string to fix.
        Returns:
        Returns the fixed URI string.