Package net.webpdf.wsclient.webservice
Interface WebService<T_SESSION extends Session,T_OPERATION_PARAMETER,T_DOCUMENT extends Document,T_BILLING,T_PASSWORD,T_SETTINGS>
-
- Type Parameters:
T_SESSION- The expectedSessiontype for the webservice connection.T_OPERATION_PARAMETER- The parameter type of the targeted webservice endpoint.T_DOCUMENT- The expectedDocumenttype for the results produced by the webPDF server.T_BILLING- The operation´s billing type configuring the server´s billing log entries.T_PASSWORD- The operation´s password type, used to configure material for password-protected documents.T_SETTINGS- The operation´s additional settings type, used to configure webservice independent options and parameters.
- All Known Implementing Classes:
AbstractWebService,BarcodeRestWebService,BarcodeWebService,ConverterRestWebService,ConverterWebService,OcrRestWebService,OcrWebService,PdfaRestWebService,PdfaWebService,RestWebService,SignatureRestWebService,SignatureWebService,SoapWebService,ToolboxRestWebService,ToolboxWebService,UrlConverterRestWebService,UrlConverterWebService
public interface WebService<T_SESSION extends Session,T_OPERATION_PARAMETER,T_DOCUMENT extends Document,T_BILLING,T_PASSWORD,T_SETTINGS>A class implementingWebServiceTypewraps a wsclient connection to a specific webPDF webservice endpoint (WebServiceType), using a specificWebServiceProtocoland expecting a specificDocumenttype as the result.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull List<org.apache.hc.core5.http.NameValuePair>getAdditionalParameter()Returns additional url search parameter for this webservice call.T_BILLINGgetBilling()Returns theWebServiceof the current webservice.T_OPERATION_PARAMETERgetOperationParameters()Returns the webservice specificWebService, which allows setting parameters for the webservice execution.T_PASSWORDgetPassword()Returns theWebServiceof the current webservice.T_SESSIONgetSession()Returns theWebServiceof the current webservice.T_SETTINGSgetSettings()Returns theWebServiceof the current webservice.T_DOCUMENTprocess()Execute the webservice operation and return the resultingWebService.T_DOCUMENTprocess(T_DOCUMENT sourceDocument)Execute the webservice operation for the given sourceWebServiceand return the resultingWebService.voidsetBilling(T_BILLING billing)Sets theWebServicefor the current webservice.voidsetOperationParameters(T_OPERATION_PARAMETER operation)Sets the webservice specificWebService, which allows setting parameters for the webservice execution.voidsetPassword(T_PASSWORD password)Sets theWebServicefor the current webservice.voidsetSettings(T_SETTINGS settings)Sets theWebServicefor the current webservice.
-
-
-
Method Detail
-
getSession
@NotNull T_SESSION getSession()
Returns theWebServiceof the current webservice.- Returns:
- The
WebServiceof the current webservice.
-
process
@NotNull T_DOCUMENT process() throws ResultException
Execute the webservice operation and return the resulting
WebService.Be aware: Most webservices require a source
WebService, with few exceptions, such as the URL-converter webservice. Before using this method, make sure that this is valid for theWebServicecall you intend to hereby execute.- Returns:
- The resulting
WebService. - Throws:
ResultException- Shall be thrown, upon an execution failure.
-
process
@NotNull T_DOCUMENT process(@NotNull T_DOCUMENT sourceDocument) throws ResultException
Execute the webservice operation for the given source
WebServiceand return the resultingWebService.- Parameters:
sourceDocument- The sourceWebService, that shall be processed.- Returns:
- The resulting
WebService. - Throws:
ResultException- Shall be thrown, upon an execution failure.
-
getOperationParameters
@NotNull T_OPERATION_PARAMETER getOperationParameters()
Returns the webservice specificWebService, which allows setting parameters for the webservice execution.- Returns:
- The webservice specific
WebService.
-
setOperationParameters
void setOperationParameters(@Nullable T_OPERATION_PARAMETER operation)Sets the webservice specificWebService, which allows setting parameters for the webservice execution.- Parameters:
operation- The webservice specificWebService.
-
getPassword
@Nullable T_PASSWORD getPassword()
Returns theWebServiceof the current webservice.- Returns:
- the
WebServiceof the current webservice.
-
setPassword
void setPassword(@Nullable T_PASSWORD password)Sets theWebServicefor the current webservice.- Parameters:
password- TheWebServicefor the current webservice.
-
getBilling
@Nullable T_BILLING getBilling()
Returns theWebServiceof the current webservice.- Returns:
- the
WebServiceof the current webservice.
-
setBilling
void setBilling(@Nullable T_BILLING billing)Sets theWebServicefor the current webservice.- Parameters:
billing- TheWebServicefor the current webservice.
-
getSettings
@Nullable T_SETTINGS getSettings()
Returns theWebServiceof the current webservice.- Returns:
- the
WebServiceof the current webservice.
-
setSettings
void setSettings(@Nullable T_SETTINGS settings)Sets theWebServicefor the current webservice.- Parameters:
settings- TheWebServicefor the current webservice.
-
getAdditionalParameter
@NotNull @NotNull List<org.apache.hc.core5.http.NameValuePair> getAdditionalParameter()
Returns additional url search parameter for this webservice call.- Returns:
- additional url search parameter for this webservice call.
-
-