Class DescriptionBuilder

java.lang.Object
org.apache.axis2.deployment.DescriptionBuilder
All Implemented Interfaces:
DeploymentConstants
Direct Known Subclasses:
AxisConfigBuilder, ClusterBuilder, ModuleBuilder, ServiceBuilder, ServiceGroupBuilder

public class DescriptionBuilder extends Object implements DeploymentConstants
This class does the common tasks for all *Builder class.
  • Field Details

  • Constructor Details

  • Method Details

    • buildOM

      public org.apache.axiom.om.OMElement buildOM() throws XMLStreamException
      Creates OMElement for a given description document (axis2.xml , services.xml and module.xml).
      Returns:
      Returns OMElement .
      Throws:
      XMLStreamException
    • loadDefaultMessageReceiver

      protected MessageReceiver loadDefaultMessageReceiver(String mepURL, AxisService service)
      Loads default message receivers. First searches in Axiservice for the given mepURL, if not found searches in AxisConfiguration with the given mepURL.
      Parameters:
      mepURL - : can be null
      service - : This can be null AxisService
    • processMessageReceivers

      protected HashMap<String,MessageReceiver> processMessageReceivers(org.apache.axiom.om.OMElement messageReceivers) throws DeploymentException
      Processes default message receivers specified either in axis2.xml or services.xml.
      Throws:
      DeploymentException
    • processMessageReceivers

      protected HashMap<String,MessageReceiver> processMessageReceivers(ClassLoader loader, org.apache.axiom.om.OMElement element) throws DeploymentException
      Processes default message receivers specified either in axis2.xml or services.xml.
      Throws:
      DeploymentException
    • loadMessageReceiver

      protected MessageReceiver loadMessageReceiver(ClassLoader loader, org.apache.axiom.om.OMElement element) throws DeploymentException
      Throws:
      DeploymentException
    • processMessageBuilders

      protected HashMap processMessageBuilders(org.apache.axiom.om.OMElement messageBuildersElement) throws DeploymentException
      Processes the message builders specified in axis2.xml or services.xml.
      Parameters:
      messageBuildersElement -
      Throws:
      DeploymentException
    • processMessageFormatters

      protected HashMap processMessageFormatters(org.apache.axiom.om.OMElement messageFormattersElement) throws DeploymentException
      Processes the message builders specified in axis2.xml or services.xml.
      Throws:
      DeploymentException
    • findAndValidateSelectorClass

      protected Class findAndValidateSelectorClass(String className, String errorMsg) throws PrivilegedActionException
      Throws:
      PrivilegedActionException
    • processFlow

      protected Flow processFlow(org.apache.axiom.om.OMElement flowelement, ParameterInclude parent) throws DeploymentException
      Processes flow elements in services.xml .
      Parameters:
      flowelement - OMElement
      Returns:
      Returns Flow.
      Throws:
      DeploymentException - DeploymentException
    • processSupportedPolicyNamespaces

      protected String[] processSupportedPolicyNamespaces(org.apache.axiom.om.OMElement supportedPolicyElements)
    • getLocalPolicyAssertionNames

      protected QName[] getLocalPolicyAssertionNames(org.apache.axiom.om.OMElement localPolicyAssertionsElement)
    • processHandler

      protected HandlerDescription processHandler(org.apache.axiom.om.OMElement handler_element, ParameterInclude parent) throws DeploymentException
      Throws:
      DeploymentException
    • processHandler

      protected HandlerDescription processHandler(org.apache.axiom.om.OMElement handler_element, ParameterInclude parent, String containingPhase) throws DeploymentException
      Processes Handler element.
      Parameters:
      handler_element - OMElement
      Returns:
      Returns HandlerDescription.
      Throws:
      DeploymentException - DeploymentException
    • processOperationModuleRefs

      protected void processOperationModuleRefs(Iterator moduleRefs, AxisOperation operation) throws DeploymentException
      Throws:
      DeploymentException
    • processParameters

      protected void processParameters(Iterator parameters, ParameterInclude parameterInclude, ParameterInclude parent) throws DeploymentException
      Gets the Parameter object from the OM.
      Parameters:
      parameters - Parameter
      parameterInclude - ParameterInclude
      parent - ParameterInclude
      Throws:
      DeploymentException
    • processActionMappings

      protected void processActionMappings(org.apache.axiom.om.OMElement operation, AxisOperation op_descrip)
      Populate the AxisOperation with details from the actionMapping, outputActionMapping and faultActionMapping elements from the operation element.
      Parameters:
      operation -
      op_descrip -
    • processPolicyElements

      protected void processPolicyElements(Iterator policyElements, PolicySubject policySubject)
    • processPolicyRefElements

      protected void processPolicyRefElements(Iterator policyRefElements, PolicySubject policySubject)
    • getShortFileName

      public static String getShortFileName(String fileName)
      Gets the short file name. Short file name is the name before the dot.
      Parameters:
      fileName -
      Returns:
      Returns String.
    • getValue

      protected String getValue(String in)
      Gets the value of an attribute. eg xsd:anyVal --> anyVal
      Returns:
      Returns String.