Class ToolboxWebService<T_SOAP_DOCUMENT extends SoapDocument>
- java.lang.Object
-
- net.webpdf.wsclient.webservice.AbstractWebService<SoapSession<T_SOAP_DOCUMENT>,OperationData,T_OPERATION_PARAMETER,T_SOAP_DOCUMENT,BillingType,PdfPasswordType,SettingsType>
-
- net.webpdf.wsclient.webservice.soap.SoapWebService<Toolbox,List<BaseToolboxType>,T_SOAP_DOCUMENT>
-
- net.webpdf.wsclient.webservice.soap.ToolboxWebService<T_SOAP_DOCUMENT>
-
- Type Parameters:
T_SOAP_DOCUMENT- The expectedSoapDocumenttype for the documents used by the webPDF server.
- All Implemented Interfaces:
WebService<SoapSession<T_SOAP_DOCUMENT>,List<BaseToolboxType>,T_SOAP_DOCUMENT,BillingType,PdfPasswordType,SettingsType>
public class ToolboxWebService<T_SOAP_DOCUMENT extends SoapDocument> extends SoapWebService<Toolbox,List<BaseToolboxType>,T_SOAP_DOCUMENT>
An instance ofToolboxWebServicewraps a wsclient connection to the webPDF webservice endpointWebServiceType.TOOLBOX, usingWebServiceProtocol.SOAPand expecting aSoapDocumentas the result.
-
-
Constructor Summary
Constructors Constructor Description ToolboxWebService(@NotNull SoapSession<T_SOAP_DOCUMENT> session)Creates aToolboxWebServicefor the givenSoapSession.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull List<BaseToolboxType>getOperationParameters()Returns theToolboxWebServicespecificBaseToolboxType, which allows setting parameters for the webservice execution.protected @NotNull OperationDatainitOperation()Initializes and prepares the execution of thisToolboxWebService.protected @Nullable jakarta.activation.DataHandlerprocessService(T_SOAP_DOCUMENT sourceDocument)Executes theToolboxWebServiceoperation and returns theDataHandlerof the result document.protected @NotNull ToolboxprovideWebServicePort()Create a matchingToolboxwebservice port for future executions of thisSoapWebService.voidsetOperationParameters(@Nullable List<BaseToolboxType> operationData)Sets theToolboxWebServicespecificBaseToolboxTypeelement, which allows setting parameters for the webservice execution.-
Methods inherited from class net.webpdf.wsclient.webservice.soap.SoapWebService
getBilling, getMTOMFeature, getPassword, getPort, getQName, getSettings, getWsdlDocumentLocation, process, process, setBilling, setPassword, setSettings
-
Methods inherited from class net.webpdf.wsclient.webservice.AbstractWebService
getAdditionalParameter, getHeaders, getOperationData, getSession, getWebServiceType
-
-
-
-
Constructor Detail
-
ToolboxWebService
public ToolboxWebService(@NotNull @NotNull SoapSession<T_SOAP_DOCUMENT> session) throws ResultExceptionCreates aToolboxWebServicefor the givenSoapSession.- Parameters:
session- TheSoapSessionaToolboxWebServiceshall be created for.- Throws:
ResultException- Shall be thrown, upon an execution failure.
-
-
Method Detail
-
processService
@Nullable protected @Nullable jakarta.activation.DataHandler processService(@NotNull T_SOAP_DOCUMENT sourceDocument) throws WebServiceExceptionExecutes the
ToolboxWebServiceoperation and returns theDataHandlerof the result document.Be aware: SOAP webservices may not be executed without a
sourceDocument. It is required, that you at least create a dummy document, such as: new SoapWebServiceDocument() for webservices not requiring a source document. (Such as the URL-converter.)- Specified by:
processServicein classSoapWebService<Toolbox,List<BaseToolboxType>,T_SOAP_DOCUMENT extends SoapDocument>- Parameters:
sourceDocument- The sourceToolboxWebService, that shall be processed.- Returns:
- The
DataHandlerof the result document. - Throws:
WebServiceException- Shall be thrown, upon an execution failure.
-
getOperationParameters
@NotNull public @NotNull List<BaseToolboxType> getOperationParameters()
Returns theToolboxWebServicespecificBaseToolboxType, which allows setting parameters for the webservice execution.- Returns:
- The
BaseToolboxTypeoperation parameters.
-
setOperationParameters
public void setOperationParameters(@Nullable @Nullable List<BaseToolboxType> operationData)Sets theToolboxWebServicespecificBaseToolboxTypeelement, which allows setting parameters for the webservice execution.- Parameters:
operationData- Sets theBaseToolboxTypeoperation parameters.
-
provideWebServicePort
@NotNull protected @NotNull Toolbox provideWebServicePort() throws ResultException
Create a matchingToolboxwebservice port for future executions of thisSoapWebService.- Specified by:
provideWebServicePortin classSoapWebService<Toolbox,List<BaseToolboxType>,T_SOAP_DOCUMENT extends SoapDocument>- Returns:
- The
Toolboxwebservice port, that shall be used for executions. - Throws:
ResultException- Shall be thrown, upon an execution failure.
-
initOperation
@NotNull protected @NotNull OperationData initOperation()
Initializes and prepares the execution of thisToolboxWebService.- Specified by:
initOperationin classAbstractWebService<SoapSession<T_SOAP_DOCUMENT extends SoapDocument>,OperationData,List<BaseToolboxType>,T_SOAP_DOCUMENT extends SoapDocument,BillingType,PdfPasswordType,SettingsType>- Returns:
- The prepared
OperationData.
-
-