Interface Session<C extends BackendClient<C,S>, S>
- Type Parameters:
C- the type of the parentBackendClientof aSessionS- the type of the application service of the parentApplicationof the parentBackendClientof aSession
- All Superinterfaces:
AlivenessRequestable, ClientComponent<C>, Refreshable
- All Known Implementing Classes:
AbstractSession, AbstractWebClientSession, TestSession, UnderConstructionPageSession, WebClientSession
public interface Session<C extends BackendClient<C,S>, S>
extends AlivenessRequestable, ClientComponent<C>, Refreshable
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionClass<?> booleanvoidInitializes the currentAbstractSessionfully.voidvoidinternalSetParentClient(C parentClient) Sets the parentBackendClientof the currentSession.voidinternalSetResult(Object result) Sets the result of the currentSession.voidpop()Pops the currentSessionfrom its parentBackendClient.voidpopWithResult(Object result) Pops the currentSessionfrom its parentBackendClientwith the given result.Methods inherited from interface AlivenessRequestable
isAlive, isOutdatedMethods inherited from interface ClientComponent
belongsToClient, getStoredParentClientMethods inherited from interface Refreshable
refresh
-
Method Details
-
getApplicationName
String getApplicationName()- Returns:
- the name of the parent
Applicationof the parentBackendClientof the currentSession
-
getClientClass
-
getStoredApplicationService
S getStoredApplicationService()- Returns:
- the application service of the parent
Applicationof the parentBackendClientof the currentSession
-
hasFrameSession
-
internalFullInitialize
void internalFullInitialize()Initializes the currentAbstractSessionfully. -
internalGetStoredResult
Object internalGetStoredResult()- Returns:
- the result of the current
Session - Throws:
RuntimeException- if the currentSessiondoes not have a result
-
internalRemoveParentClient
-
internalSetParentClient
Sets the parentBackendClientof the currentSession.- Parameters:
parentClient-- Throws:
RuntimeException- if the given parentClient is nullRuntimeException- if the currentSessionbelongs already to aBackendClient.
-
internalSetResult
Sets the result of the currentSession.- Parameters:
result-- Throws:
RuntimeException- if the given result is null
-
pop
void pop()Pops the currentSessionfrom its parentBackendClient. -
popWithResult
Pops the currentSessionfrom its parentBackendClientwith the given result.- Parameters:
result-- Throws:
RuntimeException- if the given result is null
-