Package net.webpdf.wsclient.session.soap
Class AbstractSoapSession<T_SOAP_DOCUMENT extends SoapDocument>
- java.lang.Object
-
- net.webpdf.wsclient.session.AbstractSession
-
- net.webpdf.wsclient.session.soap.AbstractSoapSession<T_SOAP_DOCUMENT>
-
- All Implemented Interfaces:
AutoCloseable,Session,SoapSession<T_SOAP_DOCUMENT>
- Direct Known Subclasses:
SoapWebServiceSession
public abstract class AbstractSoapSession<T_SOAP_DOCUMENT extends SoapDocument> extends AbstractSession implements SoapSession<T_SOAP_DOCUMENT>
An instance of
AbstractSoapSessionestablishes and manages aWebServiceProtocol.SOAPconnection with a webPDF server.
-
-
Constructor Summary
Constructors Constructor Description AbstractSoapSession(@NotNull SessionContext serverContext, @NotNull AuthProvider authProvider)Creates a newAbstractSoapSessioninstance providing connection information and authorization objects for a webPDF server-clientSoapSession.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close theSoapSession.booleanisUseLocalWsdl()When returningtrue, a wsdl stored on the local file system shall be used instead of the WSDL published by the webPDF server.voidsetUseLocalWsdl(boolean useLocalWsdl)When set totrue, a wsdl stored on the local file system shall be used instead of the WSDL published by the webPDF server.-
Methods inherited from class net.webpdf.wsclient.session.AbstractSession
getAuthProvider, getSessionContext, getURI, getURI, getWebServiceProtocol
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.webpdf.wsclient.session.Session
getAuthProvider, getSessionContext, getURI, getURI, getWebServiceProtocol
-
Methods inherited from interface net.webpdf.wsclient.session.soap.SoapSession
createDocument, createDocument, createDocument, createDocument, createWebServiceInstance
-
-
-
-
Constructor Detail
-
AbstractSoapSession
public AbstractSoapSession(@NotNull @NotNull SessionContext serverContext, @NotNull @NotNull AuthProvider authProvider) throws ResultExceptionCreates a new
AbstractSoapSessioninstance providing connection information and authorization objects for a webPDF server-clientSoapSession.Be Aware: Neither
SessionContext, norAuthProviderare required to serve multipleSessions at a time. It is expected to create a newSessionContextandAuthProviderperSessionyou create.- Parameters:
serverContext- TheSessionContextinitializing theSessionContextSettingsof thisSoapSession.authProvider- TheAuthProviderfor authentication/authorization of thisSoapSession.- Throws:
ResultException- Shall be thrown, in case establishing theSoapSessionfailed.
-
-
Method Detail
-
isUseLocalWsdl
public boolean isUseLocalWsdl()
When returningtrue, a wsdl stored on the local file system shall be used instead of the WSDL published by the webPDF server.- Specified by:
isUseLocalWsdlin interfaceSoapSession<T_SOAP_DOCUMENT extends SoapDocument>- Returns:
true, if a wsdl stored on the local file system shall be used instead of the WSDL published by the webPDF server.
-
setUseLocalWsdl
public void setUseLocalWsdl(boolean useLocalWsdl)
When set totrue, a wsdl stored on the local file system shall be used instead of the WSDL published by the webPDF server.- Specified by:
setUseLocalWsdlin interfaceSoapSession<T_SOAP_DOCUMENT extends SoapDocument>- Parameters:
useLocalWsdl-true, to use a wsdl stored on the local file system, instead of the WSDL published by the webPDF server.
-
close
public void close()
Close theSoapSession.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSession
-
-