Klasse Server
- Alle implementierten Schnittstellen:
IApplicationManager<IApplication<?,?>>, ISecuriyModeHolder, ISinglePortServer, Closeable, CloseStateRequestable, GroupCloseable, Clearable, EmptinessRequestable, IServer<Server>, AutoCloseable
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifikator 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 AbstractServer
addApplication, addApplicationWithNameAddendum, addApplicationWithNameAndInitialSessionClassAndContext, addApplicationWithNameAndInitialSessionClassAndVoidContext, addDefaultApplication, addDefaultApplicationWithNameAndInitialSessionClassAndContext, addDefaultApplicationWithNameAndInitialSessionClassAndVoidContext, clear, containsApplicationWithName, containsDefaultApplication, getStoredApplicationByInstanceName, getStoredApplicationByUrlInstanceName, getStoredApplications, getStoredCloseController, getStoredDefaultApplication, hasClientConnected, isEmpty, noteClose, removeApplicationWithInstanceName, takeClientVon Klasse geerbte Methoden Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden CloseStateRequestable
isOpenVon Schnittstelle geerbte Methoden EmptinessRequestable
containsAnyVon Schnittstelle geerbte Methoden 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-
-