public interface Session extends AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Terminates the current session.
|
@Nullable org.apache.http.auth.Credentials |
getCredentials()
Returns the
Credentials authorizing this session. |
@Nullable DataFormat |
getDataFormat()
Returns the
DataFormat accepted by this session. |
@Nullable ProxyConfiguration |
getProxy()
Returns the currently set
ProxyConfiguration. |
@Nullable TLSContext |
getTlsContext()
Returns the currently set TLS context.
|
@NotNull URI |
getURI(String subPath)
Returns an
URI pointing to the webservice interface of the session. |
@NotNull WebServiceProtocol |
getWebServiceProtocol()
Returns the
WebServiceProtocol of this session. |
void |
setCredentials(@Nullable org.apache.http.auth.Credentials userCredentials)
Sets the
Credentials authorizing this session. |
void |
setProxy(@Nullable ProxyConfiguration proxy)
Set a
ProxyConfiguration. |
@Nullable @Nullable TLSContext getTlsContext()
@Nullable @Nullable ProxyConfiguration getProxy()
ProxyConfiguration.ProxyConfiguration.void setProxy(@Nullable
@Nullable ProxyConfiguration proxy)
throws ResultException
ProxyConfiguration.proxy - The ProxyConfiguration, that shall be set.ResultExceptionvoid close()
throws IOException
close in interface AutoCloseableIOException - an IOException@NotNull @NotNull WebServiceProtocol getWebServiceProtocol()
WebServiceProtocol of this session.WebServiceProtocol of this session.@NotNull @NotNull 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 ResultException@Nullable @Nullable DataFormat getDataFormat()
DataFormat accepted by this session.DataFormat accepted by this session.@Nullable @Nullable org.apache.http.auth.Credentials getCredentials()
Credentials authorizing this session.Credentials authorizing this session.void setCredentials(@Nullable
@Nullable org.apache.http.auth.Credentials userCredentials)
Credentials authorizing this session.userCredentials - The Credentials authorizing this session.Copyright © 2017–2023 SoftVision Development GmbH, Fulda, Germany. All rights reserved.