Class HttpServletRequestContributor

java.lang.Object
com.broadleafcommerce.search.catalog.solr.query.HttpServletRequestContributor
All Implemented Interfaces:
com.broadleafcommerce.search.provider.solr.SolrQueryContributor, org.springframework.core.Ordered

public class HttpServletRequestContributor extends Object implements com.broadleafcommerce.search.provider.solr.SolrQueryContributor
Sets the HttpServletRequest on the SearchRequestProperties object. This contributor is set to the highest precedence.
  • Field Summary

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    contribute(org.apache.solr.client.solrj.SolrQuery solrQuery, com.broadleafcommerce.search.api.domain.SearchRequest searchRequest, List<com.broadleafcommerce.search.api.domain.FieldDefinition> fieldDefinitions, org.springframework.data.domain.Pageable page, com.broadleafcommerce.search.core.service.SearchRequestProperties properties, String locale, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
     
    boolean
     
    int
     
    protected jakarta.servlet.http.HttpServletRequest
     
    protected void
    setRequest(jakarta.servlet.http.HttpServletRequest request)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.broadleafcommerce.search.provider.solr.SolrQueryContributor

    isTypeAheadRequest
  • Constructor Details

    • HttpServletRequestContributor

      public HttpServletRequestContributor()
  • Method Details

    • contribute

      public void contribute(org.apache.solr.client.solrj.SolrQuery solrQuery, com.broadleafcommerce.search.api.domain.SearchRequest searchRequest, List<com.broadleafcommerce.search.api.domain.FieldDefinition> fieldDefinitions, org.springframework.data.domain.Pageable page, com.broadleafcommerce.search.core.service.SearchRequestProperties properties, @Nullable String locale, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
      Specified by:
      contribute in interface com.broadleafcommerce.search.provider.solr.SolrQueryContributor
    • contributeOnTypeAhead

      public boolean contributeOnTypeAhead()
      Specified by:
      contributeOnTypeAhead in interface com.broadleafcommerce.search.provider.solr.SolrQueryContributor
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered
      Specified by:
      getOrder in interface com.broadleafcommerce.search.provider.solr.SolrQueryContributor
    • getRequest

      @Nullable protected jakarta.servlet.http.HttpServletRequest getRequest()
    • setRequest

      @Autowired(required=false) protected void setRequest(jakarta.servlet.http.HttpServletRequest request)