Class AbstractApplication<C extends BackendClient<C,S>, S>
java.lang.Object
ch.nolix.base.net.clientserver.AbstractApplication<C,S>
- Type Parameters:
C- the type of theBackendClients of aAbstractApplication.S- the type of the application service of aAbstractApplication.
- All Implemented Interfaces:
NameHolder, Application<C,S>, ClientManager<C>
- Direct Known Subclasses:
StandardApplication
public abstract class AbstractApplication<C extends BackendClient<C,S>, S>
extends Object
implements Application<C,S>
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionfinal booleanfinal Sfinal ExtendedIterable<C> final Stringfinal booleanfinal voidinternalSetParentServer(Server<?> parentServer) Sets the parentServerof the currentApplication.final voidtakeBackendClient(BackendClient<?, ?> backendClient) Takes the given backendClient.final IApplicationTargettoTarget()Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface NameHolder
getName, getNameInSingleQuotes, hasName, hasSameNameAs
-
Method Details
-
toTarget
- Specified by:
toTargetin interfaceApplication<C extends BackendClient<C,S>, S> - Returns:
- a
IApplicationTargetrepresentation of the currentApplication
-
belongsToServer
public final boolean belongsToServer()- Specified by:
belongsToServerin interfaceApplication<C extends BackendClient<C,S>, S> - Returns:
- true if the current
Applicationbelongs to a server, false otherwise
-
getClientClass
- Specified by:
getClientClassin interfaceApplication<C extends BackendClient<C,S>, S> - Returns:
- the
Classof theBackendClients of the currentApplication
-
getStoredApplicationService
- Specified by:
getStoredApplicationServicein interfaceApplication<C extends BackendClient<C,S>, S> - Returns:
- the application service of the current
Application
-
getStoredClients
- Specified by:
getStoredClientsin interfaceClientManager<C extends BackendClient<C,S>> - Returns:
- the clients of the current
ClientManager
-
getUrlName
- Specified by:
getUrlNamein interfaceApplication<C extends BackendClient<C,S>, S> - Returns:
- the name of the current
Applicationfor URLs
-
hasClientConnected
public final boolean hasClientConnected()- Specified by:
hasClientConnectedin interfaceApplication<C extends BackendClient<C,S>, S> - Returns:
- true if the current
Applicationhas a client connected, false otherwise
-
internalSetParentServer
Sets the parentServerof the currentApplication.- Specified by:
internalSetParentServerin interfaceApplication<C extends BackendClient<C,S>, S> - Parameters:
parentServer-
-
takeBackendClient
Takes the given backendClient.- Specified by:
takeBackendClientin interfaceApplication<C extends BackendClient<C,S>, S> - Parameters:
backendClient-
-