Class ToolboxRestWebService<T_REST_DOCUMENT extends RestDocument>
- java.lang.Object
-
- net.webpdf.wsclient.webservice.AbstractWebService<RestSession<T_REST_DOCUMENT>,T_OPERATION_DATA,T_OPERATION_PARAMETER,T_REST_DOCUMENT,OperationBilling,OperationPdfPassword,OperationSettings>
-
- net.webpdf.wsclient.webservice.rest.RestWebService<OperationToolboxOperation,List<OperationBaseToolbox>,T_REST_DOCUMENT>
-
- net.webpdf.wsclient.webservice.rest.ToolboxRestWebService<T_REST_DOCUMENT>
-
- Type Parameters:
T_REST_DOCUMENT- The expectedRestDocumenttype for the documents used by the webPDF server.
- All Implemented Interfaces:
WebService<RestSession<T_REST_DOCUMENT>,List<OperationBaseToolbox>,T_REST_DOCUMENT,OperationBilling,OperationPdfPassword,OperationSettings>
public class ToolboxRestWebService<T_REST_DOCUMENT extends RestDocument> extends RestWebService<OperationToolboxOperation,List<OperationBaseToolbox>,T_REST_DOCUMENT>
An instance ofToolboxRestWebServicewraps a wsclient connection to the webPDF webservice endpointWebServiceType.TOOLBOX, usingWebServiceProtocol.RESTand expecting aRestDocumentas the result.
-
-
Constructor Summary
Constructors Constructor Description ToolboxRestWebService(@NotNull RestSession<T_REST_DOCUMENT> session)Creates aToolboxRestWebServicefor the givenRestSession
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable OperationBillinggetBilling()Returns theOperationBillingof the current webservice.@NotNull List<OperationBaseToolbox>getOperationParameters()Returns theToolboxRestWebServicespecificOperationBaseToolbox, which allows setting parameters for the webservice execution.@Nullable OperationPdfPasswordgetPassword()Returns theOperationPdfPasswordof the current webservice.@Nullable OperationSettingsgetSettings()Returns theOperationSettingsof the current webservice.protected @NotNull OperationToolboxOperationinitOperation()Initializes and prepares the execution of thisToolboxRestWebService.voidsetBilling(@Nullable OperationBilling billing)Sets theOperationBillingfor the current webservice.voidsetOperationParameters(@Nullable List<OperationBaseToolbox> operation)Sets theToolboxRestWebServicespecificOperationBaseToolboxelement, which allows setting parameters for the webservice execution.voidsetPassword(@Nullable OperationPdfPassword password)Sets theOperationPdfPasswordfor the current webservice.voidsetSettings(@Nullable OperationSettings settings)Sets theOperationSettingsfor the current webservice.-
Methods inherited from class net.webpdf.wsclient.webservice.rest.RestWebService
process, process, process
-
Methods inherited from class net.webpdf.wsclient.webservice.AbstractWebService
getAdditionalParameter, getHeaders, getOperationData, getSession, getWebServiceType
-
-
-
-
Constructor Detail
-
ToolboxRestWebService
public ToolboxRestWebService(@NotNull @NotNull RestSession<T_REST_DOCUMENT> session)Creates aToolboxRestWebServicefor the givenRestSession- Parameters:
session- TheRestSessionaToolboxRestWebServiceshall be created for.
-
-
Method Detail
-
getOperationParameters
@NotNull public @NotNull List<OperationBaseToolbox> getOperationParameters()
Returns theToolboxRestWebServicespecificOperationBaseToolbox, which allows setting parameters for the webservice execution.- Returns:
- The
OperationBaseToolboxoperation parameters.
-
setOperationParameters
public void setOperationParameters(@Nullable @Nullable List<OperationBaseToolbox> operation)Sets theToolboxRestWebServicespecificOperationBaseToolboxelement, which allows setting parameters for the webservice execution.- Parameters:
operation- Sets theOperationBaseToolboxoperation parameters.
-
getPassword
@Nullable public @Nullable OperationPdfPassword getPassword()
Returns theOperationPdfPasswordof the current webservice.- Returns:
- the
OperationPdfPasswordof the current webservice.
-
setPassword
public void setPassword(@Nullable @Nullable OperationPdfPassword password)Sets theOperationPdfPasswordfor the current webservice.- Parameters:
password- TheOperationPdfPasswordfor the current webservice.
-
getBilling
@Nullable public @Nullable OperationBilling getBilling()
Returns theOperationBillingof the current webservice.- Returns:
- the
OperationBillingof the current webservice.
-
setBilling
public void setBilling(@Nullable @Nullable OperationBilling billing)Sets theOperationBillingfor the current webservice.- Parameters:
billing- TheOperationBillingfor the current webservice.
-
getSettings
@Nullable public @Nullable OperationSettings getSettings()
Returns theOperationSettingsof the current webservice.- Returns:
- the
OperationSettingsof the current webservice.
-
setSettings
public void setSettings(@Nullable @Nullable OperationSettings settings)Sets theOperationSettingsfor the current webservice.- Parameters:
settings- TheOperationSettingsfor the current webservice.
-
initOperation
@NotNull protected @NotNull OperationToolboxOperation initOperation()
Initializes and prepares the execution of thisToolboxRestWebService.- Specified by:
initOperationin classAbstractWebService<RestSession<T_REST_DOCUMENT extends RestDocument>,OperationToolboxOperation,List<OperationBaseToolbox>,T_REST_DOCUMENT extends RestDocument,OperationBilling,OperationPdfPassword,OperationSettings>- Returns:
- The prepared
OperationToolboxOperation.
-
-