| Interface | Description |
|---|---|
| KeyValueHandler |
KeyValueHandler is a trait for a callback with a key and a value.
|
| KeyValueParser |
The KeyValueParser trait describes a parser that takes a String and a Seq[KeyValueHandler],
and calls each handler for each key/value pair encountered in the parsed String
|
| Transformer |
The Transformer trait describes the transformation function
from a string to a derived string
|
| Class | Description |
|---|---|
| KeyValueHandler.DuplicateKeyValueHandler |
DuplicateKeyValueHandler produces a List[(String, String)] of key
value pairs, allowing duplicate values for keys.
|
| KeyValueHandler.KeyTransformingKeyValueHandler |
KeyTransformingKeyValueHandler applies a Transformer to the key
before passing the key value pair to the underlying KeyValueHandler
|
| KeyValueHandler.MaybeQuotedValueKeyValueHandler | |
| KeyValueHandler.NullKeyValueHandler | |
| KeyValueHandler.OneKeyOnlyKeyValueHandler |
key is set iff the handler was invoked exactly once with an empty value
Note: this class is not thead safe
|
| KeyValueHandler.PrintlnKeyValueHandler |
PrintlnKeyValueHandler is very nice for debugging!
Pass it in to the Unpacker to see what's going on.
|
| 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
|
| KeyValueHandler.TransformingKeyValueHandler |
TransformingKeyValueHandler applies the Transformers to
their respective key and value before passing along to the
underlying KeyValueHandler
|
| KeyValueHandler.TrimmingKeyValueHandler |
TrimmingKeyValueHandler trims the key and value before
passing them to the underlying KeyValueHandler
|
| KeyValueHandler.UrlEncodingNormalizingKeyValueHandler |
UrlEncodingNormalizingKeyValueHandler normalizes URLEncoded
keys and values, to properly capitalize them
|
| KeyValueHandler.ValueTransformingKeyValueHandler |
ValueTransformingKeyValueHandler applies a Transformer to the value
before passing the key value pair to the underlying KeyValueHandler
|
| KeyValueParser.ConstKeyValueParser |
For testing.
|
| KeyValueParser.StandardKeyValueParser |
StandardKeyValueParser is a KeyValueParser that splits a string on a delimiter,
and then splits each pair with the kvDelimiter.
|
| Transformer.TrimTransformer |
The TrimTransformer trims the string
|
| Transformer.UrlEncodingNormalizingTransformer |
The UrlEncodingNormalizingTransformer capitializes all of the
URLEncoded entities in a string, replaces +'s with %20s, and
un-encodes dashes and underscores.
|
Copyright © 2019. All Rights Reserved.