Class Json2XmlInterceptor
java.lang.Object
com.predic8.membrane.core.interceptor.AbstractInterceptor
com.predic8.membrane.core.interceptor.xml.Json2XmlInterceptor
- All Implemented Interfaces:
Interceptor
- Description
- If enabled converts body content from json to xml.
- Explanation
- Can be used for both request and response. Resulting xml will be utf-8. It uses org.json XML.toString() to do the conversion
- Topic
- 4. Interceptors/Features
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.predic8.membrane.core.interceptor.Interceptor
Interceptor.Flow -
Field Summary
Fields inherited from class com.predic8.membrane.core.interceptor.AbstractInterceptor
name, router -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.predic8.membrane.core.interceptor.AbstractInterceptor
getFlow, getHelpId, getLongDescription, getMessage, getRouter, getRule, handleAbort, init, init, setDisplayName, setFlow
-
Constructor Details
-
Json2XmlInterceptor
public Json2XmlInterceptor()
-
-
Method Details
-
getDisplayName
- Specified by:
getDisplayNamein interfaceInterceptor- Overrides:
getDisplayNamein classAbstractInterceptor
-
getShortDescription
- Specified by:
getShortDescriptionin interfaceInterceptor- Overrides:
getShortDescriptionin classAbstractInterceptor
-
handleRequest
- Specified by:
handleRequestin interfaceInterceptor- Overrides:
handleRequestin classAbstractInterceptor- Throws:
Exception
-
handleResponse
- Specified by:
handleResponsein interfaceInterceptor- Overrides:
handleResponsein classAbstractInterceptor- Throws:
Exception
-