Package com.jk.services.client
Class JKMatureServiceClient<T>
java.lang.Object
com.jk.services.client.JKServiceClient<T>
com.jk.services.client.JKMatureServiceClient<T>
- Type Parameters:
T
- Specifies the type of model that the service deals with.
- Direct Known Subclasses:
JKWorkflowServiceClient
This class extends
JKServiceClient
and provides common functionality
for interacting with mature services.- Version:
- 1.0
- Author:
- Dr. Jalal H. Kiswani
-
Field Summary
Fields inherited from class com.jk.services.client.JKServiceClient
logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method deletes an object from the service by its ID.This method finds an object by its ID in the service.getAll()
This method retrieves a list of objects from the service.getBase()
This method gets the base URL used for making service calls.protected String
This method retrieves the ID of a model object.This method is yet to be implemented (TBI).This method inserts an object into the service.void
This method sets the base URL for the service to the provided value.This method updates an object in the service.Methods inherited from class com.jk.services.client.JKServiceClient
callDownloadFileWithPost, callGet, callJson, callJson, callJsonAsListOfObjects, callJsonAsListOfObjects, callJsonAsListOfObjects, callJsonAsString, callJsonAsString, callJsonWithDelete, callJsonWithPatch, callJsonWithPatch, callJsonWithPost, callJsonWithPost, callJsonWithPut, callJsonWithPut, callPatch, callPost, callPut, callService, callSingleJson, callSingleJson, createClient, createSslContext, getAcceptMediaType, getConnectTimeout, getFullUrl, getHeaders, getLogServiceClient, getModelClass, getReadTimeout, getRequestMediaType, getResponseHeaders, getServiceName, isEnableRemoteLogging, setAcceptMediaType, setEnableRemoteLogging, setHeaders, setHeadersOnRequest, setModelClass, setRequestMediaType, setServiceName, toObject, toObject, toObjects, toObjects, uploadFile, validateReponse
-
Constructor Details
-
JKMatureServiceClient
public JKMatureServiceClient()
-
-
Method Details
-
getServiceUrlPropertyName
This method is yet to be implemented (TBI).- Overrides:
getServiceUrlPropertyName
in classJKServiceClient<T>
- Returns:
- null.
-
getBase
This method gets the base URL used for making service calls.- Overrides:
getBase
in classJKServiceClient<T>
- Returns:
- the base URL for service calls.
-
setBase
This method sets the base URL for the service to the provided value.- Overrides:
setBase
in classJKServiceClient<T>
- Parameters:
base
- Specifies the new base URL for the service to the provided value.
-
getAll
This method retrieves a list of objects from the service.- Returns:
- a list of objects obtained from the service response.
-
find
This method finds an object by its ID in the service.- Parameters:
id
- Specifies the ID of the object to find.- Returns:
- the object found in the service.
-
insert
This method inserts an object into the service.- Parameters:
model
- Specifies the model object to insert.- Returns:
- the inserted object obtained from the service response.
-
update
This method updates an object in the service.- Parameters:
model
- Specifies the model object to update.- Returns:
- the response from the service indicating the update status.
-
delete
This method deletes an object from the service by its ID.- Parameters:
id
- Specifies the ID of the object to delete.- Returns:
- the response from the service indicating the delete status
-
getId
This method retrieves the ID of a model object.- Parameters:
model
- Specifies the model object from which to extract the ID.- Returns:
- the ID of a model object.
-