public class JbiHelper
extends java.lang.Object
| Constructor and Description |
|---|
JbiHelper(DroolsEndpoint endpoint,
javax.jbi.messaging.MessageExchange exchange,
org.drools.WorkingMemory memory) |
| Modifier and Type | Method and Description |
|---|---|
void |
answer(javax.xml.transform.Source content)
Answer the exchange with the given response content
|
void |
answer(java.lang.String content) |
void |
fault(javax.xml.transform.Source content)
Send a JBI Error message (for InOnly) or JBI Fault message (for the other MEPs)
|
void |
fault(java.lang.String content) |
javax.jbi.messaging.DeliveryChannel |
getChannel() |
javax.jbi.component.ComponentContext |
getContext() |
DroolsEndpoint |
getEndpoint() |
Exchange |
getExchange() |
org.slf4j.Logger |
getLogger() |
boolean |
isExchangeHandled()
Has the MessageExchange been handled by the drools endpoint?
|
void |
route(java.lang.String uri)
Forwards the inbound message to the given target
|
void |
routeTo(javax.xml.transform.Source content,
java.lang.String uri)
Send a message to the uri
|
void |
routeTo(java.lang.String content,
java.lang.String uri) |
void |
routeToDefault(javax.xml.transform.Source content)
Send this content to the default routing URI (
DroolsEndpoint.getDefaultRouteURI() specified on the endpoint |
void |
routeToDefault(java.lang.String content) |
void |
update()
Update the
MessageExchange information in the rule engine's WorkingMemory |
public JbiHelper(DroolsEndpoint endpoint, javax.jbi.messaging.MessageExchange exchange, org.drools.WorkingMemory memory)
public DroolsEndpoint getEndpoint()
public javax.jbi.component.ComponentContext getContext()
public javax.jbi.messaging.DeliveryChannel getChannel()
throws javax.jbi.messaging.MessagingException
javax.jbi.messaging.MessagingExceptionpublic Exchange getExchange()
public org.slf4j.Logger getLogger()
public void route(java.lang.String uri)
throws javax.jbi.messaging.MessagingException
uri - javax.jbi.messaging.MessagingExceptionpublic void routeTo(java.lang.String content,
java.lang.String uri)
throws javax.jbi.messaging.MessagingException
javax.jbi.messaging.MessagingExceptionrouteTo(Source, String)public void routeTo(javax.xml.transform.Source content,
java.lang.String uri)
throws javax.jbi.messaging.MessagingException
content - the message contenturi - the target endpoint's urijavax.jbi.messaging.MessagingExceptionpublic void routeToDefault(java.lang.String content)
throws javax.jbi.messaging.MessagingException
javax.jbi.messaging.MessagingExceptionrouteToDefault(Source)public void routeToDefault(javax.xml.transform.Source content)
throws javax.jbi.messaging.MessagingException
DroolsEndpoint.getDefaultRouteURI() specified on the endpointcontent - the message bodyjavax.jbi.messaging.MessagingExceptionpublic void fault(java.lang.String content)
throws java.lang.Exception
java.lang.Exceptionfault(Source)public void fault(javax.xml.transform.Source content)
throws java.lang.Exception
content - the error contentjava.lang.Exceptionpublic void answer(java.lang.String content)
throws java.lang.Exception
java.lang.Exceptionanswer(Source)public void answer(javax.xml.transform.Source content)
throws java.lang.Exception
content - the responsejava.lang.Exceptionpublic void update()
MessageExchange information in the rule engine's WorkingMemorypublic boolean isExchangeHandled()
Copyright © 2005-2016 FuseSource. All Rights Reserved.