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
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected final void
connectTo
(int port) Connects the currentFrontendClient
to the defaultApplication
on the given port on the local computer.protected final void
Connects the currentFrontendClient
to theApplication
with the given name on the given port on the local computer.protected final void
connectTo
(Application<?, ?> application) Connects the currentFrontendClient
to the given application.protected final void
connectTo
(BaseServer<?> server) Connects the currentFrontendClient
to the defaultApplication
on the given server.protected final void
connectTo
(BaseServer<?> server, String instanceName) Connects the currentFrontendClient
to theApplication
with the given instanceName on the given server.protected final void
Connects the currentFrontendClient
to the defaultApplication
on the HTTP port (80) on the computer with the given ip.protected final void
Connects the currentFrontendClient
to the defaultApplication
on given port on the computer with the given ip.protected final void
Connects the currentFrontendClient
to theApplication
with the given name on the given port on the computer with the given ip.final boolean
final boolean
Von Klasse geerbte Methoden ch.nolix.system.application.main.Client
asConcrete, containsSessionVariableWithKey, getConnectionSecurityLevel, getDataFromCounterpart, getDataFromHere, getSessionVariableValueByKey, getStoredCloseController, getTarget, hasRequestedConnection, hasTarget, isClosed, isConnected, isLocalClient, isNetClient, isWebClient, runHere, runOnCounterpart, runOnCounterpart, runOnCounterpart, setSessionVariableWithKeyAndValue
Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.nolix.coreapi.resourcecontrolapi.resourceclosingapi.CloseStateRequestable
isOpen
Von Schnittstelle geerbte Methoden ch.nolix.coreapi.resourcecontrolapi.resourceclosingapi.GroupCloseable
close, createCloseDependencyTo, noteClose
-
Konstruktordetails
-
FrontendClient
public FrontendClient()
-
-
Methodendetails
-
isBackendClient
public final boolean isBackendClient()- Angegeben von:
isBackendClient
in KlasseClient<FC extends FrontendClient<FC>>
- Gibt zurück:
- true if the current
Client
is a backendClient
.
-
isFrontendClient
public final boolean isFrontendClient()- Angegeben von:
isFrontendClient
in KlasseClient<FC extends FrontendClient<FC>>
- Gibt zurück:
- true if the current
Client
is a frontendClient
.
-
connectTo
Connects the currentFrontendClient
to the given application.- Parameter:
application
-- Löst aus:
InvalidArgumentException
- if the currentFrontendClient
is already connected.
-
connectTo
Connects the currentFrontendClient
to the defaultApplication
on the given server.- Parameter:
server
-- Löst aus:
InvalidArgumentException
- if the currentFrontendClient
is already connected.
-
connectTo
protected final void connectTo(int port) Connects the currentFrontendClient
to the defaultApplication
on 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 currentFrontendClient
is already connected.
-
connectTo
Connects the currentFrontendClient
to theApplication
with 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 currentFrontendClient
is already connected.
-
connectTo
Connects the currentFrontendClient
to theApplication
with 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 currentFrontendClient
is already connected.
-
connectTo
Connects the currentFrontendClient
to the defaultApplication
on the HTTP port (80) on the computer with the given ip.- Parameter:
ip
-- Löst aus:
InvalidArgumentException
- if the currentFrontendClient
is already connected.
-
connectTo
Connects the currentFrontendClient
to the defaultApplication
on 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 currentFrontendClient
is already connected.
-
connectTo
Connects the currentFrontendClient
to theApplication
with 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 currentFrontendClient
is already connected.
-