public class CatalogLocation extends Object
catolog.xml
found in the
Thread.currentThread().getContextClassLoader()
.Constructor and Description |
---|
CatalogLocation(URL url)
Create a new CatalogLocation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
To catalog locations are qual if the location is equal.
|
int |
hashCode()
Two catalog locations have the same hash code if the location is equal.
|
boolean |
isEntityResolved()
Returns the boolean value to inform id DTD was found in the XML file or not
|
static URL |
lookupCatalogFiles()
Seach the path for oasis catalog files.
|
InputSource |
resolveEntity(String publicId,
String systemId)
Tries to resolve the entity using the thread specific catolog resolvers
|
public CatalogLocation(URL url) throws IOException
url
- - the location of the catalog xml fileIOException
- if the catalog files cannot be loadedpublic InputSource resolveEntity(String publicId, String systemId) throws MalformedURLException, IOException
publicId
- - Public ID of DTD, or null if it is a schemasystemId
- - the system ID of DTD or SchemaMalformedURLException
- - if the url is wrongIOException
- - error reading the local filepublic static URL lookupCatalogFiles() throws IOException
Thread.currentThread().getContextClassLoader()
is used for the lookup.jax-ws-catalog.xml
is locatedIOException
- if the catalog files cannot be loadedpublic boolean isEntityResolved()
public boolean equals(Object other)
Copyright © 2018 JBoss by Red Hat. All rights reserved.