Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.ws.commons.schema.resolver
Class DefaultURIResolver

    java.lang.Object
      org.apache.ws.commons.schema.resolver.DefaultURIResolver

All Implemented Interfaces:
  URIResolver

    public class DefaultURIResolver

extends java.lang.Object
implements URIResolver

This resolver provides the means of resolving the imports and includes of a given schema document. The system will call this default resolver if there is no other resolver present in the system

Constructor Summary
`DefaultURIResolver()`

Method Summary
`protected java.net.URL` | `getFileURL(java.net.URL contextURL, java.lang.String path)` Method getFileURL
`protected java.net.URL` | `getURL(java.net.URL contextURL, java.lang.String spec)` This is essentially a call to "new URL(contextURL, spec)" with extra handling in case spec is a file.
`protected boolean` | `isAbsolute(java.lang.String uri)` Find whether a given uri is relative or not
`org.xml.sax.InputSource` | `resolveEntity(java.lang.String namespace, java.lang.String schemaLocation, java.lang.String baseUri)` As for the resolver the publid ID is the target namespace of the schema and the schemaLocation is the value of the schema location

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### DefaultURIResolver

    public DefaultURIResolver()

Method Detail

### resolveEntity

    public org.xml.sax.InputSource resolveEntity(java.lang.String namespace,
                                                 java.lang.String schemaLocation,
                                                 java.lang.String baseUri)

  As for the resolver the publid ID is the target namespace of the schema and the schemaLocation is the value of the schema location

  Specified by:
    `resolveEntity` in interface `URIResolver`
  Parameters:
    `namespace` -
    `schemaLocation` -
    `baseUri` -

### isAbsolute

    protected boolean isAbsolute(java.lang.String uri)

  Find whether a given uri is relative or not

  Parameters:
    `uri` -
  Returns:
    boolean

### getURL

    protected java.net.URL getURL(java.net.URL contextURL,
                                  java.lang.String spec)
                           throws java.io.IOException

  This is essentially a call to "new URL(contextURL, spec)" with extra handling in case spec is a file.

  Parameters:
    `contextURL` -
    `spec` -
  Throws:
    `java.io.IOException`

### getFileURL

    protected java.net.URL getFileURL(java.net.URL contextURL,
                                      java.lang.String path)
                               throws java.io.IOException

  Method getFileURL

  Parameters:
    `contextURL` -
    `path` -
  Throws:
    `java.io.IOException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.