Package ch.nolix.system.application.main
Klasse AbstractFrontendClient<C extends AbstractFrontendClient<C>>
java.lang.Object
ch.nolix.system.application.main.AbstractClient<C>
ch.nolix.system.application.main.AbstractFrontendClient<C>
- Typparameter:
C- is the type of aAbstractFrontendClient.
- Alle implementierten Schnittstellen:
ISecuriyModeHolder,ConnectionSideRequestable,Closeable,CloseStateRequestable,GroupCloseable,IClient,AutoCloseable
public abstract class AbstractFrontendClient<C extends AbstractFrontendClient<C>>
extends AbstractClient<C>
- Version:
- 2022-03-18
- Autor:
- Silvan Wyss
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected final voidconnectTo(int port) Connects the currentAbstractFrontendClientto the defaultApplicationon the given port on the local computer.protected final voidConnects the currentAbstractFrontendClientto theApplicationwith the given name on the given port on the local computer.protected final voidconnectTo(AbstractServer<?> server) Connects the currentAbstractFrontendClientto the defaultApplicationon the given server.protected final voidconnectTo(AbstractServer<?> server, String instanceName) Connects the currentAbstractFrontendClientto theApplicationwith the given instanceName on the given server.protected final voidconnectTo(Application<?, ?> application) Connects the currentAbstractFrontendClientto the given application.protected final voidConnects the currentAbstractFrontendClientto the defaultApplicationon the HTTP port (80) on the computer with the given ip.protected final voidConnects the currentAbstractFrontendClientto the defaultApplicationon given port on the computer with the given ip.protected final voidConnects the currentAbstractFrontendClientto theApplicationwith the given name on the given port on the computer with the given ip.final booleanVon Klasse geerbte Methoden ch.nolix.system.application.main.AbstractClient
getDataFromCounterpart, getDataFromHere, getSecurityMode, getStoredCloseController, getUrlInstanceNameOfTargetApplication, hasRequestedConnection, hasUrlInstanceNameOfTargetApplication, isClosed, runHere, runOnCounterpart, runOnCounterpart, runOnCounterpartVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden ch.nolix.coreapi.resourcecontrol.closecontroller.CloseStateRequestable
isOpenVon Schnittstelle geerbte Methoden ch.nolix.coreapi.net.staterequest.ConnectionSideRequestable
isOnFrontendVon Schnittstelle geerbte Methoden ch.nolix.coreapi.resourcecontrol.closecontroller.GroupCloseable
close, createCloseDependencyTo, noteClose
-
Konstruktordetails
-
AbstractFrontendClient
public AbstractFrontendClient()
-
-
Methodendetails
-
isOnBackend
public final boolean isOnBackend()- Gibt zurück:
- true if the current
ConnectionSideRequestableis on the back-end, false otherwise.
-
connectTo
Connects the currentAbstractFrontendClientto the given application.- Parameter:
application-- Löst aus:
InvalidArgumentException- if the currentAbstractFrontendClientis already connected.
-
connectTo
Connects the currentAbstractFrontendClientto the defaultApplicationon the given server.- Parameter:
server-- Löst aus:
InvalidArgumentException- if the currentAbstractFrontendClientis already connected.
-
connectTo
protected final void connectTo(int port) Connects the currentAbstractFrontendClientto 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 currentAbstractFrontendClientis already connected.
-
connectTo
Connects the currentAbstractFrontendClientto 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 currentAbstractFrontendClientis already connected.
-
connectTo
Connects the currentAbstractFrontendClientto 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 currentAbstractFrontendClientis already connected.
-
connectTo
Connects the currentAbstractFrontendClientto the defaultApplicationon the HTTP port (80) on the computer with the given ip.- Parameter:
ip-- Löst aus:
InvalidArgumentException- if the currentAbstractFrontendClientis already connected.
-
connectTo
Connects the currentAbstractFrontendClientto 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 currentAbstractFrontendClientis already connected.
-
connectTo
Connects the currentAbstractFrontendClientto 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 currentAbstractFrontendClientis already connected.
-