@Test public void testService_PasswordsAreDecoded() throws Exception { AdaptrisMessage msg = createMessage(); msg.addMessageHeader("passwordKey", Password.encode("password", Password.PORTABLE_PASSWORD)); MetadataFilterService service = new MetadataFilterService() .withFilter(new PasswordDecodeMetadataFilter().withPatterns("^.*password.*$")); execute(service, msg); assertTrue(msg.containsKey(JMS_KEY_1)); assertTrue(msg.containsKey(JMS_KEY_2)); assertTrue(msg.containsKey(JMS_KEY_3)); assertEquals("password", msg.getMetadataValue("passwordKey")); }
public MetadataFilterService withFilter(MetadataFilter mf) { setFilter(mf); return this; }
MetadataFilterService extends MetadataServiceImpl { public MetadataFilterService withFilter(MetadataFilter mf) { setFilter(mf); return this; } }
MetadataFilterService extends MetadataServiceImpl { public MetadataFilterService withFilter(MetadataFilter mf) { setFilter(mf); return this; } MetadataFilterService(); }
MetadataFilterService extends MetadataServiceImpl { public MetadataFilterService withFilter(MetadataFilter mf) { setFilter(mf); return this; } MetadataFilterService(); @Override void doService(AdaptrisMessage msg); MetadataFilter getFilter(); void setFilter(MetadataFilter mf); MetadataFilterService withFilter(MetadataFilter mf); }
MetadataFilterService extends MetadataServiceImpl { public MetadataFilterService withFilter(MetadataFilter mf) { setFilter(mf); return this; } MetadataFilterService(); @Override void doService(AdaptrisMessage msg); MetadataFilter getFilter(); void setFilter(MetadataFilter mf); MetadataFilterService withFilter(MetadataFilter mf);  }