@Override public Object transformFault(Object body) { return mediator.copyFault(body, sourceOperation, targetOperation); }
@Override public Object transformFault(Object body) { return mediator.copyFault(body, sourceOperation, targetOperation); }
public Message invoke(Message msg) { if (chain.allowsPassByReference()) { return nextInvoker.invoke(msg); } msg.setBody(mediator.copyInput(msg.getBody(), operation)); Message resultMsg = nextInvoker.invoke(msg); if (!resultMsg.isFault() && operation.getOutputType() != null) { resultMsg.setBody(mediator.copyOutput(resultMsg.getBody(), operation)); } if (resultMsg.isFault()) { resultMsg.setFaultBody(mediator.copyFault(resultMsg.getBody(), operation)); } return resultMsg; }
public Message invoke(Message msg) { if (chain.allowsPassByReference()) { return nextInvoker.invoke(msg); } msg.setBody(mediator.copyInput(msg.getBody(), operation)); Message resultMsg = nextInvoker.invoke(msg); if (!resultMsg.isFault() && operation.getOutputType() != null) { resultMsg.setBody(mediator.copyOutput(resultMsg.getBody(), operation)); } if (resultMsg.isFault()) { resultMsg.setFaultBody(mediator.copyFault(resultMsg.getBody(), operation)); } return resultMsg; }