|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.ws.commons.schema.resolver.DefaultURIResolver
public class DefaultURIResolver
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 | |
---|---|
java.lang.String |
getCollectionBaseURI()
Get the base URI derived from a schema collection. |
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)
Try to resolve a schema location to some data. |
void |
setCollectionBaseURI(java.lang.String collectionBaseURI)
set the collection base URI, which serves as a fallback from the base of the immediate schema. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultURIResolver()
Method Detail |
---|
public org.xml.sax.InputSource resolveEntity(java.lang.String namespace, java.lang.String schemaLocation, java.lang.String baseUri)
resolveEntity
in interface URIResolver
namespace
- targt namespace.schemaLocation
- system ID.baseUri
- base URI for the schema.protected boolean isAbsolute(java.lang.String uri)
uri
-
protected java.net.URL getURL(java.net.URL contextURL, java.lang.String spec) throws java.io.IOException
contextURL
- spec
-
java.io.IOException
protected java.net.URL getFileURL(java.net.URL contextURL, java.lang.String path) throws java.io.IOException
contextURL
- path
-
java.io.IOException
public java.lang.String getCollectionBaseURI()
getCollectionBaseURI
in interface CollectionURIResolver
public void setCollectionBaseURI(java.lang.String collectionBaseURI)
setCollectionBaseURI
in interface CollectionURIResolver
collectionBaseURI
- the URI.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |