Class DispatchingInterceptor
java.lang.Object
com.predic8.membrane.core.interceptor.AbstractInterceptor
com.predic8.membrane.core.interceptor.DispatchingInterceptor
- All Implemented Interfaces:
Interceptor
- Description
- This interceptor adds the destination specified in the target element to the list of destinations of the exchange object. It must be placed into the transport to make Service Proxies Work properly. It has to be placed after the ruleMatching interceptor. The ruleMatching interceptor looks up a service proxy for an incoming request and places it into the exchange object. The dispatching interceptor needs the service proxy to get information about the target.
-
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
Modifier and TypeMethodDescriptionstatic StringgetForwardingDestination(URIFactory uriFactory, Exchange exc) protected static StringhandleAbstractServiceProxy(URIFactory uriFactory, Exchange exc) handleRequest(Exchange exc) Methods inherited from class com.predic8.membrane.core.interceptor.AbstractInterceptor
getDisplayName, getFlow, getHelpId, getLongDescription, getMessage, getRouter, getRule, getShortDescription, handleAbort, handleResponse, init, init, setDisplayName, setFlow
-
Constructor Details
-
DispatchingInterceptor
public DispatchingInterceptor()
-
-
Method Details
-
handleRequest
- Specified by:
handleRequestin interfaceInterceptor- Overrides:
handleRequestin classAbstractInterceptor- Throws:
Exception
-
getForwardingDestination
- Throws:
Exception
-
handleAbstractServiceProxy
protected static String handleAbstractServiceProxy(URIFactory uriFactory, Exchange exc) throws MalformedURLException, URISyntaxException
-