|
Oracle Fusion Middleware Oracle WebLogic Server MBean Javadoc 11g Release 1 (10.3.3) Part Number E13945-03 |
||||||||||
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).
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.
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 |
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, 2010, 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 Oracle WebLogic Server MBean Javadoc 11g Release 1 (10.3.3) Part Number E13945-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |