Package ch.nolix.system.application.main
Klasse Client<C extends Client<C>>
java.lang.Object
ch.nolix.system.application.main.Client<C>
- Typparameter:
C- is the type of aClient.
- Alle implementierten Schnittstellen:
Closeable,CloseStateRequestable,GroupCloseable,AutoCloseable
- Bekannte direkte Unterklassen:
BackendClient,FrontendClient
A
Client is an end point with comfortable functionalities.- Version:
- 2016-01-01
- Autor:
- Silvan Wyss
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected final Cfinal booleanprotected final INode<?> getDataFromCounterpart(IChainedNode request) protected abstract INode<?> getDataFromHere(IChainedNode request) final Stringfinal CloseControllerfinal Stringfinal booleanfinal booleanabstract booleanfinal booleanisClosed()protected final booleanabstract booleanfinal booleanfinal booleanfinal booleanprotected abstract voidrunHere(IChainedNode command) Lets the currentClientrun the given command.protected final voidrunOnCounterpart(ChainedNode command, ChainedNode... commands) Runs the given commands on the counterpart of the currentClient.protected final voidrunOnCounterpart(IChainedNode command) Runs the given command on the counterpart of the currentClient.protected final voidrunOnCounterpart(Iterable<? extends IChainedNode> commands) Runs the given commands on the counterpart of the currentClient.final voidsetSessionVariableWithKeyAndValue(String key, String value) Sets a session variable with the given key and value to the currentClient.Von 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
-
Client
public Client()
-
-
Methodendetails
-
containsSessionVariableWithKey
- Parameter:
key-- Gibt zurück:
- true if the current
Clientcontains a session variable with the given key, false otherwise.
-
getStoredCloseController
- Angegeben von:
getStoredCloseControllerin SchnittstelleGroupCloseable- Gibt zurück:
- the
ICloseControllerof the currentGroupCloseable.
-
getSecurityMode
- Gibt zurück:
- the
SecurityModeof the currentClient.
-
getSessionVariableValueByKey
- Parameter:
key-- Gibt zurück:
- the value of the session variable with the given key from the current
Client. - Löst aus:
ArgumentDoesNotContainElementException- if the currentClientdoes not contain a session variable with the given key.
-
getTarget
- Gibt zurück:
- the name of the target
Applicationof the currentClient.
-
hasRequestedConnection
public final boolean hasRequestedConnection()- Gibt zurück:
- true if the current
Clienthas requested the connection.
-
hasTarget
public final boolean hasTarget()- Gibt zurück:
- true if the current
Clienthas a target.
-
isBackendClient
public abstract boolean isBackendClient() -
isClosed
public final boolean isClosed()- Angegeben von:
isClosedin SchnittstelleCloseStateRequestable- Angegeben von:
isClosedin SchnittstelleGroupCloseable- Gibt zurück:
- true if the current
CloseStateRequestableis closed.
-
isFrontendClient
public abstract boolean isFrontendClient() -
isLocalClient
public final boolean isLocalClient() -
isNetClient
public final boolean isNetClient() -
isWebClient
public final boolean isWebClient()- Gibt zurück:
- true if the current
Clientis a webClient. - Löst aus:
UnconnectedArgumentException- if the currentClientis not connected.
-
setSessionVariableWithKeyAndValue
Sets a session variable with the given key and value to the currentClient. Will overwrite a previous session variable if the currentClientcontains already a session variable with the given key.- Parameter:
key-value-
-
asConcrete
-
getDataFromCounterpart
- Parameter:
request-- Gibt zurück:
- the data the given request requests from the counterpart of the
current
Client. - Löst aus:
UnconnectedArgumentException- if the currentClientis not connected.
-
getDataFromHere
- Parameter:
request-- Gibt zurück:
- the data the given request requests from the current
Client.
-
isConnected
protected final boolean isConnected()- Gibt zurück:
- true if the current
Clientis connected.
-
runHere
Lets the currentClientrun the given command.- Parameter:
command-
-
runOnCounterpart
Runs the given command on the counterpart of the currentClient.- Parameter:
command-- Löst aus:
UnconnectedArgumentException- if the currentClientis not connected.
-
runOnCounterpart
Runs the given commands on the counterpart of the currentClient.- Parameter:
command-commands-- Löst aus:
UnconnectedArgumentException- if the currentClientis not connected.
-
runOnCounterpart
Runs the given commands on the counterpart of the currentClient.- Parameter:
commands-- Löst aus:
UnconnectedArgumentException- if the currentClientis not connected.
-