Class WLWebServicesDescriptorNode
- java.lang.Object
-
- com.sun.enterprise.deployment.node.DeploymentDescriptorNode<T>
-
- com.sun.enterprise.deployment.node.DisplayableComponentNode<T>
-
- com.sun.enterprise.deployment.node.AbstractBundleNode
-
- com.sun.enterprise.deployment.node.ws.WLWebServicesDescriptorNode
-
- All Implemented Interfaces:
BundleNode,RootXMLNode,XMLNode
@Service public class WLWebServicesDescriptorNode extends AbstractBundleNode
Node representing weblogic-webservices root element in weblogic-webservices.xml- Author:
- Rama Pulavarthi
-
-
Field Summary
-
Fields inherited from class com.sun.enterprise.deployment.node.AbstractBundleNode
docType, SCHEMA_LOCATION_TAG, W3C_XML_SCHEMA, W3C_XML_SCHEMA_INSTANCE
-
Fields inherited from class com.sun.enterprise.deployment.node.DeploymentDescriptorNode
abstractDescriptor, handlers, localStrings, parentNode, rootNode, serviceLocator
-
-
Constructor Summary
Constructors Constructor Description WLWebServicesDescriptorNode()WLWebServicesDescriptorNode(WebServicesDescriptor descriptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddBundleNodeAttributes(Element bundleNode, RootDeploymentDescriptor descriptor)write the necessary attributes for the root node of this DDs documentvoidaddDescriptor(Object descriptor)Adds a new DOL descriptor instance to the descriptor instance associated with this XMLNodeWebServicesDescriptorgetDescriptor()StringgetDocType()XMLNodegetHandlerFor(XMLElement element)Return the XMLNode implementation respionsible for handling the sub-element of the current nodeprotected StringgetSchemaURL()StringgetSpecVersion()StringgetSystemID()List<String>getSystemIDs()protected XMLElementgetXMLRootTag()StringregisterBundle(Map<String,String> publicIDToSystemIDMapping)Registers the standard bundle node in the map.Map<String,Class<?>>registerRuntimeBundle(Map<String,String> publicIDToDTD, Map<String,List<Class<?>>> versionUpgrades)Registers all appropriate runtime bundle nodes for this standard node into the map.protected booleansetAttributeValue(XMLElement elementName, XMLElement attributeName, String value)parsed an attribute of an elementNodewriteDescriptor(Node parent, RootDeploymentDescriptor descriptor)write the descriptor class to a DOM tree and return it-
Methods inherited from class com.sun.enterprise.deployment.node.AbstractBundleNode
addPrefixMapping, appendChildNS, elementsAllowingEmptyValue, elementsPreservingWhiteSpace, getDispatchTable, setDocType, setElementValue, setSpecVersion, topLevelTagName, topLevelTagValue, writeMessageDestinations
-
Methods inherited from class com.sun.enterprise.deployment.node.DisplayableComponentNode
writeDisplayableComponentInfo
-
Methods inherited from class com.sun.enterprise.deployment.node.DeploymentDescriptorNode
addNamespaceDeclaration, addNodeDescriptor, appendChild, appendQNameChild, appendTextChild, appendTextChild, composeQNameValue, createDescriptor, endElement, forceAppendTextChild, getLocalPartFromQName, getOwnerDocument, getParentNode, getPrefixFromQName, getRootNode, getXMLPath, handlesElement, postParsing, registerElementHandler, registerElementHandler, resolvePrefix, setAttribute, setAttributeNS, setDescriptorInfo, setParentNode, setXMLRootTag, startElement, writeDescriptor, writeDescriptors, writeEjbReferenceDescriptors, writeEntityManagerFactoryReferenceDescriptors, writeEntityManagerReferenceDescriptors, writeEnvEntryDescriptors, writeJNDIEnvironmentRefs, writeLifeCycleCallbackDescriptors, writeLocalizedDescriptions, writeMessageDestinationRefDescriptors, writeResourceDescriptors, writeResourceEnvRefDescriptors, writeResourceRefDescriptors, writeServiceReferenceDescriptors, writeSimpleTextDescriptor, writeSubDescriptors
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.sun.enterprise.deployment.node.XMLNode
endElement, getParentNode, getRootNode, getXMLPath, handlesElement, resolvePrefix, startElement
-
-
-
-
Constructor Detail
-
WLWebServicesDescriptorNode
public WLWebServicesDescriptorNode(WebServicesDescriptor descriptor)
-
WLWebServicesDescriptorNode
public WLWebServicesDescriptorNode()
-
-
Method Detail
-
getDocType
public String getDocType()
- Returns:
- the DOCTYPE of the XML file
-
getSystemID
public String getSystemID()
- Returns:
- the SystemID of the XML file
-
getSystemIDs
public List<String> getSystemIDs()
- Returns:
- the list of SystemID of the XML schema supported
-
registerBundle
public String registerBundle(Map<String,String> publicIDToSystemIDMapping)
Description copied from interface:BundleNodeRegisters the standard bundle node in the map.The implementation class must add to the map an entry with the key equal to the public ID of the DTD and the value the system ID.
- Parameters:
publicIDToSystemIDMapping- map prepared by the caller- Returns:
- top-level element name for the standard descriptor
-
registerRuntimeBundle
public Map<String,Class<?>> registerRuntimeBundle(Map<String,String> publicIDToDTD, Map<String,List<Class<?>>> versionUpgrades)
Description copied from interface:BundleNodeRegisters all appropriate runtime bundle nodes for this standard node into the map.The implementation class must add to the map one entry for each associated runtime descriptor node, with the entry key equal to the public ID of the runtime DTD and the value the system ID of the runtime DTD. The implementation must also return a map containing one entry for each associated runtime node, with the entry key equal to the top-level element name for the runtime descriptor and the entry value equal to the class of the runtime node.
versionUpgrades- The list of upgrades from older versions to the latest schema- Returns:
- map from top-level runtime descriptor element name to the corresponding runtime node class
-
getSchemaURL
protected String getSchemaURL()
- Overrides:
getSchemaURLin classAbstractBundleNode- Returns:
- the complete URL for J2EE schemas
-
getXMLRootTag
protected XMLElement getXMLRootTag()
- Overrides:
getXMLRootTagin classDeploymentDescriptorNode- Returns:
- the XML tag associated with this XMLNode
-
setAttributeValue
protected boolean setAttributeValue(XMLElement elementName, XMLElement attributeName, String value)
Description copied from class:DeploymentDescriptorNodeparsed an attribute of an element- Overrides:
setAttributeValuein classDeploymentDescriptorNode- Parameters:
elementName- the element nameattributeName- the attribute namevalue- the attribute value- Returns:
- true if the attribute was processed
-
getHandlerFor
public XMLNode getHandlerFor(XMLElement element)
Description copied from interface:XMLNodeReturn the XMLNode implementation respionsible for handling the sub-element of the current node- Specified by:
getHandlerForin interfaceXMLNode- Overrides:
getHandlerForin classDeploymentDescriptorNode- Parameters:
element- the XML element type name- Returns:
- the handler registered for the subtag element of the curent XMLNode
-
addDescriptor
public void addDescriptor(Object descriptor)
Description copied from class:DeploymentDescriptorNodeAdds a new DOL descriptor instance to the descriptor instance associated with this XMLNode- Specified by:
addDescriptorin interfaceXMLNode- Overrides:
addDescriptorin classDeploymentDescriptorNode- Parameters:
descriptor- the new descriptor
-
getDescriptor
public WebServicesDescriptor getDescriptor()
- Specified by:
getDescriptorin interfaceXMLNode- Overrides:
getDescriptorin classDeploymentDescriptorNode- Returns:
- the descriptor instance to associate with this XMLNode
-
writeDescriptor
public Node writeDescriptor(Node parent, RootDeploymentDescriptor descriptor)
Description copied from class:AbstractBundleNodewrite the descriptor class to a DOM tree and return it- Overrides:
writeDescriptorin classAbstractBundleNode- Parameters:
parent- node for the DOM treedescriptor- the descriptor to write- Returns:
- the DOM tree top node
-
addBundleNodeAttributes
protected void addBundleNodeAttributes(Element bundleNode, RootDeploymentDescriptor descriptor)
Description copied from class:AbstractBundleNodewrite the necessary attributes for the root node of this DDs document- Overrides:
addBundleNodeAttributesin classAbstractBundleNode
-
getSpecVersion
public String getSpecVersion()
- Returns:
- the default spec version level this node complies to
-
-