Class AbstractService
- java.lang.Object
-
- com.aboutyou.cloud.adminapi.service.AbstractService
-
- Direct Known Subclasses:
AttributeGroupService,AttributeTranslationService,BrandService,CampaignService,MasterCategoryService,PackageGroupService,ProductImageService,ProductService,ProductSortingService,ProductVariantPriceService,ProductVariantService,ProductVariantStockService,ShopCategoryPropertyKeyService,ShopCategoryService,ShopPropertyKeyService,ShopService,ShopWarehouseService
public abstract class AbstractService extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AbstractService(HttpClient httpClient)
-
Method Summary
All Methods Instance Methods Concrete Methods 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 Detail
-
AbstractService
public AbstractService(HttpClient httpClient)
-
-
Method Detail
-
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)
-
-