Package com.commercetools.api.client
Class ByProjectKeyProductProjectionsSearchPost
java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.TypeApiMethod<ByProjectKeyProductProjectionsSearchPost,ProductProjectionPagedSearchResponse>
com.commercetools.api.client.ByProjectKeyProductProjectionsSearchPost
- All Implemented Interfaces:
ByProjectKeyProductProjectionsSearchPostMixin,ErrorableTrait<ByProjectKeyProductProjectionsSearchPost>,ClientRequestCommand<ProductProjectionPagedSearchResponse>,CreateHttpRequestCommand,HttpRequestCommand<ProductProjectionPagedSearchResponse>,RequestCommand<ProductProjectionPagedSearchResponse>
public class ByProjectKeyProductProjectionsSearchPost
extends TypeApiMethod<ByProjectKeyProductProjectionsSearchPost,ProductProjectionPagedSearchResponse>
implements ByProjectKeyProductProjectionsSearchPostMixin, ErrorableTrait<ByProjectKeyProductProjectionsSearchPost>
For implementing funnel search on Product Listing Pages where users select multiple filters, use this POST method. To avoid URL length restrictions, this method passes the same query parameters as defined in the GET method, within the request body in URL-encoded format.
CompletableFuture<ApiHttpResponse<com.commercetools.api.models.product.ProductProjectionPagedSearchResponse>> result = apiRoot
.withProjectKey("{projectKey}")
.productProjections()
.search()
.post(null)
.execute()
-
Nested Class Summary
Nested classes/interfaces inherited from class io.vrap.rmf.base.client.ApiMethod
ApiMethod.ParamEntry<K,V> -
Constructor Summary
ConstructorsConstructorDescriptionByProjectKeyProductProjectionsSearchPost(ApiHttpClient apiHttpClient, String projectKey, List<ApiMethod.ParamEntry<String, String>> formParams) -
Method Summary
Modifier and TypeMethodDescriptionaddFormParam(String key, V value) add an additional form parameteraddFormParams(List<ApiMethod.ParamEntry<String, String>> formParams) add the form parametersbooleanexecute(ApiHttpClient client) executeBlocking(ApiHttpClient client, Duration timeout) getFirstFormParam(String key) getFormParam(String key) inthashCode()intcom.fasterxml.jackson.core.type.TypeReference<ProductProjectionPagedSearchResponse>voidsetProjectKey(String projectKey) toString()withFormParam(String key, V value) set the form parameter with the specified valuewithFormParams(List<ApiMethod.ParamEntry<String, String>> formParams) set the form parameterswithoutFormParam(String key) removes the specified form parameterMethods inherited from class io.vrap.rmf.base.client.ApiMethod
addHeader, addQueryParam, addQueryParams, contentType, createHttpRequest, execute, execute, execute, execute, execute, execute, execute, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, getFirstQueryParam, getHeaders, getQueryParam, getQueryParams, getQueryParamUriString, getQueryParamUriStrings, send, sendBlocking, sendBlocking, with, with, withHeader, withHeaders, withHttpRequest, withoutHeader, withoutQueryParam, withQueryParam, withQueryParamsMethods inherited from interface com.commercetools.api.client.ByProjectKeyProductProjectionsSearchPostMixin
addExpand, addExpand, addExpand, addExpand, addFacet, addFacet, addFacet, addFacet, addFilter, addFilter, addFilter, addFilter, addFilterFacets, addFilterFacets, addFilterFacets, addFilterFacets, addFilterQuery, addFilterQuery, addFilterQuery, addFilterQuery, addFuzzy, addFuzzy, addFuzzy, addFuzzy, addFuzzyLevel, addFuzzyLevel, addFuzzyLevel, addFuzzyLevel, addLimit, addLimit, addLimit, addLimit, addLocaleProjection, addLocaleProjection, addLocaleProjection, addLocaleProjection, addMarkMatchingVariants, addMarkMatchingVariants, addMarkMatchingVariants, addMarkMatchingVariants, addOffset, addOffset, addOffset, addOffset, addPriceChannel, addPriceChannel, addPriceChannel, addPriceChannel, addPriceCountry, addPriceCountry, addPriceCountry, addPriceCountry, addPriceCurrency, addPriceCurrency, addPriceCurrency, addPriceCurrency, addPriceCustomerGroup, addPriceCustomerGroup, addPriceCustomerGroup, addPriceCustomerGroup, addSort, addSort, addSort, addSort, addStaged, addStaged, addStaged, addStaged, addStoreProjection, addStoreProjection, addStoreProjection, addStoreProjection, addText, addText, addWithTotal, addWithTotal, addWithTotal, addWithTotal, facet, facetDsl, filter, filterDsl, filterFacets, filterQuery, withExpand, withExpand, withExpand, withExpand, withFacet, withFacet, withFacet, withFacet, withFilter, withFilter, withFilter, withFilter, withFilterFacets, withFilterFacets, withFilterFacets, withFilterFacets, withFilterQuery, withFilterQuery, withFilterQuery, withFilterQuery, withFuzzy, withFuzzy, withFuzzy, withFuzzy, withFuzzyLevel, withFuzzyLevel, withFuzzyLevel, withFuzzyLevel, withLimit, withLimit, withLimit, withLimit, withLocaleProjection, withLocaleProjection, withLocaleProjection, withLocaleProjection, withMarkMatchingVariants, withMarkMatchingVariants, withMarkMatchingVariants, withMarkMatchingVariants, withOffset, withOffset, withOffset, withOffset, withPriceChannel, withPriceChannel, withPriceChannel, withPriceChannel, withPriceCountry, withPriceCountry, withPriceCountry, withPriceCountry, withPriceCurrency, withPriceCurrency, withPriceCurrency, withPriceCurrency, withPriceCustomerGroup, withPriceCustomerGroup, withPriceCustomerGroup, withPriceCustomerGroup, withSort, withSort, withSort, withSort, withStaged, withStaged, withStaged, withStaged, withStoreProjection, withStoreProjection, withStoreProjection, withStoreProjection, withText, withText, withWithTotal, withWithTotal, withWithTotal, withWithTotalMethods inherited from interface io.vrap.rmf.base.client.ClientRequestCommand
executeBlockingMethods inherited from interface io.vrap.rmf.base.client.CreateHttpRequestCommand
createHttpRequestMethods inherited from interface com.commercetools.api.client.ErrorableTrait
asErrorableTrait, asErrorableTraitToBaseTypeMethods inherited from interface io.vrap.rmf.base.client.RequestCommand
executeBlocking
-
Constructor Details
-
ByProjectKeyProductProjectionsSearchPost
public ByProjectKeyProductProjectionsSearchPost(ApiHttpClient apiHttpClient, String projectKey, List<ApiMethod.ParamEntry<String, String>> formParams) -
ByProjectKeyProductProjectionsSearchPost
-
-
Method Details
-
resultType
public com.fasterxml.jackson.core.type.TypeReference<ProductProjectionPagedSearchResponse> resultType()- Specified by:
resultTypein interfaceHttpRequestCommand<ProductProjectionPagedSearchResponse>
-
executeBlocking
public ApiHttpResponse<ProductProjectionPagedSearchResponse> executeBlocking(ApiHttpClient client, Duration timeout) - Specified by:
executeBlockingin interfaceClientRequestCommand<ProductProjectionPagedSearchResponse>- Specified by:
executeBlockingin classApiMethod<ByProjectKeyProductProjectionsSearchPost,ProductProjectionPagedSearchResponse>
-
execute
public CompletableFuture<ApiHttpResponse<ProductProjectionPagedSearchResponse>> execute(ApiHttpClient client) - Specified by:
executein interfaceClientRequestCommand<ProductProjectionPagedSearchResponse>- Specified by:
executein classApiMethod<ByProjectKeyProductProjectionsSearchPost,ProductProjectionPagedSearchResponse>
-
getProjectKey
-
setProjectKey
-
addFormParam
add an additional form parameter- Specified by:
addFormParamin interfaceByProjectKeyProductProjectionsSearchPostMixin- Type Parameters:
V- value type- Parameters:
key- form parameter namevalue- form parameter value- Returns:
- ByProjectKeyProductProjectionsSearchPost
-
withFormParam
set the form parameter with the specified value- Specified by:
withFormParamin interfaceByProjectKeyProductProjectionsSearchPostMixin- Type Parameters:
V- value type- Parameters:
key- form parameter namevalue- form parameter value- Returns:
- ByProjectKeyProductProjectionsSearchPost
-
withoutFormParam
removes the specified form parameter- Specified by:
withoutFormParamin interfaceByProjectKeyProductProjectionsSearchPostMixin- Parameters:
key- form parameter name- Returns:
- ByProjectKeyProductProjectionsSearchPost
-
withFormParams
public ByProjectKeyProductProjectionsSearchPost withFormParams(List<ApiMethod.ParamEntry<String, String>> formParams) set the form parameters- Specified by:
withFormParamsin interfaceByProjectKeyProductProjectionsSearchPostMixin- Parameters:
formParams- list of form parameters- Returns:
- ByProjectKeyProductProjectionsSearchPost
-
addFormParams
public ByProjectKeyProductProjectionsSearchPost addFormParams(List<ApiMethod.ParamEntry<String, String>> formParams) add the form parameters- Specified by:
addFormParamsin interfaceByProjectKeyProductProjectionsSearchPostMixin- Parameters:
formParams- list of form parameters- Returns:
- ByProjectKeyProductProjectionsSearchPost
-
getFormParams
-
getFormParam
-
getFormParamUriStrings
-
getFormParamUriString
-
getFirstFormParam
-
equals
-
hashCode
public int hashCode() -
toString
-
reflectionHashCode
public int reflectionHashCode()
-