Package ch.nolix.system.application.main
Klasse Server
- Alle implementierten Schnittstellen:
Closeable
,CloseStateRequestable
,GroupCloseable
,Clearable
,EmptinessRequestable
,IServer
,AutoCloseable
- Version:
- 2017-09-10
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected Server
asTarget()
static Server
static Server
forPort
(int port) getIp()
int
getPort()
protected void
noteAddedApplication
(Application<?, ?> application) Notes that the given application has been added to the currentBaseServer
.protected void
noteAddedDefaultApplication
(Application<?, ?> defaultApplication) Notes that the given defaultApplication has been added to the currentBaseServer
.protected void
noteRemovedApplication
(IApplication<?> application) Notes that the given application has been removed fromt the currentBaseServer
.Von Klasse geerbte Methoden ch.nolix.system.application.main.BaseServer
addApplication, addApplicationWithNameAddendum, addApplicationWithNameAndInitialSessionClassAndContext, addApplicationWithNameAndInitialSessionClassAndVoidContext, addDefaultApplication, addDefaultApplicationWithNameAndInitialSessionClassAndContext, addDefaultApplicationWithNameAndInitialSessionClassAndVoidContext, clear, containsApplicationWithName, containsDefaultApplication, getStoredApplicationByInstanceName, getStoredApplicationByUrlInstanceName, getStoredApplications, getStoredCloseController, getStoredDefaultApplication, hasClientConnected, isEmpty, noteClose, removeApplicationByInstanceName, takeClient
Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.nolix.coreapi.resourcecontrolapi.resourceclosingapi.CloseStateRequestable
isOpen
Von Schnittstelle geerbte Methoden ch.nolix.coreapi.stateapi.staterequestapi.EmptinessRequestable
containsAny
Von Schnittstelle geerbte Methoden ch.nolix.coreapi.resourcecontrolapi.resourceclosingapi.GroupCloseable
close, createCloseDependencyTo, isClosed
-
Methodendetails
-
forHttpPort
-
forPort
- Parameter:
port
-- Gibt zurück:
- a new
Server
that will listen to netClient
s on the given port. - Löst aus:
ArgumentIsOutOfRangeException
- if the given port is not in [0, 65535].
-
asTarget
- Gibt zurück:
- the current
Server
asIServerTarget
.
-
getIp
- Gibt zurück:
- the Ip of the current
Server
.
-
getPort
public int getPort()- Gibt zurück:
- the port of the current
Server
.
-
getSecurityLevel
- Gibt zurück:
- the
SecurityMode
of the currentIServer
.
-
asConcrete
- Angegeben von:
asConcrete
in KlasseBaseServer<Server>
- Gibt zurück:
- the current
BaseServer
.
-
noteAddedApplication
Notes that the given application has been added to the currentBaseServer
.- Angegeben von:
noteAddedApplication
in KlasseBaseServer<Server>
- Parameter:
application
-
-
noteAddedDefaultApplication
Notes that the given defaultApplication has been added to the currentBaseServer
.- Angegeben von:
noteAddedDefaultApplication
in KlasseBaseServer<Server>
- Parameter:
defaultApplication
-
-
noteRemovedApplication
Notes that the given application has been removed fromt the currentBaseServer
.- Angegeben von:
noteRemovedApplication
in KlasseBaseServer<Server>
- Parameter:
application
-
-