@Test public void testIssue2641_NoOutputMessageEncoding() throws Exception { DefaultMessageFactory factory = new DefaultMessageFactory(); factory.setDefaultCharEncoding("ISO-8859-1"); AdaptrisMessage msg = MessageHelper.createMessage(factory, PROPERTIES.getProperty(KEY_ISSUE2641_INPUT)); Document srcXml = createDocument(msg.getPayload()); XPath srcXpath = new XPath(); String srcValue = srcXpath.selectSingleTextItem(srcXml, ISSUE2641_SRC_XPATH); assertEquals("ISO-8859-1", msg.getContentEncoding()); XmlTransformService service = new XmlTransformService(); service.setUrl(PROPERTIES.getProperty(KEY_ISSUE2641_TRANSFORM_URL)); execute(service, msg); assertEquals("ISO-8859-1", msg.getContentEncoding()); Document destXml = createDocument(msg.getPayload()); XPath destXpath = new XPath(); String destValue = destXpath.selectSingleTextItem(destXml, ISSUE2641_DEST_XPATH); log.debug("testIssue2641:: srcValue = [" + srcValue + "]"); log.debug("testIssue2641:: destValue = [" + destValue + "]"); assertEquals(srcValue, destValue); }
public void setUrl(String s) { if ("".equals(s)) { throw new IllegalArgumentException("null param"); } url = s; }
XmlTransformService extends ServiceImp { public void setUrl(String s) { if ("".equals(s)) { throw new IllegalArgumentException("null param"); } url = s; } }
XmlTransformService extends ServiceImp { public void setUrl(String s) { if ("".equals(s)) { throw new IllegalArgumentException("null param"); } url = s; } XmlTransformService(); }
XmlTransformService extends ServiceImp { public void setUrl(String s) { if ("".equals(s)) { throw new IllegalArgumentException("null param"); } url = s; } XmlTransformService(); @Override void doService(AdaptrisMessage msg); @Override void prepare(); String getUrl(); void setUrl(String s); String getMetadataKey(); void setMetadataKey(String s); Boolean getCacheTransforms(); void setCacheTransforms(Boolean b); Boolean getAllowOverride(); void setAllowOverride(Boolean b); String getOutputMessageEncoding(); void setOutputMessageEncoding(String s); XmlTransformerFactory getXmlTransformerFactory(); void setXmlTransformerFactory(XmlTransformerFactory xmlTransformerFactory); XmlTransformParameter getTransformParameter(); void setTransformParameter(XmlTransformParameter param); }
XmlTransformService extends ServiceImp { public void setUrl(String s) { if ("".equals(s)) { throw new IllegalArgumentException("null param"); } url = s; } XmlTransformService(); @Override void doService(AdaptrisMessage msg); @Override void prepare(); String getUrl(); void setUrl(String s); String getMetadataKey(); void setMetadataKey(String s); Boolean getCacheTransforms(); void setCacheTransforms(Boolean b); Boolean getAllowOverride(); void setAllowOverride(Boolean b); String getOutputMessageEncoding(); void setOutputMessageEncoding(String s); XmlTransformerFactory getXmlTransformerFactory(); void setXmlTransformerFactory(XmlTransformerFactory xmlTransformerFactory); XmlTransformParameter getTransformParameter(); void setTransformParameter(XmlTransformParameter param);  }