Class MetadataResolver


  • public class MetadataResolver
    extends java.lang.Object

    This resolver allows you to specify a prefixed ($$) metadata key in configuration whose metadata value will be used as the actual metadata item key lookup.

    For example, if I have 3 metadata items, with the following key -- values;

    • key1 -- value1
    • key2 -- value2
    Resolving the key "key1" will simply return "key1". No resolution has to be made here.
    Resolving the key "$$key1" will return the value "value1". Because we prefixed the key with "$$" resolution does take place.

    This resolver is useful if you do not happen to know during configuration what metadata key you need to perform an action on. Instead this key can be looked up during runtime as the value of a known metadata key.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String resolveKey​(AdaptrisMessage message, java.lang.String key)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MetadataResolver

        public MetadataResolver()
    • Method Detail

      • resolveKey

        public static java.lang.String resolveKey​(AdaptrisMessage message,
                                                  java.lang.String key)