Interface Session<C extends BackendClient<S>, S>
- Type Parameters:
C- the type of theBackendClientof 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<S>, S>
extends AlivenessRequestable, ClientComponent<C>, Refreshable
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidpop()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.
-
getStoredApplicationService
S getStoredApplicationService()- Returns:
- the application service of the parent
Applicationof the parentBackendClientof the currentSession.
-
hasUnderlyingSession
-
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
-