Class AbstractJSONOMBuilder

  • All Implemented Interfaces:
    org.apache.axis2.builder.Builder
    Direct Known Subclasses:
    JSONBadgerfishOMBuilder, JSONOMBuilder

    public abstract class AbstractJSONOMBuilder
    extends Object
    implements org.apache.axis2.builder.Builder
    Makes the OMSourcedElement object with the JSONDataSource inside.
    • Constructor Detail

      • AbstractJSONOMBuilder

        public AbstractJSONOMBuilder()
    • Method Detail

      • processDocument

        public org.apache.axiom.om.OMElement processDocument​(InputStream inputStream,
                                                             String contentType,
                                                             org.apache.axis2.context.MessageContext messageContext)
                                                      throws org.apache.axis2.AxisFault
        gives the OMSourcedElement using the incoming JSON stream
        Specified by:
        processDocument in interface org.apache.axis2.builder.Builder
        Parameters:
        inputStream - - incoming message as an input stream
        contentType - - content type of the message (eg: application/json)
        messageContext - - inflow message context
        Returns:
        OMSourcedElement with JSONDataSource inside
        Throws:
        org.apache.axis2.AxisFault
      • getDataSource

        protected abstract AbstractJSONDataSource getDataSource​(Reader jsonReader,
                                                                org.apache.axis2.context.MessageContext messageContext)