Uses of Class
org.apache.synapse.commons.staxon.core.json.JsonXMLOutputFactory
Packages that use JsonXMLOutputFactory
Package
Description
JAXB support for JSON.
-
Uses of JsonXMLOutputFactory in org.apache.synapse.commons.json
Methods in org.apache.synapse.commons.json that return JsonXMLOutputFactoryModifier and TypeMethodDescriptionstatic JsonXMLOutputFactoryJsonUtil.generateJSONOutputFactory(Properties props) Generate factory that is used to create JSON Writers It uses configuration that is used to format the JSON output produced by the JSON writer.static JsonXMLOutputFactoryJsonUtil.generateJSONOutputFactoryWithOveride(Properties props) Generate factory that is used to create JSON Writers This is will override the global configrationMethods in org.apache.synapse.commons.json with parameters of type JsonXMLOutputFactoryModifier and TypeMethodDescriptionstatic StringBuilderJsonUtil.toJsonString(org.apache.axiom.om.OMElement element, JsonXMLOutputFactory jsonOutputFactory) Converts an XML element to its JSON representation and returns it as a String.static voidJsonUtil.transformElement(org.apache.axiom.om.OMElement element, boolean processAttrbs, Map properties, JsonXMLOutputFactory jsonOutputFactory) Removes XML namespace declarations, and namespace prefixes from an XML element.static voidJsonUtil.writeAsJson(org.apache.axiom.om.OMElement element, OutputStream outputStream, Map properties, JsonXMLOutputFactory jsonOutputFactory) static voidJsonUtil.writeAsJson(org.apache.axiom.om.OMElement element, OutputStream outputStream, Map properties, JsonXMLOutputFactory jsonOutputFactory, String encoding) Converts an XML element to its JSON representation and writes it to an output stream.
Note that this method removes all existing namespace declarations and namespace prefixes of the provided XML element -
Uses of JsonXMLOutputFactory in org.apache.synapse.commons.staxon.core.json.jaxb
Methods in org.apache.synapse.commons.staxon.core.json.jaxb that return JsonXMLOutputFactoryModifier and TypeMethodDescriptionprotected JsonXMLOutputFactoryJsonXMLBinder.createOutputFactory(Class<?> type, JsonXML config)