|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object it.imolinfo.jbi4corba.webservice.runtime.ConsumerInvocationHandler
public class ConsumerInvocationHandler
This class is used at runtime to create the MessageExchange and sending the message on the bus.
Field Summary | |
---|---|
static URI |
IN_ONLY
A kind of MEP. |
static URI |
IN_OUT
A kind of MEP. |
static URI |
ROBUST_IN_ONLY
A kind of MEP. |
Constructor Summary | |
---|---|
ConsumerInvocationHandler(ConsumerServiceDescriptor sd)
Constructor. |
Method Summary | |
---|---|
protected javax.jbi.messaging.InOnly |
createInOnlyExchange()
Creates the InOnly exchange. |
protected javax.jbi.messaging.InOut |
createInOutExchange()
Creates the InOut Exchange. |
protected Object |
exchangeInOnly(org.apache.cxf.message.Exchange cxfExchange,
QName operation,
OutputStream xmlResult)
This method implements the 'InOnly' Message Exchange MEP. |
protected Object |
exchangeInOut(org.apache.cxf.message.Exchange cxfExchange,
QName operation,
Method method,
OutputStream xmlResult)
This method implements the 'InOut' Message Exchange MEP. |
protected Object |
exchangeStatusACTIVE(javax.jbi.messaging.InOut jbiExchange,
Method method)
Exchange status active. |
Object |
invoke(Object proxy,
Method method,
Object[] args)
|
protected boolean |
isAsynch(QName portType,
QName operation)
This method is used to discover an asynchronous operation. |
void |
process(javax.jbi.messaging.MessageExchange exchange)
This method is called by the ESB after the message is sent. |
protected void |
processInOnly(javax.jbi.messaging.MessageExchange exchange)
This method is called during the ExchanProcessor when the MEP is InOnly. |
protected void |
processInOut(javax.jbi.messaging.MessageExchange exchange)
This method is called during the ExchanProcessor when the MEP is InOut. |
protected void |
sendASynch(javax.jbi.messaging.InOnly jbiExchange)
This method is used to send asynchronously a MessageExchange. |
protected boolean |
sendSynch(javax.jbi.messaging.InOut jbiExchange)
This method is used to send synchronously a MessageExchange. |
protected void |
setJbiExchangeToDONE(javax.jbi.messaging.MessageExchange jbiExchange)
This method is used to set the status of the JbiExchange to DONE. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final URI IN_ONLY
public static final URI IN_OUT
public static final URI ROBUST_IN_ONLY
Constructor Detail |
---|
public ConsumerInvocationHandler(ConsumerServiceDescriptor sd) throws ServiceCreationException
sd
- The service descriptor used inside the class.
ServiceCreationException
- The service creation exceptionMethod Detail |
---|
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke
in interface InvocationHandler
proxy
- The proxymethod
- The methodargs
- The args
Throwable
- This method should be raise only 2 kind of exception: -
Jbi4CorbaRuntimeException; - Jbi4CorbaException. The last one
is used to wrap a soap fault and the first one to wrap all
the other errors. To avoid classpath problems, the runtime
exception set the message exception with the original message
exception but doesn't include the original exception itself.protected Object exchangeInOnly(org.apache.cxf.message.Exchange cxfExchange, QName operation, OutputStream xmlResult) throws Jbi4CorbaRuntimeException
executionContext
- op
- nodeResult
-
it.imolinfo.jbi4corba.jbi.processor.wsdl11wrapper.WrapperProcessingException
TransformerException
javax.jbi.messaging.MessagingException
ParserConfigurationException
IOException
SAXException
Jbi4CorbaRuntimeException
protected Object exchangeInOut(org.apache.cxf.message.Exchange cxfExchange, QName operation, Method method, OutputStream xmlResult) throws Jbi4CorbaRuntimeException
executionContext
- op
- nodeResult
-
it.imolinfo.jbi4corba.jbi.processor.wsdl11wrapper.WrapperProcessingException
TransformerException
javax.jbi.messaging.MessagingException
ParserConfigurationException
IOException
SAXException
Jbi4CorbaRuntimeException
protected void setJbiExchangeToDONE(javax.jbi.messaging.MessageExchange jbiExchange) throws Jbi4CorbaRuntimeException
jbiExchange
- The ME.
Jbi4CorbaRuntimeException
- If is impossible set up the status.protected Object exchangeStatusACTIVE(javax.jbi.messaging.InOut jbiExchange, Method method) throws javax.jbi.messaging.MessagingException, TransformerException, ParserConfigurationException, IOException, SAXException, com.sun.jbi.nms.wsdl11wrapper.WrapperProcessingException
jbiExchange
-
Throwable
if error)
javax.jbi.messaging.MessagingException
TransformerException
ParserConfigurationException
IOException
SAXException
com.sun.jbi.nms.wsdl11wrapper.WrapperProcessingException
protected void sendASynch(javax.jbi.messaging.InOnly jbiExchange) throws javax.jbi.messaging.MessagingException
jbiExchange
- The message to send.
javax.jbi.messaging.MessagingException
protected boolean sendSynch(javax.jbi.messaging.InOut jbiExchange) throws javax.jbi.messaging.MessagingException
jbiExchange
- The message to send.
javax.jbi.messaging.MessagingException
protected boolean isAsynch(QName portType, QName operation)
portType
- The QName of the PortType.operationName
- The name of the operation controlled.
protected javax.jbi.messaging.InOut createInOutExchange()
protected javax.jbi.messaging.InOnly createInOnlyExchange()
public void process(javax.jbi.messaging.MessageExchange exchange) throws Exception
exchange
- The message exchange
Exception
- The exceptionConsumerExchangeProcessor.
protected void processInOnly(javax.jbi.messaging.MessageExchange exchange) throws Jbi4CorbaException
exchange
- The MessageExchange.
Jbi4CorbaException
- If the ExchangeStatus is 'Active'.protected void processInOut(javax.jbi.messaging.MessageExchange exchange) throws Jbi4CorbaException
exchange
- The MessageExchange.
Jbi4CorbaException
- Always, because this MEP shoud not call the process.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |