Class QueryableSettings.Builder
java.lang.Object
org.apache.juneau.rest.server.converter.QueryableSettings.Builder
- Enclosing class:
- QueryableSettings
Builder for
QueryableSettings.
Each setter records a value to be copied by QueryableSettings.applyTo(BeanQueryContext.Builder); the
values are validated by the context builder when applied.
-
Method Summary
Modifier and TypeMethodDescriptionallowRegex(boolean value) Enables or disables the$regexsearch operator.build()Builds the (immutable) settings.countPolicy(CountPolicy value) Sets which counts are computed.defaultLimit(int value) Sets the page size used when the request specifies no limit.maxExpressionDepth(int value) Sets the deepest allowed expression nesting.Sets the largest page size a request may ask for; larger limits are clamped to it.maxSearchClauses(int value) Sets the largest number of search clauses.maxSearchLength(int value) Sets the longest search, sort, view or opts string, in characters.maxSortKeys(int value) Sets the largest number of sort keys.regexTimeout(Duration value) Sets the time budget for all$regexmatching in one query.
-
Method Details
-
allowRegex
Enables or disables the$regexsearch operator.- Parameters:
value-true to allow$regex. Builder default istrue ; callallowRegex(false)to opt out.- Returns:
- This object.
-
regexTimeout
Sets the time budget for all$regexmatching in one query.- Parameters:
value- The budget. Must be positive.- Returns:
- This object.
-
countPolicy
Sets which counts are computed.- Parameters:
value- The policy. Must not benull .- Returns:
- This object.
-
defaultLimit
Sets the page size used when the request specifies no limit.- Parameters:
value- The default limit. Must be positive.- Returns:
- This object.
-
maxLimit
Sets the largest page size a request may ask for; larger limits are clamped to it.- Parameters:
value- The cap, ornull for no cap. Must be positive if set.- Returns:
- This object.
-
maxSearchClauses
Sets the largest number of search clauses.- Parameters:
value- The cap. Must be positive.- Returns:
- This object.
-
maxSortKeys
Sets the largest number of sort keys.- Parameters:
value- The cap. Must be positive.- Returns:
- This object.
-
maxSearchLength
Sets the longest search, sort, view or opts string, in characters.- Parameters:
value- The cap. Must be positive.- Returns:
- This object.
-
maxExpressionDepth
Sets the deepest allowed expression nesting.- Parameters:
value- The cap. Must be positive.- Returns:
- This object.
-
build
Builds the (immutable) settings.- Returns:
- A new
QueryableSettings.
-