public interface KeyValueHandler
| Modifier and Type | Interface and Description |
|---|---|
static class |
KeyValueHandler.DuplicateKeyValueHandler
DuplicateKeyValueHandler produces a List[(String, String)] of key
value pairs, allowing duplicate values for keys.
|
static class |
KeyValueHandler.KeyTransformingKeyValueHandler
KeyTransformingKeyValueHandler applies a Transformer to the key
before passing the key value pair to the underlying KeyValueHandler
|
static class |
KeyValueHandler.MaybeQuotedValueKeyValueHandler |
static class |
KeyValueHandler.NullKeyValueHandler |
static class |
KeyValueHandler.OneKeyOnlyKeyValueHandler
key is set iff the handler was invoked exactly once with an empty value
Note: this class is not thead safe
|
static class |
KeyValueHandler.PrintlnKeyValueHandler
PrintlnKeyValueHandler is very nice for debugging!
Pass it in to the Unpacker to see what's going on.
|
static class |
KeyValueHandler.SingleKeyValueHandler
SingleKeyValueHandler produces either a List[(String, String)]
or a Map[String, String] of key/value pairs, and will override
duplicate values for keys, using the last value encountered
|
static class |
KeyValueHandler.TransformingKeyValueHandler
TransformingKeyValueHandler applies the Transformers to
their respective key and value before passing along to the
underlying KeyValueHandler
|
static class |
KeyValueHandler.TrimmingKeyValueHandler
TrimmingKeyValueHandler trims the key and value before
passing them to the underlying KeyValueHandler
|
static class |
KeyValueHandler.UrlEncodingNormalizingKeyValueHandler
UrlEncodingNormalizingKeyValueHandler normalizes URLEncoded
keys and values, to properly capitalize them
|
static class |
KeyValueHandler.ValueTransformingKeyValueHandler
ValueTransformingKeyValueHandler applies a Transformer to the value
before passing the key value pair to the underlying KeyValueHandler
|
| Modifier and Type | Field and Description |
|---|---|
static KeyValueHandler |
NULL_KEY_VALUE_HANDLER |
| Modifier and Type | Method and Description |
|---|---|
void |
handle(java.lang.String key,
java.lang.String value) |
static final KeyValueHandler NULL_KEY_VALUE_HANDLER
Copyright © 2019. All Rights Reserved.