|
BEA Systems, Inc. | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
MBeanHome
interface.)
A Parser Select Entry specifies the SAX/DOM parser factory implementation classes for a particular document type.
By default, WebLogic server uses either the built-in (out-of-the-box) or default SAX/DOM parser factory implementation classes when it parses an XML document. However, you can specify that particular XML documents, based on their public IDs, system IDs, or root elements, use different parser factory implementation classes than the default. You do this by first creating an XML Registry and then creating a Parser Select entry and specifying how to identify the document and then the desired implementation classes. The XML document type is identified by one or more of the following: 1) a public ID (e.g, "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" 2) a system ID (e.g, "http://java.sun.com/j2ee/dtds/ejb-jar_2_0.dtd") 3) a document root tag name (e.g., "ejb-jar") This configuration information is used by the WebLogic JAXP implementation to choose the appropriate parser factories (SAX and DOM).
This is a type-safe interface for a
WebLogic Server MBean, which you can import into your client
classes and access through
weblogic.management.MBeanHome
. As of 9.0, the
MBeanHome
interface and all type-safe interfaces for
WebLogic Server MBeans are deprecated. Instead, client classes that
interact with WebLogic Server MBeans should use standard JMX design
patterns in which clients use the
javax.management.MBeanServerConnection
interface to
discover MBeans, attributes, and attribute types at runtime. For
more information, see "Developing Manageable Applications with JMX"
on http://www.oracle.com/technology/documentation/index.html.
Field Summary |
Fields inherited from interface weblogic.management.configuration.ConfigurationMBean |
DEFAULT_EMPTY_BYTE_ARRAY |
Method Summary | |
String |
getDocumentBuilderFactory()
Specifies the fully qualified name of the class that implements the DocumentBuilderFactory API. |
String |
getParserClassName()
Deprecated. |
String |
getPublicId()
Specifies the public ID of the XML document type for which this XML registry entry is being configured. |
String |
getRootElementTag()
Specifies the root element of the XML document type for which this XML registry entry is being configured. |
String |
getSAXParserFactory()
Specifies the fully qualified name of the class that implements the SAXParserFactory API. |
String |
getSystemId()
Specifies the system ID of the XML document type for which this XML registry entry is being configured. |
String |
getTransformerFactory()
Specifies the fully qualified name of the class that implements the TransformerFactory API. |
void |
setDocumentBuilderFactory(String factoryClassName)
Sets the value of the documentBuilderFactory attribute. |
void |
setParserClassName(String publicId)
Deprecated. |
void |
setPublicId(String publicId)
Sets the value of the publicId attribute. |
void |
setRootElementTag(String tagName)
Sets the value of the rootElementTag attribute. |
void |
setSAXParserFactory(String factoryClassName)
Sets the value of the sAXParserFactory attribute. |
void |
setSystemId(String systemId)
Sets the value of the systemId attribute. |
void |
setTransformerFactory(String factoryClassName)
Sets the value of the transformerFactory attribute. |
Methods inherited from interface weblogic.management.configuration.ConfigurationMBean |
freezeCurrentValue, getName, getNotes, isSet, restoreDefaultValue, setComments, setDefaultedMBean, setName, setNotes, setPersistenceEnabled, unSet |
Methods inherited from interface weblogic.management.WebLogicMBean |
getMBeanInfo, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setParent |
Methods inherited from interface javax.management.DynamicMBean |
getAttribute, getAttributes, invoke, setAttribute, setAttributes |
Methods inherited from interface javax.management.MBeanRegistration |
postDeregister, postRegister, preDeregister, preRegister |
Methods inherited from interface javax.management.NotificationBroadcaster |
addNotificationListener, getNotificationInfo, removeNotificationListener |
Methods inherited from interface weblogic.descriptor.DescriptorBean |
addBeanUpdateListener, addPropertyChangeListener, createChildCopy, createChildCopyIncludingObsolete, getDescriptor, getParentBean, isEditable, removeBeanUpdateListener, removePropertyChangeListener |
Method Detail |
public String getDocumentBuilderFactory()
Specifies the fully qualified name of the class that implements the DocumentBuilderFactory API.
When WebLogic Server begins to parse an XML document identified by either the public ID, system ID, or root element specified in this entry, and the applications specifies it wants a DOM parser, then WebLogic Server uses this implementation class when using the javax.xml.parsers.DocumentBuilderFactory to obtain the DOM parser.
public String getParserClassName()
Provides the class name of any custom XML parser that is associated with this parser select entry.
Return class name of any custom XML parser that is associated with the registry entry.
public String getPublicId()
Specifies the public ID of the XML document type for which this XML registry entry is being configured.
When WebLogic Server starts to parse an XML document that is identified with this public ID, it uses the SAX or DOM parser factory implementation class specified by this registry entry, rather than the built-in or default, when obtaining a SAX or DOM parser.
public String getRootElementTag()
Specifies the root element of the XML document type for which this XML registry entry is being configured.
When WebLogic Server starts to parse an XML document that is identified with this root element, it uses the SAX or DOM parser factory implementation class specified by this registry entry, rather than the built-in or default, when obtaining a SAX or DOM parser.
public String getSAXParserFactory()
Specifies the fully qualified name of the class that implements the SAXParserFactory API.
When WebLogic Server begins to parse an XML document identified by either the public ID, system ID, or root element specified in this entry, and the applications specifies it wants a SAX parser, then WebLogic Server uses this implementation class when using the javax.xml.parsers.SAXParserFactory to obtain the SAX parser.
public String getSystemId()
Specifies the system ID of the XML document type for which this XML registry entry is being configured.
When WebLogic Server starts to parse an XML document that is identified with this system ID, it uses the SAX or DOM parser factory implementation class specified by this registry entry, rather than the built-in or default, when obtaining a SAX or DOM parser.
public String getTransformerFactory()
Specifies the fully qualified name of the class that implements the TransformerFactory API.
When WebLogic Server begins to transform an XML document identified by either the public ID, system ID, or root element specified in this entry, then WebLogic Server uses this implementation class when using the javax.xml.transform.TranformerFactory factory to obtain a Transformer object.
public void setDocumentBuilderFactory(String factoryClassName) throws InvalidAttributeValueException
Sets the value of the documentBuilderFactory attribute.
factoryClassName
- The new documentBuilderFactory value
InvalidAttributeValueException
getDocumentBuilderFactory()
public void setParserClassName(String publicId) throws InvalidAttributeValueException
Sets the value of the parserClassName attribute.
publicId
- The new parserClassName value
InvalidAttributeValueException
getParserClassName()
public void setPublicId(String publicId) throws InvalidAttributeValueException
Sets the value of the publicId attribute.
publicId
- The new publicId value
InvalidAttributeValueException
getPublicId()
public void setRootElementTag(String tagName) throws InvalidAttributeValueException
Sets the value of the rootElementTag attribute.
tagName
- The new rootElementTag value
InvalidAttributeValueException
getRootElementTag()
public void setSAXParserFactory(String factoryClassName) throws InvalidAttributeValueException
Sets the value of the sAXParserFactory attribute.
factoryClassName
- The new sAXParserFactory value
InvalidAttributeValueException
getSAXParserFactory()
public void setSystemId(String systemId) throws InvalidAttributeValueException
Sets the value of the systemId attribute.
systemId
- The new systemId value
InvalidAttributeValueException
getSystemId()
public void setTransformerFactory(String factoryClassName) throws InvalidAttributeValueException
Sets the value of the transformerFactory attribute.
factoryClassName
- The new transformerFactory value
InvalidAttributeValueException
getTransformerFactory()
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs90 Copyright 2005 BEA Systems Inc. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |