Class AARFileBasedURIResolver

java.lang.Object
org.apache.ws.commons.schema.resolver.DefaultURIResolver
org.apache.axis2.deployment.resolver.AARFileBasedURIResolver
All Implemented Interfaces:
org.apache.ws.commons.schema.resolver.CollectionURIResolver, org.apache.ws.commons.schema.resolver.URIResolver

public class AARFileBasedURIResolver extends org.apache.ws.commons.schema.resolver.DefaultURIResolver
A custom URI resolver that can
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final org.apache.commons.logging.Log
     

    Fields inherited from class org.apache.ws.commons.schema.resolver.DefaultURIResolver

    ALLOW_FILE_SYSTEM_PROPERTY, ALLOW_NETWORK_PROPERTY, CHECK_ADDRESSES_PROPERTY, CONNECT_TIMEOUT_PROPERTY, MAX_BYTES_PROPERTY, MAX_FETCH_MILLIS_PROPERTY, MAX_REDIRECTS_PROPERTY, READ_TIMEOUT_PROPERTY
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    Override logic in DefaultURIResolver class, which made this method private in XmlSchema 2.3.3 so that it is no longer inherited.
    resolveEntity(String targetNamespace, String schemaLocation, String baseUri)
     

    Methods inherited from class org.apache.ws.commons.schema.resolver.DefaultURIResolver

    getCollectionBaseURI, setCollectionBaseURI

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • log

      protected static final org.apache.commons.logging.Log log
  • Constructor Details

    • AARFileBasedURIResolver

      public AARFileBasedURIResolver(File aarFile)
  • Method Details

    • resolveEntity

      public InputSource resolveEntity(String targetNamespace, String schemaLocation, String baseUri)
      Specified by:
      resolveEntity in interface org.apache.ws.commons.schema.resolver.URIResolver
      Overrides:
      resolveEntity in class org.apache.ws.commons.schema.resolver.DefaultURIResolver
    • isAbsolute

      protected boolean isAbsolute(String uri)
      Override logic in DefaultURIResolver class, which made this method private in XmlSchema 2.3.3 so that it is no longer inherited. These are deliberately the 2.3.2 semantics rather than the URI.isAbsolute() test that replaced them upstream: the remote-scheme guard above relies on file: locations falling through to the relative branch, and widening this predicate would send them to the parent resolver instead. Keep it protected -- 2.3.2 still declares it protected, and narrowing an inherited member will not compile.
      Parameters:
      uri -
      Returns:
      boolean