|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.servicemix.common.endpoints.AbstractEndpoint
org.apache.servicemix.common.endpoints.SimpleEndpoint
org.apache.servicemix.common.endpoints.ProviderEndpoint
org.apache.servicemix.osworkflow.OSWorkflowEndpoint
public class OSWorkflowEndpoint
| Field Summary |
|---|
| Fields inherited from class org.apache.servicemix.common.endpoints.SimpleEndpoint |
|---|
logger |
| Fields inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint |
|---|
definition, description, endpoint, interfaceName, service, serviceUnit |
| Constructor Summary | |
|---|---|
OSWorkflowEndpoint()
|
|
| Method Summary | |
|---|---|
void |
done(javax.jbi.messaging.MessageExchange ex)
sends a done to the channel |
void |
fail(javax.jbi.messaging.MessageExchange ex)
sends a error to the channel |
int |
getAction()
|
java.lang.String |
getCaller()
|
javax.jbi.messaging.MessageExchange |
getNewExchange(javax.xml.namespace.QName qname,
boolean inOut)
creates a msg object |
java.lang.String |
getWorkflowName()
|
protected void |
onConsumerExchange(javax.jbi.messaging.MessageExchange exchange)
handles the incoming consumer messages |
protected void |
onProviderExchange(javax.jbi.messaging.MessageExchange exchange)
handles the incoming provider messages |
void |
postWorkflow()
cleanup action |
void |
preWorkflow()
init actions |
void |
process(javax.jbi.messaging.MessageExchange exchange)
|
void |
send(javax.jbi.messaging.MessageExchange ex,
boolean sync)
sends a msg to the channel |
boolean |
sendMessage(javax.xml.namespace.QName service,
javax.xml.transform.Source source)
sends the given DOMSource as message to the given service (inOnly) |
javax.jbi.messaging.MessageExchange |
sendRawInOutRequest(javax.xml.namespace.QName service,
javax.xml.transform.Source source)
sends the given DOMSource as message to the given service (inOut) |
javax.xml.transform.Source |
sendRequest(javax.xml.namespace.QName service,
javax.xml.transform.Source source)
sends the given DOMSource as message to the given service (inOut) |
void |
setAction(int action)
The initial action to trigger in the workflow. |
void |
setCaller(java.lang.String caller)
The caller user name to be used when executing the workflow. |
void |
setWorkflowName(java.lang.String workflowName)
The name of the workflow to be used for handling the exchange. |
void |
start()
|
void |
stop()
|
| Methods inherited from class org.apache.servicemix.common.endpoints.ProviderEndpoint |
|---|
activate, deactivate, getRole, processInOnly, processInOut |
| Methods inherited from class org.apache.servicemix.common.endpoints.SimpleEndpoint |
|---|
fail, getChannel, getContext, getExchangeFactory, send, sendSync |
| Methods inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint |
|---|
getDefinition, getDescription, getEndpoint, getInterfaceName, getKey, getService, getServiceUnit, isExchangeOkay, prepareExchange, setDefinition, setDescription, setEndpoint, setInterfaceName, setService, setServiceUnit, toString, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OSWorkflowEndpoint()
| Method Detail |
|---|
public void start()
throws java.lang.Exception
start in interface Endpointstart in class SimpleEndpointjava.lang.Exception
public void stop()
throws java.lang.Exception
stop in interface Endpointstop in class SimpleEndpointjava.lang.Exception
public void process(javax.jbi.messaging.MessageExchange exchange)
throws java.lang.Exception
process in interface Endpointprocess in class ProviderEndpointjava.lang.Exception
protected void onConsumerExchange(javax.jbi.messaging.MessageExchange exchange)
throws javax.jbi.messaging.MessagingException
exchange -
javax.jbi.messaging.MessagingException
protected void onProviderExchange(javax.jbi.messaging.MessageExchange exchange)
throws javax.jbi.messaging.MessagingException
exchange -
javax.jbi.messaging.MessagingException
public boolean sendMessage(javax.xml.namespace.QName service,
javax.xml.transform.Source source)
throws javax.jbi.messaging.MessagingException
service - the service name to send the message tosource - the source to put in the in message content
javax.jbi.messaging.MessagingException - on any messaging exception
public javax.xml.transform.Source sendRequest(javax.xml.namespace.QName service,
javax.xml.transform.Source source)
throws javax.jbi.messaging.MessagingException
service - the service name to send the message tosource - the source to put in the in message content
javax.jbi.messaging.MessagingException - on any messaging exception
public javax.jbi.messaging.MessageExchange sendRawInOutRequest(javax.xml.namespace.QName service,
javax.xml.transform.Source source)
throws javax.jbi.messaging.MessagingException
service - the service name to send the message tosource - the source to put in the in message content
javax.jbi.messaging.MessagingException - on any messaging exception
public javax.jbi.messaging.MessageExchange getNewExchange(javax.xml.namespace.QName qname,
boolean inOut)
throws javax.jbi.messaging.MessagingException
qname - the service which will be the receiverinOut - should it be inOut or InOnly
javax.jbi.messaging.MessagingException
public void done(javax.jbi.messaging.MessageExchange ex)
throws javax.jbi.messaging.MessagingException
done in class SimpleEndpointex -
javax.jbi.messaging.MessagingException
public void send(javax.jbi.messaging.MessageExchange ex,
boolean sync)
throws javax.jbi.messaging.MessagingException
ex - sync -
javax.jbi.messaging.MessagingException
public void fail(javax.jbi.messaging.MessageExchange ex)
throws javax.jbi.messaging.MessagingException
ex -
javax.jbi.messaging.MessagingExceptionpublic java.lang.String getWorkflowName()
public void setWorkflowName(java.lang.String workflowName)
workflowName - the workflowName to setpublic java.lang.String getCaller()
public void setCaller(java.lang.String caller)
caller - the caller to setpublic int getAction()
public void setAction(int action)
action - the action to setpublic void preWorkflow()
public void postWorkflow()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||