Search in sources :

Example 31 with RegexMetadataFilter

use of com.adaptris.core.metadata.RegexMetadataFilter in project interlok by adaptris.

the class MetadataKeyCaseChanger method retrieveObjectForSampleConfig.

@Override
protected Object retrieveObjectForSampleConfig() {
    ReformatMetadataKey service = createService();
    RegexMetadataFilter filter = new RegexMetadataFilter();
    filter.addIncludePattern("^.*MetadataKeyRegularExpression.*");
    filter.addIncludePattern("^.*AnotherPattern.*");
    filter.addExcludePattern("^.*SomeExclusions.*");
    service.setKeysToModify(filter);
    return service;
}
Also used : RegexMetadataFilter(com.adaptris.core.metadata.RegexMetadataFilter)

Example 32 with RegexMetadataFilter

use of com.adaptris.core.metadata.RegexMetadataFilter in project interlok by adaptris.

the class MetadataKeyToLowerCaseTest method createService.

@Override
protected MetadataKeyToLowerCase createService() {
    MetadataKeyToLowerCase service = new MetadataKeyToLowerCase();
    RegexMetadataFilter filter = new RegexMetadataFilter();
    filter.addIncludePattern(KEY_MATCH);
    service.setKeysToModify(filter);
    return service;
}
Also used : RegexMetadataFilter(com.adaptris.core.metadata.RegexMetadataFilter)

Example 33 with RegexMetadataFilter

use of com.adaptris.core.metadata.RegexMetadataFilter in project interlok by adaptris.

the class MetadataKeyToUpperCaseTest method createService.

@Override
protected MetadataKeyToUpperCase createService() {
    MetadataKeyToUpperCase service = new MetadataKeyToUpperCase();
    RegexMetadataFilter filter = new RegexMetadataFilter();
    filter.addIncludePattern(KEY_MATCH);
    service.setKeysToModify(filter);
    return service;
}
Also used : RegexMetadataFilter(com.adaptris.core.metadata.RegexMetadataFilter)

Aggregations

RegexMetadataFilter (com.adaptris.core.metadata.RegexMetadataFilter)33 Test (org.junit.Test)25 AdaptrisMessage (com.adaptris.core.AdaptrisMessage)19 Channel (com.adaptris.core.Channel)8 MockMessageProducer (com.adaptris.core.stubs.MockMessageProducer)5 Session (javax.jms.Session)5 StandaloneProducer (com.adaptris.core.StandaloneProducer)4 JettyHelper.createChannel (com.adaptris.core.http.jetty.JettyHelper.createChannel)4 Message (javax.jms.Message)4 MetadataElement (com.adaptris.core.MetadataElement)3 MessageTypeTranslatorImp (com.adaptris.core.jms.MessageTypeTranslatorImp)3 HttpURLConnection (java.net.HttpURLConnection)3 URL (java.net.URL)3 DefaultMessageFactory (com.adaptris.core.DefaultMessageFactory)2 ServiceList (com.adaptris.core.ServiceList)2 StandaloneRequestor (com.adaptris.core.StandaloneRequestor)2 HttpConsumerTest (com.adaptris.core.http.jetty.HttpConsumerTest)2 AddMetadataService (com.adaptris.core.services.metadata.AddMetadataService)2 KeyValuePair (com.adaptris.util.KeyValuePair)2 CoreException (com.adaptris.core.CoreException)1