@Test public void testFilter() { ExcludeJmsHeaders filter = new ExcludeJmsHeaders(); AdaptrisMessage msg = addSomeMetadata(DefaultMessageFactory.getDefaultInstance().newMessage()); int origSize = msg.getMetadata().size(); MetadataCollection resultingCollection = filter.filter(msg); assertEquals(origSize - 2, resultingCollection.size()); }
@Override public MetadataCollection filter(MetadataCollection original) { return removeJmsHdrs((MetadataCollection) original.clone()); }
ExcludeJmsHeaders extends MetadataFilterImpl { @Override public MetadataCollection filter(MetadataCollection original) { return removeJmsHdrs((MetadataCollection) original.clone()); } }
ExcludeJmsHeaders extends MetadataFilterImpl { @Override public MetadataCollection filter(MetadataCollection original) { return removeJmsHdrs((MetadataCollection) original.clone()); } ExcludeJmsHeaders(); }
ExcludeJmsHeaders extends MetadataFilterImpl { @Override public MetadataCollection filter(MetadataCollection original) { return removeJmsHdrs((MetadataCollection) original.clone()); } ExcludeJmsHeaders(); @Override MetadataCollection filter(MetadataCollection original); }
ExcludeJmsHeaders extends MetadataFilterImpl { @Override public MetadataCollection filter(MetadataCollection original) { return removeJmsHdrs((MetadataCollection) original.clone()); } ExcludeJmsHeaders(); @Override MetadataCollection filter(MetadataCollection original); static final String JMS_HDR_PATTERN; }