public interface Session extends AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Terminates the current session.
|
org.apache.http.auth.Credentials |
getCredentials()
Returns the
Credentials authorizing this session. |
DataFormat |
getDataFormat()
Returns the
DataFormat accepted by this session. |
TLSContext |
getTlsContext()
Returns the currently set TLS context.
|
URI |
getURI(String subPath)
Returns an
URI pointing to the webservice interface of the session. |
WebServiceProtocol |
getWebServiceProtocol()
Returns the
WebServiceProtocol of this session. |
void |
setCredentials(org.apache.http.auth.Credentials userCredentials)
Sets the
Credentials authorizing this session. |
TLSContext getTlsContext()
void close()
throws IOException
close in interface AutoCloseableIOException - an IOExceptionWebServiceProtocol getWebServiceProtocol()
WebServiceProtocol of this session.WebServiceProtocol of this session.URI getURI(String subPath) throws ResultException
URI pointing to the webservice interface of the session.subPath - The location of the webservice interface on the webPDF server.URI pointing to the webservice interface of the session.ResultException - a ResultExceptionDataFormat getDataFormat()
DataFormat accepted by this session.DataFormat accepted by this session.org.apache.http.auth.Credentials getCredentials()
Credentials authorizing this session.Credentials authorizing this session.void setCredentials(org.apache.http.auth.Credentials userCredentials)
Credentials authorizing this session.userCredentials - The Credentials authorizing this session.Copyright © 2017–2019 SoftVision Development GmbH, Fulda, Germany. All rights reserved.