Class AbstractWebQueryResolver
java.lang.Object
in.co.akshitbansal.springwebquery.resolver.spring.AbstractWebQueryResolver
- All Implemented Interfaces:
org.springframework.web.method.support.HandlerMethodArgumentResolver
- Direct Known Subclasses:
AbstractWebQueryPageableArgumentResolver,AbstractWebQuerySpecificationArgumentResolver
public abstract class AbstractWebQueryResolver
extends Object
implements org.springframework.web.method.support.HandlerMethodArgumentResolver
Common base for
HandlerMethodArgumentResolver
implementations that participate in WebQuery-driven request parsing.
This class centralizes support detection for controller methods annotated
with WebQuery and computes the effective query configuration by
combining method-level annotation values with global defaults.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final booleanGlobal default applied whenWebQuery.allowAndOperator()is set toWebQuery.OperatorPolicy.GLOBAL.protected final booleanGlobal default applied whenWebQuery.allowOrOperator()is set toWebQuery.OperatorPolicy.GLOBAL.protected final intGlobal default applied whenWebQuery.maxASTDepth()is left at its sentinel value. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetQueryConfiguration(@NonNull WebQuery webQueryAnnotation) Resolves the effective query configuration by combining method-levelWebQuerysettings with the configured global fallbacks.booleansupportsParameter(@NonNull org.springframework.core.MethodParameter parameter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.web.method.support.HandlerMethodArgumentResolver
resolveArgument
-
Field Details
-
globalAllowAndOperator
protected final boolean globalAllowAndOperatorGlobal default applied whenWebQuery.allowAndOperator()is set toWebQuery.OperatorPolicy.GLOBAL. -
globalAllowOrOperator
protected final boolean globalAllowOrOperatorGlobal default applied whenWebQuery.allowOrOperator()is set toWebQuery.OperatorPolicy.GLOBAL. -
globalMaxASTDepth
protected final int globalMaxASTDepthGlobal default applied whenWebQuery.maxASTDepth()is left at its sentinel value.
-
-
Constructor Details
-
AbstractWebQueryResolver
public AbstractWebQueryResolver()
-
-
Method Details
-
supportsParameter
public boolean supportsParameter(@NonNull @NonNull org.springframework.core.MethodParameter parameter) - Specified by:
supportsParameterin interfaceorg.springframework.web.method.support.HandlerMethodArgumentResolver
-
getQueryConfiguration
protected AbstractWebQueryResolver.QueryConfiguration getQueryConfiguration(@NonNull @NonNull WebQuery webQueryAnnotation) Resolves the effective query configuration by combining method-levelWebQuerysettings with the configured global fallbacks.- Parameters:
webQueryAnnotation- controller method annotation supplying query settings- Returns:
- effective configuration used by specification resolvers for validation and parsing
-