Package com.netflix.discovery.converters
Class KeyFormatter
- java.lang.Object
-
- com.netflix.discovery.converters.KeyFormatter
-
@Singleton public class KeyFormatter extends java.lang.ObjectDue to backwards compatibility some names in JSON/XML documents have to be formatted according to a given configuration rules. The formatting functionality is provided by this class.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_REPLACEMENT
-
Constructor Summary
Constructors Constructor Description KeyFormatter(EurekaClientConfig eurekaClientConfig)KeyFormatter(java.lang.String replacement)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KeyFormatterdefaultKeyFormatter()java.lang.StringformatKey(java.lang.String keyTemplate)
-
-
-
Field Detail
-
DEFAULT_REPLACEMENT
public static final java.lang.String DEFAULT_REPLACEMENT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
KeyFormatter
public KeyFormatter(java.lang.String replacement)
-
KeyFormatter
@Inject public KeyFormatter(EurekaClientConfig eurekaClientConfig)
-
-
Method Detail
-
formatKey
public java.lang.String formatKey(java.lang.String keyTemplate)
-
defaultKeyFormatter
public static KeyFormatter defaultKeyFormatter()
-
-