public class CatalogLocation
extends java.lang.Object
catolog.xml found in the
Thread.currentThread().getContextClassLoader().| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String[] |
catalogFilesNames
The catalog is assembled by taking into account all accessible resources whose name is
META-INF/jax-ws-catalog.xml.
|
private Resolver |
catologResolver |
private boolean |
isLastEntityResolved |
private java.net.URL |
location |
private static org.jboss.logging.Logger |
log |
| Constructor and Description |
|---|
CatalogLocation(java.net.URL url)
Create a new CatalogLocation.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.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
|
private java.io.InputStream |
loadResource(java.lang.String resolvedURI)
Loads the resolved resource.
|
static java.net.URL |
lookupCatalogFiles()
Seach the path for oasis catalog files.
|
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
Tries to resolve the entity using the thread specific catolog resolvers
|
private static org.jboss.logging.Logger log
private static final java.lang.String[] catalogFilesNames
private final Resolver catologResolver
private final java.net.URL location
private boolean isLastEntityResolved
public CatalogLocation(java.net.URL url)
throws java.io.IOException
url - - the location of the catalog xml filejava.io.IOException - if the catalog files cannot be loadedpublic org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
java.lang.String systemId)
throws java.net.MalformedURLException,
java.io.IOException
publicId - - Public ID of DTD, or null if it is a schemasystemId - - the system ID of DTD or Schemajava.net.MalformedURLException - - if the url is wrongjava.io.IOException - - error reading the local filepublic static java.net.URL lookupCatalogFiles()
throws java.io.IOException
Thread.currentThread().getContextClassLoader()
is used for the lookup.jax-ws-catalog.xml is locatedjava.io.IOException - if the catalog files cannot be loadedpublic boolean isEntityResolved()
private java.io.InputStream loadResource(java.lang.String resolvedURI)
throws java.io.IOException
resolvedURI - - the full qualified URI of the resoved local ressourcejava.io.IOException - - if the resource cannot be openedpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - - the catlog location to comparepublic int hashCode()
hashCode in class java.lang.Object