public final class SessionFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T extends Session> |
createInstance(@NotNull WebServiceProtocol webServiceProtocol,
@NotNull URL url)
Creates a session based on the given
WebServiceProtocol to the server at the given URL. |
static <T extends Session> |
createInstance(@NotNull WebServiceProtocol webServiceProtocol,
@NotNull URL url,
@Nullable TLSContext tlsContext)
Creates a session based on the given
WebServiceProtocol to the server at the given URL. |
@NotNull public static <T extends Session> T createInstance(@NotNull @NotNull WebServiceProtocol webServiceProtocol, @NotNull @NotNull URL url) throws ResultException
WebServiceProtocol to the server at the given URL.T - The type of the produced Session.webServiceProtocol - The WebServiceProtocol used to communicate with the server.url - The URL of the server.Session organizing the communication with the server at the given URL.ResultException - a ResultException@NotNull public static <T extends Session> T createInstance(@NotNull @NotNull WebServiceProtocol webServiceProtocol, @NotNull @NotNull URL url, @Nullable @Nullable TLSContext tlsContext) throws ResultException
WebServiceProtocol to the server at the given URL.T - The type of the produced Session.webServiceProtocol - The WebServiceProtocol used to communicate with the server.url - The URL of the server.tlsContext - Container configuring a https session.Session organizing the communication with the server at the given URL.ResultException - a ResultExceptionCopyright © 2017–2022 SoftVision Development GmbH, Fulda, Germany. All rights reserved.