Class QuerystringParserRegistry
java.lang.Object
io.github.grumpystuff.grumpyjson.registry.Sealable
io.github.grumpystuff.grumpyjson.registry.Registry<Type,QuerystringParser>
io.github.grumpystuff.grumpyrest.request.querystring.QuerystringParserRegistry
A registry for
QuerystringParser objects. Usually all parsers in this registry are auto-generated, so the
registry only serves as a cache to avoid duplicate work.
This registry keep a reference to the FromStringParserRegistry to parse individual fields (applies to
auto-generated parsers only).
-
Constructor Summary
ConstructorsConstructorDescriptionQuerystringParserRegistry(FromStringParserRegistry fromStringParserRegistry) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected QuerystringParsergenerateRegistrable(Type type) protected Stringprotected booleanregistrableSupports(QuerystringParser registrable, Type key) Methods inherited from class io.github.grumpystuff.grumpyjson.registry.Registry
clear, get, onSeal, register, supportsMethods inherited from class io.github.grumpystuff.grumpyjson.registry.Sealable
ensureConfigurationPhase, ensureRunTimePhase, seal
-
Constructor Details
-
QuerystringParserRegistry
Constructor. The new instance initially contains no parsers.- Parameters:
fromStringParserRegistry- the from-string parser registry that is used to refer to parsers for the individual fields. Note: Sealing thisQuerystringParserRegistrydoes not automatically seal theFromStringParserRegistry.
-
-
Method Details
-
getErrorMessageForUnknownKey
- Specified by:
getErrorMessageForUnknownKeyin classRegistry<Type,QuerystringParser>
-
registrableSupports
- Specified by:
registrableSupportsin classRegistry<Type,QuerystringParser>
-
generateRegistrable
- Specified by:
generateRegistrablein classRegistry<Type,QuerystringParser>
-