Package dev.resms.core.service
Class BaseService
java.lang.Object
dev.resms.core.service.BaseService
An abstract base class for service implementations, providing common functionality such as HTTP
client, authentication provider, and mapper initialization.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final StringApikey used for authenticating requests.protected final IHttpClientHTTP client for making HTTP requests.protected final ReSMSMapperMapper responsible for mapping data between different representations. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBaseService(String apiKey) Constructs a BaseService instance with the specified authentication provider, default HTTP client, and mapper. -
Method Summary
-
Field Details
-
apiKey
Apikey used for authenticating requests. -
httpClient
HTTP client for making HTTP requests. -
reSMSMapper
Mapper responsible for mapping data between different representations.
-
-
Constructor Details
-
BaseService
Constructs a BaseService instance with the specified authentication provider, default HTTP client, and mapper.- Parameters:
apiKey- The apiKey to use.
-