public class RestSession extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close session on webPDF server
|
org.apache.http.auth.Credentials |
getCredentials()
Returns the
Credentials authorizing this session. |
DataFormat |
getDataFormat()
Returns the
DataFormat accepted by this session. |
DocumentManager |
getDocumentManager()
Returns the
DocumentManager managing source and target document for this session. |
org.apache.http.impl.client.CloseableHttpClient |
getHttpClient()
Returns the
CloseableHttpClient connected to the server via this session. |
TLSContext |
getTlsContext()
Returns the currently set TLS context.
|
Token |
getToken()
Returns the session
Token of this session. |
URI |
getURI(String subPath)
Returns an
URI pointing to the webservice interface of the session. |
WebServiceProtocol |
getWebServiceProtocol()
Returns the
WebServiceProtocol this session is using. |
void |
login()
Login into the server and get a token
|
void |
setCredentials(org.apache.http.auth.Credentials credentials)
Sets the
Credentials authorizing this session. |
void |
setDataFormat(DataFormat dataFormat)
Sets the
DataFormat accepted by this session. |
public Token getToken()
Token of this session.Token of this session.public org.apache.http.impl.client.CloseableHttpClient getHttpClient()
CloseableHttpClient connected to the server via this session.CloseableHttpClient connected to the server via this session.public DocumentManager getDocumentManager()
DocumentManager managing source and target document for this session.DocumentManager managing source and target document for this session.public void setDataFormat(DataFormat dataFormat)
DataFormat accepted by this session.dataFormat - The DataFormat accepted by this session.public void close()
throws IOException
IOException - a IOExceptionpublic void login()
throws IOException
IOException - HTTP access errorpublic TLSContext getTlsContext()
getTlsContext in interface Sessionpublic WebServiceProtocol getWebServiceProtocol()
WebServiceProtocol this session is using.getWebServiceProtocol in interface SessionWebServiceProtocol this session is using.public URI getURI(String subPath) throws ResultException
URI pointing to the webservice interface of the session.getURI in interface SessionsubPath - The location of the webservice interface on the webPDF server.URI pointing to the webservice interface of the session.ResultException - a ResultExceptionpublic org.apache.http.auth.Credentials getCredentials()
Credentials authorizing this session.getCredentials in interface SessionCredentials authorizing this session.public void setCredentials(org.apache.http.auth.Credentials credentials)
Credentials authorizing this session.setCredentials in interface Sessioncredentials - The Credentials authorizing this session.public DataFormat getDataFormat()
DataFormat accepted by this session.getDataFormat in interface SessionDataFormat accepted by this session.Copyright © 2017–2019 SoftVision Development GmbH, Fulda, Germany. All rights reserved.