public CalloutMediatorSerializationTest() { super(CalloutMediatorSerializationTest.class.getName()); calloutMediatorFactory = new CalloutMediatorFactory(); calloutMediatorSerializer = new CalloutMediatorSerializer(); }
processAuditStatus(callout, elem); callout.setInitClientOptions(false); } else { handleException("The 'initAxis2ClientOptions' attribute only accepts a boolean value."); callout.setAxis2xml(axis2xmlAttr.getAttributeValue()); } else { handleException("Invalid axis2.xml path: " + axis2xmlAttr.getAttributeValue()); callout.setClientRepository(repoAttr.getAttributeValue()); } else { handleException("Invalid repository path: " + repoAttr.getAttributeValue()); SynapseXPathFactory.getSynapseXPath(sourceElt, ATT_XPATH)); } catch (JaxenException e) { handleException("Invalid source XPath : " + sourceElt.getAttributeValue(ATT_XPATH)); callout.setRequestKey(sourceElt.getAttributeValue(ATT_KEY)); } else { handleException("A 'xpath' or 'key' attribute " + "is required for the Callout 'source'"); SynapseXPathFactory.getSynapseXPath(targetElt, ATT_XPATH)); } catch (JaxenException e) { handleException("Invalid target XPath : " + targetElt.getAttributeValue(ATT_XPATH));
callout.setEndpoint(endpoint); } else { handleException("Callout mediator only supports leaf endpoints"); callout.setAxis2xml(axis2xmlAttr.getAttributeValue()); } else { handleException("Invalid axis2.xml path: " + axis2xmlAttr.getAttributeValue()); callout.setClientRepository(repoAttr.getAttributeValue()); } else { handleException("Invalid repository path: " + repoAttr.getAttributeValue()); SynapseXPathFactory.getSynapseXPath(sourceElt, ATT_XPATH)); } catch (JaxenException e) { handleException("Invalid source XPath : " + sourceElt.getAttributeValue(ATT_XPATH)); callout.setRequestKey(sourceElt.getAttributeValue(ATT_KEY)); } else { handleException("A 'xpath' or 'key' attribute " + "is required for the Callout 'source'"); SynapseXPathFactory.getSynapseXPath(targetElt, ATT_XPATH)); } catch (JaxenException e) { handleException("Invalid target XPath : " + targetElt.getAttributeValue(ATT_XPATH)); callout.setTargetKey(targetElt.getAttributeValue(ATT_KEY)); } else {