Class SearchRequestProperties

java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,Object>
com.broadleafcommerce.search.core.service.SearchRequestProperties
All Implemented Interfaces:
Serializable, Cloneable, Map<String,Object>

public class SearchRequestProperties extends HashMap<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:
  • Constructor Details

    • SearchRequestProperties

      public SearchRequestProperties(int initialCapacity, float loadFactor)
    • SearchRequestProperties

      public SearchRequestProperties(int initialCapacity)
    • SearchRequestProperties

      public SearchRequestProperties()
    • SearchRequestProperties

      public SearchRequestProperties(boolean typeAheadRequest)
    • SearchRequestProperties

      public SearchRequestProperties(Map<? extends String,?> m)
  • Method Details

    • getHttpServletRequest

      @Nullable public jakarta.servlet.http.HttpServletRequest getHttpServletRequest()
    • setHttpServletRequest

      public void setHttpServletRequest(jakarta.servlet.http.HttpServletRequest request)
    • empty

      public static SearchRequestProperties 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?