Package net.webpdf.wsclient.session
Interface Session
-
- All Superinterfaces:
AutoCloseable
- All Known Subinterfaces:
RestSession<T_REST_DOCUMENT>,SoapSession<T_SOAP_DOCUMENT>
- All Known Implementing Classes:
AbstractRestSession,AbstractSession,AbstractSoapSession,RestWebServiceSession,SoapWebServiceSession
public interface Session extends AutoCloseable
An instance of
Sessionestablishes and manages aWebServiceProtocolconnection with a webPDF server.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Close theSession.@NotNull AuthProvidergetAuthProvider()Provides theAuthProviderfor the authorization of theSession´s requests.@NotNull SessionContextSettingsgetSessionContext()Returns theSessionContextSettingsused for this session.@NotNull URIgetURI(@NotNull String subPath, List<org.apache.hc.core5.http.NameValuePair> parameters)Returns anURIpointing to the webservice interface of the session.@NotNull URIgetURI(String subPath)Returns anURIpointing to the webservice interface of the session.@NotNull WebServiceProtocolgetWebServiceProtocol()Returns theWebServiceProtocolthisSessionis using.
-
-
-
Method Detail
-
getWebServiceProtocol
@NotNull @NotNull WebServiceProtocol getWebServiceProtocol()
Returns theWebServiceProtocolthisSessionis using.- Returns:
- The
WebServiceProtocolthisSessionis using.
-
getSessionContext
@NotNull @NotNull SessionContextSettings getSessionContext()
Returns theSessionContextSettingsused for this session.- Returns:
- The
SessionContextSettingsused for this session.
-
getAuthProvider
@NotNull @NotNull AuthProvider getAuthProvider()
Provides theAuthProviderfor the authorization of theSession´s requests.- Returns:
AuthProviderfor the authorization of theSession´s requests.
-
getURI
@NotNull @NotNull URI getURI(String subPath) throws ResultException
Returns anURIpointing to the webservice interface of the session.- Parameters:
subPath- The location of the webservice interface on the webPDF server.- Returns:
- an
URIpointing to the webservice interface of the session. - Throws:
ResultException- aResultException
-
getURI
@NotNull @NotNull URI getURI(@NotNull @NotNull String subPath, List<org.apache.hc.core5.http.NameValuePair> parameters) throws ResultException
Returns anURIpointing to the webservice interface of the session.- Parameters:
subPath- The location of the webservice interface on the webPDF server.parameters- Additional Get parameters.- Returns:
- an
URIpointing to the webservice interface of the session. - Throws:
ResultException- aResultException
-
close
void close() throws ResultExceptionClose theSession.- Specified by:
closein interfaceAutoCloseable- Throws:
ResultException- Shall be thrown, if closing theSessionfailed.
-
-