Module org.github.gestalt.core
Class Base64DecoderTransformer
- java.lang.Object
-
- org.github.gestalt.config.post.process.transform.Base64DecoderTransformer
-
- All Implemented Interfaces:
Transformer
public final class Base64DecoderTransformer extends java.lang.Object implements Transformer
Allows you to decode a base 64 encoded string.
-
-
Constructor Summary
Constructors Constructor Description Base64DecoderTransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringname()the name that will match the ${name:key} the transform is selected that matches the same name.GResultOf<java.lang.String>process(java.lang.String path, java.lang.String key, java.lang.String rawValue)When a match is found for ${name:key} the key and the path are passed into the process method.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.github.gestalt.config.post.process.transform.Transformer
applyConfig
-
-
-
-
Method Detail
-
name
public java.lang.String name()
Description copied from interface:Transformerthe name that will match the ${name:key} the transform is selected that matches the same name.- Specified by:
namein interfaceTransformer- Returns:
- the name of the transform
-
process
public GResultOf<java.lang.String> process(java.lang.String path, java.lang.String key, java.lang.String rawValue)
Description copied from interface:TransformerWhen a match is found for ${name:key} the key and the path are passed into the process method. The returned value replaces the whole ${name:key}- Specified by:
processin interfaceTransformer- Parameters:
path- the current pathkey- the key to lookup int this transform.rawValue- the whole raw value of the current string to transform.- Returns:
- the value to replace the ${name:key}
-
-