Class FilterQueryStringParameterReader
- Namespace
- JsonApiDotNetCore.QueryStrings
- Assembly
- JsonApiDotNetCore.dll
Reads the 'filter' query string parameter and produces a set of query constraints from it.
[PublicAPI]
public class FilterQueryStringParameterReader : QueryStringParameterReader, IFilterQueryStringParameterReader, IQueryStringParameterReader, IQueryConstraintProvider
- Inheritance
-
FilterQueryStringParameterReader
- Implements
- Inherited Members
Constructors
FilterQueryStringParameterReader(IQueryStringParameterScopeParser, IFilterParser, IJsonApiRequest, IResourceGraph, IJsonApiOptions)
public FilterQueryStringParameterReader(IQueryStringParameterScopeParser scopeParser, IFilterParser filterParser, IJsonApiRequest request, IResourceGraph resourceGraph, IJsonApiOptions options)
Parameters
scopeParser
IQueryStringParameterScopeParserfilterParser
IFilterParserrequest
IJsonApiRequestresourceGraph
IResourceGraphoptions
IJsonApiOptions
Properties
AllowEmptyValue
Indicates whether this reader supports empty query string parameter values.
public bool AllowEmptyValue { get; }
Property Value
Methods
CanRead(string)
Indicates whether this reader can handle the specified query string parameter.
public virtual bool CanRead(string parameterName)
Parameters
parameterName
string
Returns
GetConstraints()
Returns a set of scoped expressions.
public virtual IReadOnlyCollection<ExpressionInScope> GetConstraints()
Returns
IsEnabled(DisableQueryStringAttribute)
Indicates whether usage of this query string parameter is blocked using DisableQueryStringAttribute on a controller.
public virtual bool IsEnabled(DisableQueryStringAttribute disableQueryStringAttribute)
Parameters
disableQueryStringAttribute
DisableQueryStringAttribute
Returns
Read(string, StringValues)
Reads the value of the query string parameter.
public virtual void Read(string parameterName, StringValues parameterValue)
Parameters
parameterName
stringparameterValue
StringValues