Class ResourceResolverSpi

java.lang.Object
org.apache.xml.security.utils.resolver.ResourceResolverSpi

public abstract class ResourceResolverSpi extends Object
During reference validation, we have to retrieve resources from somewhere.
Author:
$Author$
  • Field Details

    • _properties

      protected Map _properties
      Field _properties
  • Constructor Details

    • ResourceResolverSpi

      public ResourceResolverSpi()
  • Method Details

    • engineResolve

      public abstract XMLSignatureInput engineResolve(Attr uri, String BaseURI) throws ResourceResolverException
      This is the workhorse method used to resolve resources.
      Parameters:
      uri -
      BaseURI -
      Returns:
      the resource wrapped arround a XMLSignatureInput
      Throws:
      ResourceResolverException
    • engineSetProperty

      public void engineSetProperty(String key, String value)
      Method engineSetProperty
      Parameters:
      key -
      value -
    • engineGetProperty

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

      public void engineAddProperies(Map properties)
      Parameters:
      properties -
    • engineCanResolve

      public abstract boolean engineCanResolve(Attr uri, String BaseURI)
      This method helps the ResourceResolver to decide whether a ResourceResolverSpi is able to perform the requested action.
      Parameters:
      uri -
      BaseURI -
      Returns:
      true if the engine can resolve the uri
    • engineGetPropertyKeys

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

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

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