Class AbstractService
java.lang.Object
com.aboutyou.cloud.adminapi.service.AbstractService
- Direct Known Subclasses:
AttributeTranslationService,ProductImageService,ProductService,ProductVariantPriceService,ProductVariantService,ProductVariantStockService
public abstract class AbstractService
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description AbstractService(HttpClient httpClient) -
Method Summary
Modifier and Type Method Description protected <T extends ApiObjectInterface>
Trequest(java.lang.String httpMethod, java.lang.String relativeUrl, ApiOptions options, java.lang.Class<T> modelClass)protected <T extends ApiObjectInterface>
Trequest(java.lang.String httpMethod, java.lang.String relativeUrl, ApiOptions options, java.lang.Class<T> modelClass, java.lang.Object body)protected <T> ApiCollection<T>requestCollection(java.lang.String httpMethod, java.lang.String relativeUrl, ApiOptions options, java.lang.Class<T> modelClass)protected <T> ApiCollection<T>requestCollection(java.lang.String httpMethod, java.lang.String relativeUrl, ApiOptions options, java.lang.Class<T> modelClass, java.lang.Object body)protected java.lang.StringresolvePath(java.lang.String path, java.lang.Object... params)
-
Constructor Details
-
Method Details
-
request
protected <T extends ApiObjectInterface> T request(java.lang.String httpMethod, java.lang.String relativeUrl, ApiOptions options, java.lang.Class<T> modelClass) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
request
protected <T extends ApiObjectInterface> T request(java.lang.String httpMethod, java.lang.String relativeUrl, ApiOptions options, java.lang.Class<T> modelClass, java.lang.Object body) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
requestCollection
protected <T> ApiCollection<T> requestCollection(java.lang.String httpMethod, java.lang.String relativeUrl, ApiOptions options, java.lang.Class<T> modelClass) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
requestCollection
protected <T> ApiCollection<T> requestCollection(java.lang.String httpMethod, java.lang.String relativeUrl, ApiOptions options, java.lang.Class<T> modelClass, java.lang.Object body) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
resolvePath
protected java.lang.String resolvePath(java.lang.String path, java.lang.Object... params)
-