@Deprecated public class JsonApiQueryParamsParser extends DefaultQueryParamsParser
QueryParamsParser
implementation which adheres to the JSON-API
standard more strictly than the DefaultQueryParamsParser, at the expense of
having less flexibility.Constructor and Description |
---|
JsonApiQueryParamsParser()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<java.lang.String,java.util.Set<java.lang.String>> |
filterQueryParamsByKey(QueryParamsParserContext context,
java.lang.String queryKey)
Deprecated.
Filters provided query params to one starting with provided string key.
|
protected TypedParams<IncludedRelationsParams> |
parseIncludedRelationsParameters(QueryParamsParserContext context)
Deprecated.
Important! Crnk implementation differs form JSON API
definition of includes
in order to fit standard query legacy serializing strategy and maximize effective processing of data.
|
protected TypedParams<SortingParams> |
parseSortingParameters(QueryParamsParserContext context)
Deprecated.
Important! Crnk implementation differs form JSON API
definition of sorting
in order to fit standard query legacy serializing strategy and maximize effective processing of data.
|
buildPropertyListFromEntry, parse, parseFiltersParameters, parseGroupingParameters, parseIncludedFieldsParameters, parsePaginationParameters
protected TypedParams<SortingParams> parseSortingParameters(QueryParamsParserContext context)
DefaultQueryParamsParser
Sort params can be send with following format:
sort[ResourceType][property]([property])* = "asc|desc"
Examples of accepted sorting of resources:
GET /tasks/?sort[tasks][name]=asc
GET /project/?sort[projects][shortName]=desc&sort[users][name][firstName]=asc
parseSortingParameters
in class DefaultQueryParamsParser
context
- Don't know, didn't write the codeTypedParams
Map of sorting params passed to request grouped by type of documentprotected TypedParams<IncludedRelationsParams> parseIncludedRelationsParameters(QueryParamsParserContext context)
DefaultQueryParamsParser
Included field set params can be send with following format:
include[ResourceType] = "property(.property)*"
Examples of accepted sparse field sets of resources:
GET /tasks/?include[tasks]=author
GET /tasks/?include[tasks][]=author&include[tasks][]=comments
GET /projects/?include[projects]=task&include[tasks]=comments
parseIncludedRelationsParameters
in class DefaultQueryParamsParser
context
- Don't know, didn't write the codeTypedParams
Map of sparse field set params passed to a request grouped by type of documentprotected java.util.Map<java.lang.String,java.util.Set<java.lang.String>> filterQueryParamsByKey(QueryParamsParserContext context, java.lang.String queryKey)
filterQueryParamsByKey
in class DefaultQueryParamsParser
context
- used to inspect the parameters of the current requestqueryKey
- Filtering key