Class QuerystringToRecordParser
java.lang.Object
io.github.grumpystuff.grumpyrest.request.querystring.QuerystringToRecordParser
- All Implemented Interfaces:
QuerystringParser
This class implements an auto-generated record parser.
-
Method Summary
-
Method Details
-
supportsType
Description copied from interface:QuerystringParserChecks if this parser supports the specified type.- Specified by:
supportsTypein interfaceQuerystringParser- Parameters:
type- the type to check- Returns:
- true if supported, false if not
-
parse
public Object parse(Map<String, String> querystring, Type recordType) throws QuerystringParsingExceptionDescription copied from interface:QuerystringParserConverts the querystring to an application object.- Specified by:
parsein interfaceQuerystringParser- Parameters:
querystring- the querystring to convert, pre-parsed into key/value pairs by the servlet containerrecordType- the type to parse as- Returns:
- the parsed object
- Throws:
QuerystringParsingException- on parsing errors, such as wrongly formatted fields, unknown fields, missing fields or duplicate fields
-