|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.servicemix.drools.model.JbiHelper
public class JbiHelper
A helper class for use inside a rule to forward a message to an endpoint
| Constructor Summary | |
|---|---|
JbiHelper(DroolsEndpoint endpoint,
javax.jbi.messaging.MessageExchange exchange,
org.drools.WorkingMemory memory)
|
|
| Method Summary | |
|---|---|
void |
answer(Source content)
Answer the exchange with the given response content |
void |
answer(String content)
|
void |
fault(Source content)
Send a JBI Error message (for InOnly) or JBI Fault message (for the other MEPs) |
void |
fault(String content)
|
javax.jbi.messaging.DeliveryChannel |
getChannel()
|
javax.jbi.component.ComponentContext |
getContext()
|
DroolsEndpoint |
getEndpoint()
|
Exchange |
getExchange()
|
Log |
getLogger()
|
boolean |
isExchangeHandled()
Has the MessageExchange been handled by the drools endpoint? |
void |
route(String uri)
Forwards the inbound message to the given target |
void |
routeTo(Source content,
String uri)
Send a message to the uri |
void |
routeTo(String content,
String uri)
|
void |
routeToDefault(Source content)
Send this content to the default routing URI ( DroolsEndpoint.getDefaultRouteURI() specified on the endpoint |
void |
routeToDefault(String content)
|
void |
update()
Update the MessageExchange information in the rule engine's WorkingMemory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JbiHelper(DroolsEndpoint endpoint,
javax.jbi.messaging.MessageExchange exchange,
org.drools.WorkingMemory memory)
| Method Detail |
|---|
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 Log getLogger()
public void route(String uri)
throws javax.jbi.messaging.MessagingException
uri -
javax.jbi.messaging.MessagingException
public void routeTo(String content,
String uri)
throws javax.jbi.messaging.MessagingException
javax.jbi.messaging.MessagingExceptionrouteTo(Source, String)
public void routeTo(Source content,
String uri)
throws javax.jbi.messaging.MessagingException
content - the message contenturi - the target endpoint's uri
javax.jbi.messaging.MessagingException
public void routeToDefault(String content)
throws javax.jbi.messaging.MessagingException
javax.jbi.messaging.MessagingExceptionrouteToDefault(Source)
public void routeToDefault(Source content)
throws javax.jbi.messaging.MessagingException
DroolsEndpoint.getDefaultRouteURI() specified on the endpoint
content - the message body
javax.jbi.messaging.MessagingException
public void fault(String content)
throws Exception
Exceptionfault(Source)
public void fault(Source content)
throws Exception
content - the error content
Exception
public void answer(String content)
throws Exception
Exceptionanswer(Source)
public void answer(Source content)
throws Exception
content - the response
Exceptionpublic void update()
MessageExchange information in the rule engine's WorkingMemory
public boolean isExchangeHandled()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||