@Test public void testOutputWrongMessageType() throws Exception { AdaptrisMessage m1 = MessageHelper.createMessage(PROPERTIES.getProperty(KEY_XML_TEST_INPUT)); MultiPayloadXmlTransformService service = new MultiPayloadXmlTransformService(); service.setUrl(PROPERTIES.getProperty(KEY_XML_TEST_TRANSFORM_URL)); service.setCacheTransforms(false); try { start(service); service.doService(m1); assertEquals(PROPERTIES.getProperty(KEY_XML_TEST_OUTPUT), m1.getContent()); } finally { stop(service); } }
@Override public void doService(AdaptrisMessage msg) throws ServiceException { if (msg instanceof MultiPayloadAdaptrisMessage) { this.doTransform((MultiPayloadAdaptrisMessage)msg, obtainUrlToUse(msg)); } else { super.doService(msg); } }
MultiPayloadXmlTransformService extends XmlTransformService { @Override public void doService(AdaptrisMessage msg) throws ServiceException { if (msg instanceof MultiPayloadAdaptrisMessage) { this.doTransform((MultiPayloadAdaptrisMessage)msg, obtainUrlToUse(msg)); } else { super.doService(msg); } } }
MultiPayloadXmlTransformService extends XmlTransformService { @Override public void doService(AdaptrisMessage msg) throws ServiceException { if (msg instanceof MultiPayloadAdaptrisMessage) { this.doTransform((MultiPayloadAdaptrisMessage)msg, obtainUrlToUse(msg)); } else { super.doService(msg); } } MultiPayloadXmlTransformService(); }
MultiPayloadXmlTransformService extends XmlTransformService { @Override public void doService(AdaptrisMessage msg) throws ServiceException { if (msg instanceof MultiPayloadAdaptrisMessage) { this.doTransform((MultiPayloadAdaptrisMessage)msg, obtainUrlToUse(msg)); } else { super.doService(msg); } } MultiPayloadXmlTransformService(); @Override void doService(AdaptrisMessage msg); String getSourcePayloadId(); void setSourcePayloadId(String sourcePayloadId); String getOutputPayloadId(); void setOutputPayloadId(String outputPayloadId); }
MultiPayloadXmlTransformService extends XmlTransformService { @Override public void doService(AdaptrisMessage msg) throws ServiceException { if (msg instanceof MultiPayloadAdaptrisMessage) { this.doTransform((MultiPayloadAdaptrisMessage)msg, obtainUrlToUse(msg)); } else { super.doService(msg); } } MultiPayloadXmlTransformService(); @Override void doService(AdaptrisMessage msg); String getSourcePayloadId(); void setSourcePayloadId(String sourcePayloadId); String getOutputPayloadId(); void setOutputPayloadId(String outputPayloadId);  }