Top Inners Fields Constructors Methods
org.hibernate.boot.jaxb.internal.stax

public Class LocalXmlResourceResolver

extends Object
implements XMLResolver
Class Inheritance
All Implemented Interfaces
javax.xml.stream.XMLResolver
Imports
java.io.IOException, .InputStream, java.net.URL, javax.xml.stream.XMLStreamException, org.hibernate.boot.ResourceStreamLocator, org.hibernate.boot.xsd.ConfigXsdSupport, .MappingXsdSupport, .XsdDescriptor, org.jboss.logging.Logger

Author
Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final LocalXmlResourceResolver.DtdDescriptor
public static final LocalXmlResourceResolver.DtdDescriptor
public static final LocalXmlResourceResolver.DtdDescriptor
public static final String
public static final LocalXmlResourceResolver.DtdDescriptor
public static final LocalXmlResourceResolver.DtdDescriptor
private static final Logger
public static final LocalXmlResourceResolver.DtdDescriptor
private final ResourceStreamLocator

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private InputStream
private InputStream
public Object
resolveEntity(String
The public identifier of the external entity being referenced, or null if none was supplied.
publicID
,
String
The system identifier of the external entity being referenced.
systemID
,
String
Absolute base URI associated with systemId.
baseURI
,
String
The namespace of the entity to resolve.
namespace
)

Implements javax.xml.stream.XMLResolver.resolveEntity.

Retrieves a resource.
private InputStream
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ALTERNATE_CFG_DTDback to summary
public static final LocalXmlResourceResolver.DtdDescriptor ALTERNATE_CFG_DTD
ALTERNATE_MAPPING_DTDback to summary
public static final LocalXmlResourceResolver.DtdDescriptor ALTERNATE_MAPPING_DTD
CFG_DTDback to summary
public static final LocalXmlResourceResolver.DtdDescriptor CFG_DTD
CLASSPATH_EXTENSION_URL_BASEback to summary
public static final String CLASSPATH_EXTENSION_URL_BASE
LEGACY_CFG_DTDback to summary
public static final LocalXmlResourceResolver.DtdDescriptor LEGACY_CFG_DTD
LEGACY_MAPPING_DTDback to summary
public static final LocalXmlResourceResolver.DtdDescriptor LEGACY_MAPPING_DTD
logback to summary
private static final Logger log
MAPPING_DTDback to summary
public static final LocalXmlResourceResolver.DtdDescriptor MAPPING_DTD
resourceStreamLocatorback to summary
private final ResourceStreamLocator resourceStreamLocator

Constructor Detail

LocalXmlResourceResolverback to summary
public LocalXmlResourceResolver(ResourceStreamLocator resourceStreamLocator)

Method Detail

openUrlStreamback to summary
private InputStream openUrlStream(XsdDescriptor xsdDescriptor)
openUrlStreamback to summary
private InputStream openUrlStream(URL url)
resolveEntityback to summary
public Object resolveEntity(String publicID, String systemID, String baseURI, String namespace) throws XMLStreamException

Implements javax.xml.stream.XMLResolver.resolveEntity.

Doc from javax.xml.stream.XMLResolver.resolveEntity.

Retrieves a resource. This resource can be of the following three return types: (1) java.io.InputStream (2) javax.xml.stream.XMLStreamReader (3) java.xml.stream.XMLEventReader. If this method returns null the processor will attempt to resolve the entity using its default mechanism.

Parameters
publicID:String

The public identifier of the external entity being referenced, or null if none was supplied.

systemID:String

The system identifier of the external entity being referenced.

baseURI:String

Absolute base URI associated with systemId.

namespace:String

The namespace of the entity to resolve.

Returns:Object

The resource requested or null.

Annotations
@Override
Exceptions
XMLStreamException:
if there was a failure attempting to resolve the resource.
resolveInLocalNamespaceback to summary
private InputStream resolveInLocalNamespace(String path)
org.hibernate.boot.jaxb.internal.stax back to summary

public Class LocalXmlResourceResolver.DtdDescriptor

extends Object
Class Inheritance
  • java.lang.Object
  • org.hibernate.boot.jaxb.internal.stax.LocalXmlResourceResolver.DtdDescriptor

Field Summary

Modifier and TypeField and Description
private final String
private final String
private final URL

Constructor Summary

AccessConstructor and Description
public
DtdDescriptor(String identifierBase, String resourceName)

Method Summary

Modifier and TypeMethod and Description
public String
public URL
public boolean
matches(String publicId, String systemId)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

httpBaseback to summary
private final String httpBase
httpsBaseback to summary
private final String httpsBase
localSchemaUrlback to summary
private final URL localSchemaUrl

Constructor Detail

DtdDescriptorback to summary
public DtdDescriptor(String identifierBase, String resourceName)

Method Detail

getIdentifierBaseback to summary
public String getIdentifierBase()
getMappedLocalUrlback to summary
public URL getMappedLocalUrl()
matchesback to summary
public boolean matches(String publicId, String systemId)