Package ch.nolix.system.application.main
Klasse AbstractClient<C extends AbstractClient<C>>
java.lang.Object
ch.nolix.system.application.main.AbstractClient<C>
- Typparameter:
C- is the type of aAbstractClient.
- Alle implementierten Schnittstellen:
ISecuriyModeHolder,ConnectionSideRequestable,Closeable,CloseStateRequestable,GroupCloseable,IClient,AutoCloseable
- Bekannte direkte Unterklassen:
AbstractBackendClient,AbstractFrontendClient
- Version:
- 2016-01-01
- Autor:
- Silvan Wyss
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected final INode<?> getDataFromCounterpart(IChainedNode request) protected abstract INode<?> getDataFromHere(IChainedNode request) final SecurityModefinal ICloseControllerfinal Stringfinal booleanfinal booleanfinal booleanisClosed()protected abstract voidrunHere(IChainedNode command) Lets the currentAbstractClientrun the given command.protected final voidrunOnCounterpart(ChainedNode command, ChainedNode... commands) Runs the given commands on the counterpart of the currentAbstractClient.protected final voidrunOnCounterpart(IChainedNode command) Runs the given command on the counterpart of the currentAbstractClient.protected final voidrunOnCounterpart(Iterable<? extends IChainedNode> commands) Runs the given commands on the counterpart of the currentAbstractClient.Von 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
isOnBackend, isOnFrontendVon Schnittstelle geerbte Methoden ch.nolix.coreapi.resourcecontrol.closecontroller.GroupCloseable
close, createCloseDependencyTo, noteClose
-
Konstruktordetails
-
AbstractClient
public AbstractClient()
-
-
Methodendetails
-
getSecurityMode
- Angegeben von:
getSecurityModein SchnittstelleISecuriyModeHolder- Gibt zurück:
- the
SecurityModeof the currentISecuriyModeHolder.
-
getStoredCloseController
- Angegeben von:
getStoredCloseControllerin SchnittstelleGroupCloseable- Gibt zurück:
- the
ICloseControllerof the currentGroupCloseable.
-
getUrlInstanceNameOfTargetApplication
- Angegeben von:
getUrlInstanceNameOfTargetApplicationin SchnittstelleIClient- Gibt zurück:
- the URL instance name of the target application of the current
IClient.
-
hasRequestedConnection
public final boolean hasRequestedConnection()- Angegeben von:
hasRequestedConnectionin SchnittstelleIClient- Gibt zurück:
- true if the current
IClienthas requested the connection, false otherwise.
-
hasUrlInstanceNameOfTargetApplication
public final boolean hasUrlInstanceNameOfTargetApplication()- Angegeben von:
hasUrlInstanceNameOfTargetApplicationin SchnittstelleIClient- Gibt zurück:
- true if the current
IClienthas the URL instance name of its target application, false otherwise.
-
isClosed
public final boolean isClosed()- Angegeben von:
isClosedin SchnittstelleCloseStateRequestable- Angegeben von:
isClosedin SchnittstelleGroupCloseable- Gibt zurück:
- true if the current
CloseStateRequestableis closed.
-
getDataFromCounterpart
- Parameter:
request-- Gibt zurück:
- the data the given request requests from the counterpart of the
current
AbstractClient. - Löst aus:
UnconnectedArgumentException- if the currentAbstractClientis not connected.
-
getDataFromHere
- Parameter:
request-- Gibt zurück:
- the data the given request requests from the current
AbstractClient.
-
runHere
Lets the currentAbstractClientrun the given command.- Parameter:
command-
-
runOnCounterpart
Runs the given command on the counterpart of the currentAbstractClient.- Parameter:
command-- Löst aus:
UnconnectedArgumentException- if the currentAbstractClientis not connected.
-
runOnCounterpart
Runs the given commands on the counterpart of the currentAbstractClient.- Parameter:
command-commands-- Löst aus:
UnconnectedArgumentException- if the currentAbstractClientis not connected.
-
runOnCounterpart
Runs the given commands on the counterpart of the currentAbstractClient.- Parameter:
commands-- Löst aus:
UnconnectedArgumentException- if the currentAbstractClientis not connected.
-