Package com.jk.services.client
Class JKFileDownloadServiceCaller
java.lang.Object
com.jk.services.client.JKFileDownloadServiceCaller
- All Implemented Interfaces:
JKServiceCaller
This class implements the
JKServiceCaller
interface for making
service calls to download files.- Version:
- 1.0
- Author:
- Dr. Jalal H. Kiswani
-
Constructor Summary
ConstructorsConstructorDescriptionJKFileDownloadServiceCaller
(Object object) This method constructs a newJKFileDownloadServiceCaller
with the provided object. -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
call
(jakarta.ws.rs.client.Invocation.Builder builder) This method makes an HTTP service call using the provided builder to construct the request.This method gets the media type that the service caller expects in the response.readResponse
(jakarta.ws.rs.core.Response response) This method reads and processes the response received from the service.
-
Constructor Details
-
JKFileDownloadServiceCaller
This method constructs a newJKFileDownloadServiceCaller
with the provided object.- Parameters:
object
- Specifies the object associated with this instance.
-
-
Method Details
-
call
public jakarta.ws.rs.core.Response call(jakarta.ws.rs.client.Invocation.Builder builder) This method makes an HTTP service call using the provided builder to construct the request.- Specified by:
call
in interfaceJKServiceCaller
- Parameters:
builder
- Specifies the builder used to construct the HTTP request.- Returns:
- the HTTP response received from the service.
-
readResponse
This method reads and processes the response received from the service.- Specified by:
readResponse
in interfaceJKServiceCaller
- Parameters:
response
- Specifies the HTTP response received from the service.- Returns:
- an object representing the processed response data.
-
getAcceptMedia
This method gets the media type that the service caller expects in the response.- Specified by:
getAcceptMedia
in interfaceJKServiceCaller
- Returns:
- the media type expected in the response.
-