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
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected final C
final boolean
protected final INode
<?> getDataFromCounterpart
(IChainedNode request) protected abstract INode
<?> getDataFromHere
(IChainedNode request) final String
final CloseController
final String
final boolean
final boolean
abstract boolean
final boolean
isClosed()
protected final boolean
abstract boolean
final boolean
final boolean
final boolean
protected abstract void
runHere
(IChainedNode command) Lets the currentClient
run the given command.protected final void
runOnCounterpart
(ChainedNode command, ChainedNode... commands) Runs the given commands on the counterpart of the currentClient
.protected final void
runOnCounterpart
(IChainedNode command) Runs the given command on the counterpart of the currentClient
.protected final void
runOnCounterpart
(Iterable<? extends IChainedNode> commands) Runs the given commands on the counterpart of the currentClient
.final void
setSessionVariableWithKeyAndValue
(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, 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
-
Client
public Client()
-
-
Methodendetails
-
containsSessionVariableWithKey
- Parameter:
key
-- Gibt zurück:
- true if the current
Client
contains a session variable with the given key, false otherwise.
-
getStoredCloseController
- Angegeben von:
getStoredCloseController
in SchnittstelleGroupCloseable
- Gibt zurück:
- the
ICloseController
of the currentGroupCloseable
.
-
getConnectionSecurityLevel
- Gibt zurück:
- the
SecurityMode
of the connection of 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 currentClient
does not contain a session variable with the given key.
-
getTarget
- Gibt zurück:
- the name of the target
Application
of the currentClient
.
-
hasRequestedConnection
public final boolean hasRequestedConnection()- Gibt zurück:
- true if the current
Client
has requested the connection.
-
hasTarget
public final boolean hasTarget()- Gibt zurück:
- true if the current
Client
has a target.
-
isBackendClient
public abstract boolean isBackendClient() -
isClosed
public final boolean isClosed()- Angegeben von:
isClosed
in SchnittstelleCloseStateRequestable
- Angegeben von:
isClosed
in SchnittstelleGroupCloseable
- Gibt zurück:
- true if the current
CloseStateRequestable
is 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
Client
is a webClient
. - Löst aus:
UnconnectedArgumentException
- if the currentClient
is not connected.
-
setSessionVariableWithKeyAndValue
Sets a session variable with the given key and value to the currentClient
. Will overwrite a previous session variable if the currentClient
contains 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 currentClient
is 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
Client
is connected.
-
runHere
Lets the currentClient
run the given command.- Parameter:
command
-
-
runOnCounterpart
Runs the given command on the counterpart of the currentClient
.- Parameter:
command
-- Löst aus:
UnconnectedArgumentException
- if the currentClient
is not connected.
-
runOnCounterpart
Runs the given commands on the counterpart of the currentClient
.- Parameter:
command
-commands
-- Löst aus:
UnconnectedArgumentException
- if the currentClient
is not connected.
-
runOnCounterpart
Runs the given commands on the counterpart of the currentClient
.- Parameter:
commands
-- Löst aus:
UnconnectedArgumentException
- if the currentClient
is not connected.
-