Examples of MetadataSection


Examples of org.apache.axis2.mex.om.MetadataSection

public class MexService {
   
    public OMElement get(OMElement element) throws AxisFault {
       
        MetadataSection section = new MetadataSection();
        section.setDialect(MexConstants.SPEC.DIALECT_TYPE_POLICY);
        section.setinlineData(getPolicy());
       
        List lst = new ArrayList();
        lst.add(section);
       
        Metadata mdata = new Metadata();
View Full Code Here

Examples of org.apache.axis2.mex.om.MetadataSection

    OMElement retElement = admin.getWSDL(stsName).getFirstElement();
    OMElement defElement = retElement.getFirstChildWithName(new QName(Constants.NS_URI_WSDL11,
        "definitions"));
    setIdentityAddressing(defElement);
    MetadataSection section = new MetadataSection();
    section.setDialect("http://schemas.xmlsoap.org/wsdl/");
    section.setinlineData(defElement);
    section.setIdentifier(RahasConstants.WST_NS_05_02);

    List lst = new ArrayList();
    lst.add(section);

    Metadata mdata = new Metadata();
View Full Code Here

Examples of org.apache.axis2.mex.om.MetadataSection

   * Create MetadataSection for each Data element, and add the
   * MetadataSections to Metadata.
   */
  private ArrayList processData(Data[] data, OutputForm outputForm,
      String dialect, String identifier_value, SOAPFactory factory) throws MexException {
    MetadataSection section=null;
    ArrayList sections = new ArrayList();
    if (data == null || data.length == 0) {
      if (log.isDebugEnabled())
        log
            .debug("No result was returned from getData request for dialect,"
                + dialect
                + " Form: "
                + outputForm.getType()
                + ". No MetadataSection will be added!");

    } else {
      for (int k = 0; k < data.length; k++) {

        section = createMetadataSection(outputForm, data[k].getData(),
            factory, mexNamespaceValue);

        section.setDialect(dialect);
        identifier_value = data[k].getIdentifier();

        if (identifier_value != null) {
          section.setIdentifier(identifier_value);
        }
        sections.add(section);

      }
    }
View Full Code Here

Examples of org.apache.axis2.mex.om.MetadataSection

  }

  private MetadataSection createMetadataSection(OutputForm outputForm,
      Object result, SOAPFactory factory, String mexNamespaceValue)
      throws MexOMException {
    MetadataSection section = new MetadataSection(factory,
        mexNamespaceValue);

    if (outputForm == OutputForm.INLINE_FORM)
      section.setinlineData(result);
    else if (outputForm == OutputForm.LOCATION_FORM)
      section.setLocation(new Location(factory, mexNamespaceValue,
          (String) result));
    else if (outputForm == OutputForm.REFERENCE_FORM) {
      MetadataReference ref = new MetadataReference(factory,
          mexNamespaceValue);
     
      ref.setEPR((OMElement) result);
      section.setMetadataReference(ref);
    } else {

      section.setinlineData((OMElement) result);
    }

    return section;
  }
View Full Code Here

Examples of org.apache.axis2.mex.om.MetadataSection

public class MexService {
   
    public OMElement get(OMElement element) throws AxisFault {
       
        MetadataSection section = new MetadataSection();
        section.setDialect(MexConstants.SPEC.DIALECT_TYPE_POLICY);
        section.setinlineData(getPolicy());
       
        List lst = new ArrayList();
        lst.add(section);
       
        Metadata mdata = new Metadata();
View Full Code Here

Examples of org.apache.axis2.mex.om.MetadataSection

   * Create MetadataSection for each Data element, and add the
   * MetadataSections to Metadata.
   */
  private ArrayList processData(Data[] data, OutputForm outputForm,
      String dialect, String identifier_value, SOAPFactory factory) throws MexException {
    MetadataSection section=null;
    ArrayList sections = new ArrayList();
    if (data == null || data.length == 0) {
      if (log.isDebugEnabled())
        log
            .debug("No result was returned from getData request for dialect,"
                + dialect
                + " Form: "
                + outputForm.getType()
                + ". No MetadataSection will be added!");

    } else {
      for (int k = 0; k < data.length; k++) {

        section = createMetadataSection(outputForm, data[k].getData(),
            factory, mexNamespaceValue);

        section.setDialect(dialect);
        identifier_value = data[k].getIdentifier();

        if (identifier_value != null) {
          section.setIdentifier(identifier_value);
        }
        sections.add(section);

      }
    }
View Full Code Here

Examples of org.apache.axis2.mex.om.MetadataSection

  }

  private MetadataSection createMetadataSection(OutputForm outputForm,
      Object result, SOAPFactory factory, String mexNamespaceValue)
      throws MexOMException {
    MetadataSection section = new MetadataSection(factory,
        mexNamespaceValue);

    if (outputForm == OutputForm.INLINE_FORM)
      section.setinlineData(result);
    else if (outputForm == OutputForm.LOCATION_FORM)
      section.setLocation(new Location(factory, mexNamespaceValue,
          (String) result));
    else if (outputForm == OutputForm.REFERENCE_FORM) {
      MetadataReference ref = new MetadataReference(factory,
          mexNamespaceValue);
     
      ref.setEPR((OMElement) result);
      section.setMetadataReference(ref);
    } else {

      section.setinlineData((OMElement) result);
    }

    return section;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.