Class XmlPathExtractorInterceptor
java.lang.Object
com.predic8.membrane.core.interceptor.AbstractInterceptor
com.predic8.membrane.core.interceptor.xml.XmlPathExtractorInterceptor
- All Implemented Interfaces:
Interceptor
- Description
- Based on xpath it takes values from xml in request and puts them in exchange as properties
- Topic
- 4. Interceptors/Features
-
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 TypeMethodDescriptionhandleRequest(Exchange exc) handleResponse(Exchange exc) voidsetMappings(List<XmlPathExtractorInterceptor.Property> properties) Methods inherited from class com.predic8.membrane.core.interceptor.AbstractInterceptor
getDisplayName, getFlow, getHelpId, getMessage, getRouter, getRule, handleAbort, init, init, setDisplayName, setFlow
-
Constructor Details
-
XmlPathExtractorInterceptor
public XmlPathExtractorInterceptor()
-
-
Method Details
-
getShortDescription
- Specified by:
getShortDescriptionin interfaceInterceptor- Overrides:
getShortDescriptionin classAbstractInterceptor- Description
- Defines a xpath and name for exchange property.
-
getLongDescription
- Specified by:
getLongDescriptionin interfaceInterceptor- Overrides:
getLongDescriptionin classAbstractInterceptor
-
setMappings
-
getMappings
-
handleRequest
public Outcome handleRequest(Exchange exc) throws ParserConfigurationException, SAXException, XPathExpressionException, IOException - Specified by:
handleRequestin interfaceInterceptor- Overrides:
handleRequestin classAbstractInterceptor- Throws:
ParserConfigurationExceptionSAXExceptionXPathExpressionExceptionIOException
-
handleResponse
- Specified by:
handleResponsein interfaceInterceptor- Overrides:
handleResponsein classAbstractInterceptor- Throws:
Exception
-