Package ch.nolix.system.application.main
Klasse FrontendClient<FC extends FrontendClient<FC>>
java.lang.Object
ch.nolix.system.application.main.Client<FC>
ch.nolix.system.application.main.FrontendClient<FC>
- Typparameter:
FC- is the type of aFrontendClient.
- Alle implementierten Schnittstellen:
Closeable,CloseStateRequestable,GroupCloseable,AutoCloseable
- Version:
- 2022-03-18
- Autor:
- Silvan Wyss
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected final voidconnectTo(int port) Connects the currentFrontendClientto the defaultApplicationon the given port on the local computer.protected final voidConnects the currentFrontendClientto theApplicationwith the given name on the given port on the local computer.protected final voidconnectTo(Application<?, ?> application) Connects the currentFrontendClientto the given application.protected final voidconnectTo(BaseServer<?> server) Connects the currentFrontendClientto the defaultApplicationon the given server.protected final voidconnectTo(BaseServer<?> server, String instanceName) Connects the currentFrontendClientto theApplicationwith the given instanceName on the given server.protected final voidConnects the currentFrontendClientto the defaultApplicationon the HTTP port (80) on the computer with the given ip.protected final voidConnects the currentFrontendClientto the defaultApplicationon given port on the computer with the given ip.protected final voidConnects the currentFrontendClientto theApplicationwith the given name on the given port on the computer with the given ip.final booleanfinal booleanVon Klasse geerbte Methoden ch.nolix.system.application.main.Client
asConcrete, containsSessionVariableWithKey, getDataFromCounterpart, getDataFromHere, getSecurityMode, getSessionVariableValueByKey, getStoredCloseController, getTarget, hasRequestedConnection, hasTarget, isClosed, isConnected, isLocalClient, isNetClient, isWebClient, runHere, runOnCounterpart, runOnCounterpart, runOnCounterpart, setSessionVariableWithKeyAndValueVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden ch.nolix.coreapi.resourcecontrolapi.resourceclosingapi.CloseStateRequestable
isOpenVon Schnittstelle geerbte Methoden ch.nolix.coreapi.resourcecontrolapi.resourceclosingapi.GroupCloseable
close, createCloseDependencyTo, noteClose
-
Konstruktordetails
-
FrontendClient
public FrontendClient()
-
-
Methodendetails
-
isBackendClient
public final boolean isBackendClient()- Angegeben von:
isBackendClientin KlasseClient<FC extends FrontendClient<FC>>- Gibt zurück:
- true if the current
Clientis a backendClient.
-
isFrontendClient
public final boolean isFrontendClient()- Angegeben von:
isFrontendClientin KlasseClient<FC extends FrontendClient<FC>>- Gibt zurück:
- true if the current
Clientis a frontendClient.
-
connectTo
Connects the currentFrontendClientto the given application.- Parameter:
application-- Löst aus:
InvalidArgumentException- if the currentFrontendClientis already connected.
-
connectTo
Connects the currentFrontendClientto the defaultApplicationon the given server.- Parameter:
server-- Löst aus:
InvalidArgumentException- if the currentFrontendClientis already connected.
-
connectTo
protected final void connectTo(int port) Connects the currentFrontendClientto the defaultApplicationon the given port on the local computer.- Parameter:
port-- Löst aus:
ArgumentIsOutOfRangeException- if the given port is not in [0, 65535].InvalidArgumentException- if the currentFrontendClientis already connected.
-
connectTo
Connects the currentFrontendClientto theApplicationwith the given name on the given port on the local computer.- Parameter:
port-name-- Löst aus:
ArgumentIsOutOfRangeException- if the given port is not in [0, 65535].ArgumentIsNullException- if the given name is null.EmptyArgumentException- if the given name is blank.InvalidArgumentException- if the currentFrontendClientis already connected.
-
connectTo
Connects the currentFrontendClientto theApplicationwith the given instanceName on the given server.- Parameter:
server-instanceName-- Löst aus:
ArgumentIsNullException- if the given instanceName is null.EmptyArgumentException- if the given instanceName is blank.InvalidArgumentException- if the currentFrontendClientis already connected.
-
connectTo
Connects the currentFrontendClientto the defaultApplicationon the HTTP port (80) on the computer with the given ip.- Parameter:
ip-- Löst aus:
InvalidArgumentException- if the currentFrontendClientis already connected.
-
connectTo
Connects the currentFrontendClientto the defaultApplicationon given port on the computer with the given ip.- Parameter:
ip-port-- Löst aus:
ArgumentIsOutOfRangeException- if the given port is not in [0, 65535].InvalidArgumentException- if the currentFrontendClientis already connected.
-
connectTo
Connects the currentFrontendClientto theApplicationwith the given name on the given port on the computer with the given ip.- Parameter:
ip-port-name-- Löst aus:
ArgumentIsOutOfRangeException- if the given port is not in [0, 65535].ArgumentIsNullException- if the given name is null.EmptyArgumentException- if the given name is blank.InvalidArgumentException- if the currentFrontendClientis already connected.
-