BEA Systems, Inc.

com.beasys.commerce.axiom.reasoning.rules.service
Class RulesetDataResolver

java.lang.Object
  |
  +--com.beasys.commerce.axiom.reasoning.rules.service.RulesetDataResolver

public class RulesetDataResolver
extends java.lang.Object
implements org.xml.sax.EntityResolver

Specifies the behavior for an entity resolver specific to ruleset data


Field Summary
static java.lang.String EJB_PROTOCOL_PREFIX
          The ejb protocol prefix
static java.lang.String HOST_OR_HOME_DELIMITER
          The entity host name or home name delimiter
static java.lang.String JDBC_PROTOCOL_PREFIX
          The jdbc protocol prefix
static java.lang.String NAME_DELIMITER
          The entity name delimiter
static java.lang.String RULES_LANGUAGE_DTD_NAME
          The vendor-independent, xml rules language dtd name
 
Constructor Summary
RulesetDataResolver(java.lang.String rulesetDataBeanHomeName, javax.naming.Context jndiContext)
          Constructor
 
Method Summary
 org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId)
          Resolves external entities
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RULES_LANGUAGE_DTD_NAME

public static final java.lang.String RULES_LANGUAGE_DTD_NAME
The vendor-independent, xml rules language dtd name

EJB_PROTOCOL_PREFIX

public static final java.lang.String EJB_PROTOCOL_PREFIX
The ejb protocol prefix

JDBC_PROTOCOL_PREFIX

public static final java.lang.String JDBC_PROTOCOL_PREFIX
The jdbc protocol prefix

HOST_OR_HOME_DELIMITER

public static final java.lang.String HOST_OR_HOME_DELIMITER
The entity host name or home name delimiter

NAME_DELIMITER

public static final java.lang.String NAME_DELIMITER
The entity name delimiter
Constructor Detail

RulesetDataResolver

public RulesetDataResolver(java.lang.String rulesetDataBeanHomeName,
                           javax.naming.Context jndiContext)
                    throws java.lang.IllegalArgumentException
Constructor
Parameters:
rulesetDataBeanHomeName - The home name for the ruleset data bean
jndiContext - The jndi context to use for lookups of the data bean home
Throws:
java.lang.IllegalArgumentException - Thrown if rulesetDataBeanHomeName is null or zero-length, or if jndiContext is null
Method Detail

resolveEntity

public org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
                                             java.lang.String systemId)
                                      throws org.xml.sax.SAXException,
                                             java.io.IOException
Resolves external entities
Specified by:
resolveEntity in interface org.xml.sax.EntityResolver
Parameters:
publicId - The public identifier of the external entity being referenced, or null if none was supplied.
systemId - The system identifier of the external entity being referenced.
Returns:
An InputSource object describing the new input source, or null to request that the parser open a regular URI connection to the system identifier.
Throws:
java.lang.IllegalArgumentException - Thrown if systemId is null
org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception.
java.io.IOException - A Java-specific IO exception, possibly the result of creating a new InputStream or Reader for the InputSource.

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved