Class MultirefHelper


  • public class MultirefHelper
    extends Object
    • Constructor Detail

      • MultirefHelper

        public MultirefHelper​(org.apache.axiom.om.OMElement parent)
    • Method Detail

      • getOMElement

        public org.apache.axiom.om.OMElement getOMElement​(String id)
      • processOMElementRef

        public org.apache.axiom.om.OMElement processOMElementRef​(String id)
                                                          throws org.apache.axis2.AxisFault
        Throws:
        org.apache.axis2.AxisFault
      • processElementforRefs

        public org.apache.axiom.om.OMElement processElementforRefs​(org.apache.axiom.om.OMElement elemnts)
                                                            throws org.apache.axis2.AxisFault
        Throws:
        org.apache.axis2.AxisFault
      • processRef

        public Object processRef​(Class javatype,
                                 String id,
                                 org.apache.axis2.engine.ObjectSupplier objectSupplier)
                          throws org.apache.axis2.AxisFault
        Throws:
        org.apache.axis2.AxisFault
      • processRef

        public Object processRef​(Class javatype,
                                 Type generictype,
                                 String id,
                                 org.apache.axis2.engine.ObjectSupplier objectSupplier)
                          throws org.apache.axis2.AxisFault
        Throws:
        org.apache.axis2.AxisFault
      • getAttvalue

        public static String getAttvalue​(org.apache.axiom.om.OMAttribute omatribute)
      • processRefAtt

        public static org.apache.axiom.om.OMAttribute processRefAtt​(org.apache.axiom.om.OMElement omElement)
      • clean

        public void clean()
      • processHrefAttributes

        public static void processHrefAttributes​(org.apache.axiom.soap.SOAPEnvelope soapEnvelope)
                                          throws org.apache.axis2.AxisFault
        this method is used to process the href attributes which may comes with the incomming soap mesaage the real argument blue here we assume first child of the soap body has the main object structure and others contain the multiref parts. Soap spec says that those multiref parts must be top level elements.
        Parameters:
        soapEnvelope -
        Throws:
        org.apache.axis2.AxisFault
      • processHrefAttributes

        public static void processHrefAttributes​(Map idAndOMElementMap,
                                                 org.apache.axiom.om.OMElement elementToProcess,
                                                 org.apache.axiom.om.OMFactory omFactory)
                                          throws org.apache.axis2.AxisFault
        Throws:
        org.apache.axis2.AxisFault
      • getClonedOMElement

        public static org.apache.axiom.om.OMElement getClonedOMElement​(org.apache.axiom.om.OMElement omElement,
                                                                       org.apache.axiom.om.OMFactory omFactory)
                                                                throws org.apache.axis2.AxisFault
        returns an cloned om element for this OMElement
        Parameters:
        omElement -
        Returns:
        cloned omElement
        Throws:
        org.apache.axis2.AxisFault