Class REST2SOAPInterceptor
java.lang.Object
com.predic8.membrane.core.interceptor.AbstractInterceptor
com.predic8.membrane.core.interceptor.rest.REST2SOAPInterceptor
- All Implemented Interfaces:
Interceptor
- Description
- Converts REST requests into SOAP messages.
- Topic
- 8. SOAP based Web Services
-
Nested Class Summary
Nested ClassesNested 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
Modifier and TypeMethodDescriptionprotected StreamSourceprotected StreamSourceprotected XSLTTransformergetTransformer(String ss) handleRequest(Exchange exc) handleResponse(Exchange exc) voidsetMappings(List<REST2SOAPInterceptor.Mapping> mappings) protected voidMethods inherited from class com.predic8.membrane.core.interceptor.AbstractInterceptor
getDisplayName, getFlow, getHelpId, getLongDescription, getMessage, getRouter, getRule, handleAbort, init, init, setDisplayName, setFlow
-
Constructor Details
-
REST2SOAPInterceptor
public REST2SOAPInterceptor()
-
-
Method Details
-
handleRequest
- Specified by:
handleRequestin interfaceInterceptor- Overrides:
handleRequestin classAbstractInterceptor- Throws:
Exception
-
handleResponse
- Specified by:
handleResponsein interfaceInterceptor- Overrides:
handleResponsein classAbstractInterceptor- Throws:
Exception
-
getMappings
-
setMappings
- Description
- Specifies the mappings. The first matching mapping will be applied to the request.
-
getShortDescription
- Specified by:
getShortDescriptionin interfaceInterceptor- Overrides:
getShortDescriptionin classAbstractInterceptor
-
getTransformer
- Throws:
Exception
-
getRequestXMLSource
- Throws:
Exception
-
getExchangeXMLSource
- Throws:
Exception
-
transformAndReplaceBody
protected void transformAndReplaceBody(Message msg, String ss, Source src, Map<String, String> properties) throws Exception- Throws:
Exception
-