Package ch.nolix.system.application.main
Klasse Server
- Alle implementierten Schnittstellen:
IApplicationManager<IApplication<?,,?>> ISecuriyModeHolder,ISinglePortServer,Closeable,CloseStateRequestable,GroupCloseable,Clearable,EmptinessRequestable,IServer<Server>,AutoCloseable
- Version:
- 2017-09-10
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected ServerasTarget()static Serverstatic ServerforPort(int port) getIp()intgetPort()protected voidnoteAddedApplication(Application<?, ?> application) Notes that the given application has been added to the currentAbstractServer.protected voidnoteAddedDefaultApplication(Application<?, ?> defaultApplication) Notes that the given defaultApplication has been added to the currentAbstractServer.protected voidnoteRemovedApplication(IApplication<?, ?> application) Notes that the given application has been removed fromt the currentAbstractServer.Von Klasse geerbte Methoden ch.nolix.system.application.main.AbstractServer
addApplication, addApplicationWithNameAddendum, addApplicationWithNameAndInitialSessionClassAndContext, addApplicationWithNameAndInitialSessionClassAndVoidContext, addDefaultApplication, addDefaultApplicationWithNameAndInitialSessionClassAndContext, addDefaultApplicationWithNameAndInitialSessionClassAndVoidContext, clear, containsApplicationWithName, containsDefaultApplication, getStoredApplicationByInstanceName, getStoredApplicationByUrlInstanceName, getStoredApplications, getStoredCloseController, getStoredDefaultApplication, hasClientConnected, isEmpty, noteClose, removeApplicationWithInstanceName, takeClientVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden ch.nolix.coreapi.resourcecontrol.closecontroller.CloseStateRequestable
isOpenVon Schnittstelle geerbte Methoden ch.nolix.coreapi.state.staterequest.EmptinessRequestable
containsAnyVon Schnittstelle geerbte Methoden ch.nolix.coreapi.resourcecontrol.closecontroller.GroupCloseable
close, createCloseDependencyTo, isClosed
-
Methodendetails
-
forHttpPort
- Gibt zurück:
- a new
Serverthat will listen to netAbstractClients on the HTTP port (80).
-
forPort
- Parameter:
port-- Gibt zurück:
- a new
Serverthat will listen to netAbstractClients on the given port. - Löst aus:
ArgumentIsOutOfRangeException- if the given port is not in [0, 65535].
-
asTarget
- Angegeben von:
asTargetin SchnittstelleIServer<Server>- Gibt zurück:
- the current
ServerasIServerTarget.
-
getIp
- Angegeben von:
getIpin SchnittstelleISinglePortServer- Gibt zurück:
- the ip of the current
ISinglePortServer.
-
getPort
public int getPort()- Angegeben von:
getPortin SchnittstelleISinglePortServer- Gibt zurück:
- the port of the current
ISinglePortServer.
-
getSecurityMode
- Angegeben von:
getSecurityModein SchnittstelleISecuriyModeHolder- Gibt zurück:
- the
SecurityModeof the currentISecuriyModeHolder.
-
asConcrete
- Angegeben von:
asConcretein KlasseAbstractServer<Server>- Gibt zurück:
- the current
AbstractServer.
-
noteAddedApplication
Notes that the given application has been added to the currentAbstractServer.- Angegeben von:
noteAddedApplicationin KlasseAbstractServer<Server>- Parameter:
application-
-
noteAddedDefaultApplication
Notes that the given defaultApplication has been added to the currentAbstractServer.- Angegeben von:
noteAddedDefaultApplicationin KlasseAbstractServer<Server>- Parameter:
defaultApplication-
-
noteRemovedApplication
Notes that the given application has been removed fromt the currentAbstractServer.- Angegeben von:
noteRemovedApplicationin KlasseAbstractServer<Server>- Parameter:
application-
-