Class SearchRequestProperties
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,
Object>
An extension of
HashMap
. Allows passing arbitrary additional properties when performing a
search request, including if this is a type ahead request.
empty()
may be used to retrieve an empty, unmodifiable properties
object.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
ConstructorsConstructorDescriptionSearchRequestProperties
(boolean typeAheadRequest) SearchRequestProperties
(int initialCapacity) SearchRequestProperties
(int initialCapacity, float loadFactor) SearchRequestProperties
(Map<? extends String, ?> m) -
Method Summary
Modifier and TypeMethodDescriptionstatic SearchRequestProperties
empty()
jakarta.servlet.http.HttpServletRequest
boolean
boolean
Is this a type ahead request?void
setHttpServletRequest
(jakarta.servlet.http.HttpServletRequest request) void
setTypeAheadRequest
(boolean typeAheadRequest) Is this a type ahead request?Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
SearchRequestProperties
public SearchRequestProperties(int initialCapacity, float loadFactor) -
SearchRequestProperties
public SearchRequestProperties(int initialCapacity) -
SearchRequestProperties
public SearchRequestProperties() -
SearchRequestProperties
public SearchRequestProperties(boolean typeAheadRequest) -
SearchRequestProperties
-
-
Method Details
-
getHttpServletRequest
@Nullable public jakarta.servlet.http.HttpServletRequest getHttpServletRequest() -
setHttpServletRequest
public void setHttpServletRequest(jakarta.servlet.http.HttpServletRequest request) -
empty
- Returns:
- An empty property map with
isTypeAheadRequest()
set to false.
-
isModifiable
public boolean isModifiable() -
isTypeAheadRequest
public boolean isTypeAheadRequest()Is this a type ahead request? -
setTypeAheadRequest
public void setTypeAheadRequest(boolean typeAheadRequest) Is this a type ahead request?
-