public final class QuerydslHttpRequestContext extends Object
QuerydslHttpRequestContextAwareServletFilter as it decorates the
default HttpServletRequest by extracting all the value operators and
maintaining them locally against their respective Path in this
context. This allows Spring Web QuerydslPredicateArgumentResolver to
continue with its strong type-conversion hiding the fact that there were
value operators. Value operators enabled actual value is provided to
ExpressionProvider during later phases for their usage in actual
Expression for querying.| Constructor and Description |
|---|
QuerydslHttpRequestContext(com.querydsl.core.types.EntityPath<?> root,
javax.servlet.http.HttpServletRequest servletRequest)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
getAllValues(com.querydsl.core.types.Path inPath) |
String |
getSingleValue(com.querydsl.core.types.Path inPath) |
public QuerydslHttpRequestContext(com.querydsl.core.types.EntityPath<?> root,
javax.servlet.http.HttpServletRequest servletRequest)
This constructor extracts the original request parameters and also creates a local transformed parameter list devoid of any value operators this component supports.
root - Root EntityPath for this contextservletRequest - HttpServletRequestpublic String getSingleValue(com.querydsl.core.types.Path inPath)
inPath - Path for which original search request single value is
required.Path if available, null otherwiseCopyright © 2018–2019. All rights reserved.