Class ServiceArchiveCreator

java.lang.Object
org.wso2.carbon.service.mgt.util.ServiceArchiveCreator

public final class ServiceArchiveCreator extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected static class 
    TODO Find better way via Axis2.
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    createArchive(org.apache.axis2.context.ConfigurationContext configurationContext, String serviceGroupName)
    This method will generate an aar based on the information given.
    protected static org.apache.axiom.om.OMAttribute
    createOMAttribute(org.apache.axiom.om.OMFactory fac, org.apache.axiom.om.OMNamespace ns, String localName, String value)
     
    protected static org.apache.axiom.om.OMElement
    createOMElement(org.apache.axiom.om.OMFactory fac, org.apache.axiom.om.OMNamespace ns, String localName)
     
    protected static org.apache.axiom.om.OMElement
    createOMElement(org.apache.axiom.om.OMFactory fac, org.apache.axiom.om.OMNamespace ns, String localName, String text)
     
    protected static org.apache.axiom.om.OMElement
    createServiceGroupXMLInfoset(org.apache.axis2.description.AxisServiceGroup axisServiceGroup)
     
    protected static void
    serializeModules(Collection<org.apache.axis2.description.AxisModule> moduleCollection, org.apache.axiom.om.OMElement parent, org.apache.axiom.om.OMFactory fac, org.apache.axiom.om.OMNamespace ns, org.apache.axis2.description.AxisDescription axisDesc)
     
    protected static void
    serializeParameter(org.apache.axis2.description.Parameter param, org.apache.axiom.om.OMElement parent, org.apache.axiom.om.OMFactory fac, org.apache.axiom.om.OMNamespace ns)
     
    protected static void
    serializeParameterList(List<org.apache.axis2.description.Parameter> parameterList, org.apache.axiom.om.OMElement parent, org.apache.axiom.om.OMFactory fac, org.apache.axiom.om.OMNamespace ns)
     
    protected static void
    serializePolicyIncludes(org.apache.axiom.om.OMElement parent, List policyList, org.apache.neethi.PolicyRegistry policyRegistry)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • createArchive

      public static String createArchive(org.apache.axis2.context.ConfigurationContext configurationContext, String serviceGroupName) throws org.apache.axis2.AxisFault
      This method will generate an aar based on the information given.
      Parameters:
      configurationContext - configuration context
      serviceGroupName - service group name
      Returns:
      String : an id. User can access the generated archive using HTTP GET interface and this Id
      Throws:
      org.apache.axis2.AxisFault - will be thrown.
    • createServiceGroupXMLInfoset

      protected static org.apache.axiom.om.OMElement createServiceGroupXMLInfoset(org.apache.axis2.description.AxisServiceGroup axisServiceGroup)
    • serializePolicyIncludes

      protected static void serializePolicyIncludes(org.apache.axiom.om.OMElement parent, List policyList, org.apache.neethi.PolicyRegistry policyRegistry)
    • serializeModules

      protected static void serializeModules(Collection<org.apache.axis2.description.AxisModule> moduleCollection, org.apache.axiom.om.OMElement parent, org.apache.axiom.om.OMFactory fac, org.apache.axiom.om.OMNamespace ns, org.apache.axis2.description.AxisDescription axisDesc)
    • serializeParameterList

      protected static void serializeParameterList(List<org.apache.axis2.description.Parameter> parameterList, org.apache.axiom.om.OMElement parent, org.apache.axiom.om.OMFactory fac, org.apache.axiom.om.OMNamespace ns)
    • serializeParameter

      protected static void serializeParameter(org.apache.axis2.description.Parameter param, org.apache.axiom.om.OMElement parent, org.apache.axiom.om.OMFactory fac, org.apache.axiom.om.OMNamespace ns)
    • createOMElement

      protected static org.apache.axiom.om.OMElement createOMElement(org.apache.axiom.om.OMFactory fac, org.apache.axiom.om.OMNamespace ns, String localName)
    • createOMElement

      protected static org.apache.axiom.om.OMElement createOMElement(org.apache.axiom.om.OMFactory fac, org.apache.axiom.om.OMNamespace ns, String localName, String text)
    • createOMAttribute

      protected static org.apache.axiom.om.OMAttribute createOMAttribute(org.apache.axiom.om.OMFactory fac, org.apache.axiom.om.OMNamespace ns, String localName, String value)