Package com.emailit.services
Class AbstractService
- java.lang.Object
-
- com.emailit.services.AbstractService
-
- Direct Known Subclasses:
ApiKeyService,AudienceService,ContactService,DomainService,EmailService,EmailVerificationListService,EmailVerificationService,EventService,SubscriberService,SuppressionService,TemplateService,WebhookService
public abstract class AbstractService extends Object
-
-
Constructor Summary
Constructors Constructor Description AbstractService(BaseEmailitClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringbuildPath(String pattern, String... args)protected BaseEmailitClientgetClient()protected EmailitObjectrequest(String method, String path, Map<String,Object> params)protected CollectionrequestCollection(String method, String path, Map<String,Object> params)protected ApiResponserequestRaw(String method, String path, Map<String,Object> params)
-
-
-
Constructor Detail
-
AbstractService
public AbstractService(BaseEmailitClient client)
-
-
Method Detail
-
getClient
protected BaseEmailitClient getClient()
-
request
protected EmailitObject request(String method, String path, Map<String,Object> params) throws EmailitException
- Throws:
EmailitException
-
requestCollection
protected Collection requestCollection(String method, String path, Map<String,Object> params) throws EmailitException
- Throws:
EmailitException
-
requestRaw
protected ApiResponse requestRaw(String method, String path, Map<String,Object> params) throws EmailitException
- Throws:
EmailitException
-
-