|
Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.1.2) Part Number E27170-01 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XMLParserSelectRegistryEntryMBean
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).
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, getId, getInheritedProperties, getName, getNotes, isDynamicallyCreated, isInherited, 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 |
---|
addPropertyChangeListener, createChildCopyIncludingObsolete, getParentBean, isEditable, removePropertyChangeListener |
Method Detail |
---|
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.
void setPublicId(String publicId) throws InvalidAttributeValueException
Sets the value of the publicId attribute.
publicId
- The new publicId value
InvalidAttributeValueException
XMLParserSelectRegistryEntryMBean.getPublicId()
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.
void setSystemId(String systemId) throws InvalidAttributeValueException
Sets the value of the systemId attribute.
systemId
- The new systemId value
InvalidAttributeValueException
XMLParserSelectRegistryEntryMBean.getSystemId()
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.
void setRootElementTag(String tagName) throws InvalidAttributeValueException
Sets the value of the rootElementTag attribute.
tagName
- The new rootElementTag value
InvalidAttributeValueException
XMLParserSelectRegistryEntryMBean.getRootElementTag()
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.
void setDocumentBuilderFactory(String factoryClassName) throws InvalidAttributeValueException
Sets the value of the documentBuilderFactory attribute.
factoryClassName
- The new documentBuilderFactory value
InvalidAttributeValueException
XMLParserSelectRegistryEntryMBean.getDocumentBuilderFactory()
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.
void setSAXParserFactory(String factoryClassName) throws InvalidAttributeValueException
Sets the value of the sAXParserFactory attribute.
factoryClassName
- The new sAXParserFactory value
InvalidAttributeValueException
XMLParserSelectRegistryEntryMBean.getSAXParserFactory()
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.
void setTransformerFactory(String factoryClassName) throws InvalidAttributeValueException
Sets the value of the transformerFactory attribute.
factoryClassName
- The new transformerFactory value
InvalidAttributeValueException
XMLParserSelectRegistryEntryMBean.getTransformerFactory()
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.
void setParserClassName(String publicId) throws InvalidAttributeValueException
Sets the value of the parserClassName attribute.
publicId
- The new parserClassName value
InvalidAttributeValueException
XMLParserSelectRegistryEntryMBean.getParserClassName()
|
Copyright 1996, 2013, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.1.2) Part Number E27170-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |