public void invokeAsyncRequest(Message msg) throws Throwable { try{ msg = processRequest(msg); InvokerAsyncRequest theNext = (InvokerAsyncRequest)getNext(); if( theNext != null ) theNext.invokeAsyncRequest(msg); postProcessRequest(msg); } catch (Throwable e) { postProcessRequest(msg, e); } // end try } // end method invokeAsyncRequest
public Message invoke(Message msg) { msg = processRequest(msg); Message resultMsg = getNext().invoke(msg); resultMsg = processResponse(resultMsg); return resultMsg; }
public void invokeAsyncResponse(Message msg) { msg = processResponse(msg); InvokerAsyncResponse thePrevious = (InvokerAsyncResponse)getPrevious(); if (thePrevious != null ) thePrevious.invokeAsyncResponse(msg); } // end method invokeAsyncResponse