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 -
Method Summary
Modifier and TypeMethodDescriptionvoidcontribute(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) booleanintgetOrder()protected jakarta.servlet.http.HttpServletRequestprotected voidsetRequest(jakarta.servlet.http.HttpServletRequest request) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
contributein interfacecom.broadleafcommerce.search.provider.solr.SolrQueryContributor
-
contributeOnTypeAhead
public boolean contributeOnTypeAhead()- Specified by:
contributeOnTypeAheadin interfacecom.broadleafcommerce.search.provider.solr.SolrQueryContributor
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered- Specified by:
getOrderin interfacecom.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)
-