|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.beasys.commerce.axiom.util.P13NEntityResolver
DefaultEntityResolver
instead.
A SAX EntityResolver which can get XML Entities (including DTDs) for WLCS.
This first looks for a file of the SYSTEM ID, relative to the basePath (either specified in the constructor or defaults to the value of the "commerce.xml.entity.basePath" property in the weblogicommerce.properties file, which defaults to "lib/dtd"). If that fails, it pulls the filename portion of the SYSTEM ID and tries that relative to the same basePath. Failing that, it looks in the CLASSPATH for the SYSTEM ID, relative to the basePath. Failing that, it looks in the CLASSPATH for the SYSTEM ID. Failing that, it looks in the CLASSPATH for the filename of the SYSTEM ID, relative to the basePath. Failing that, it looks in the CLASSPATH for filename of SYSTEM ID.
Field Summary | |
protected java.lang.String |
basePath
Deprecated. Our basePath. |
Constructor Summary | |
P13NEntityResolver()
Deprecated. |
|
P13NEntityResolver(java.lang.String basePath)
Deprecated. Constructor. |
Method Summary | |
static java.lang.String |
getBasePath()
Deprecated. Get the base directory where DTDs live from the weblogiccommerce.properties file. |
static org.xml.sax.EntityResolver |
getInstance()
Deprecated. Get the singleton instance. |
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
Deprecated. Resolve a SAX Entity to an InputSource. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected java.lang.String basePath
Constructor Detail |
public P13NEntityResolver(java.lang.String basePath)
basePath
- the base path (in the CLASSPATH) to look for DTDs (us
empty or null for full CLASSPATH search).public P13NEntityResolver()
Method Detail |
public static org.xml.sax.EntityResolver getInstance()
public static java.lang.String getBasePath()
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId) throws java.io.IOException, org.xml.sax.SAXException
See the base class comments for the search order.
publicId
- the entity's PUBLIC ID.systemId
- the entity's SYSTEM ID.
|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |