@Test public void testDoService_UsingXpathQuery() throws Exception { AdaptrisMessage msg = AdaptrisMessageFactory.getDefaultInstance().newMessage(XML); XpathObjectMetadataService service = new XpathObjectMetadataService(); service.setXpathQueries(new ArrayList<XpathObjectQuery>(Arrays.asList(new ConfiguredXpathNodeQuery("source", " new ConfiguredXpathNodeQuery("destination", " execute(service, msg); assertFalse(msg.containsKey("source")); assertFalse(msg.containsKey("destination")); assertTrue(msg.getObjectHeaders().containsKey("source")); assertTrue(msg.getObjectHeaders().containsKey("destination")); }
public void setXpathQueries(List<XpathObjectQuery> xql) { xpathQueries = Args.notNull(xql, "xpathQueries"); }
XpathObjectMetadataService extends ServiceImp { public void setXpathQueries(List<XpathObjectQuery> xql) { xpathQueries = Args.notNull(xql, "xpathQueries"); } }
XpathObjectMetadataService extends ServiceImp { public void setXpathQueries(List<XpathObjectQuery> xql) { xpathQueries = Args.notNull(xql, "xpathQueries"); } XpathObjectMetadataService(); }
XpathObjectMetadataService extends ServiceImp { public void setXpathQueries(List<XpathObjectQuery> xql) { xpathQueries = Args.notNull(xql, "xpathQueries"); } XpathObjectMetadataService(); @Override void doService(AdaptrisMessage msg); KeyValuePairSet getNamespaceContext(); void setNamespaceContext(KeyValuePairSet namespaceContext); List<XpathObjectQuery> getXpathQueries(); void setXpathQueries(List<XpathObjectQuery> xql); void addXpathQuery(XpathQuery query); @Override void prepare(); DocumentBuilderFactoryBuilder getXmlDocumentFactoryConfig(); void setXmlDocumentFactoryConfig(DocumentBuilderFactoryBuilder xml); }
XpathObjectMetadataService extends ServiceImp { public void setXpathQueries(List<XpathObjectQuery> xql) { xpathQueries = Args.notNull(xql, "xpathQueries"); } XpathObjectMetadataService(); @Override void doService(AdaptrisMessage msg); KeyValuePairSet getNamespaceContext(); void setNamespaceContext(KeyValuePairSet namespaceContext); List<XpathObjectQuery> getXpathQueries(); void setXpathQueries(List<XpathObjectQuery> xql); void addXpathQuery(XpathQuery query); @Override void prepare(); DocumentBuilderFactoryBuilder getXmlDocumentFactoryConfig(); void setXmlDocumentFactoryConfig(DocumentBuilderFactoryBuilder xml);  }