Package ch.nolix.core.net.endpoint3
Klasse Server
java.lang.Object
ch.nolix.core.net.endpoint3.BaseServer
ch.nolix.core.net.endpoint3.Server
- Alle implementierten Schnittstellen:
IServer
,Closeable
,CloseStateRequestable
,GroupCloseable
,Clearable
,EmptinessRequestable
,AutoCloseable
- Version:
- 2016-11-01
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic Server
forPort
(int port) static Server
forPortAndHttpMessage
(int port, String httpMessage) int
getPort()
protected void
noteAddedDefaultSlot
(ISlot defaultSlot) Notes that the given defaultSlot has been added to the currentBaseServer
.protected void
noteAddedSlot
(ISlot slot) Notes that the given slot has been added to the currentBaseServer
.protected void
noteRemovedSlot
(ISlot slot) Notes that the given slot has been removed from the currentBaseServer
.Von Klasse geerbte Methoden ch.nolix.core.net.endpoint3.BaseServer
addDefaultSlot, addSlot, clear, containsDefaultSlot, containsSlotWithName, getStoredCloseController, isEmpty, noteClose, removeSlotByName
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
-
forPort
- Parameter:
port
-- Gibt zurück:
- a new
Server
that will listen toNetEndPoint
s on the given port. - Löst aus:
ArgumentIsOutOfRangeException
- if the given port is not in [0, 65535].
-
forPortAndHttpMessage
- Parameter:
port
-httpMessage
-- Gibt zurück:
- a new
Server
that will listen toNetEndPoint
s on the given port. When a web browser connects to theServer
, theServer
will send the given httpMessage and close the connection. - Löst aus:
ArgumentIsOutOfRangeException
- if the given port is not in [0, 65535].ArgumentIsNullException
- if the given httpMessage is null.EmptyArgumentException
- if the given httpMessage is blank.
-
getPort
public int getPort()- Gibt zurück:
- the port of the current
Server
.
-
getSecurityLevel
-
noteAddedDefaultSlot
Notes that the given defaultSlot has been added to the currentBaseServer
.- Angegeben von:
noteAddedDefaultSlot
in KlasseBaseServer
- Parameter:
defaultSlot
-
-
noteAddedSlot
Notes that the given slot has been added to the currentBaseServer
.- Angegeben von:
noteAddedSlot
in KlasseBaseServer
- Parameter:
slot
-
-
noteRemovedSlot
Notes that the given slot has been removed from the currentBaseServer
.- Angegeben von:
noteRemovedSlot
in KlasseBaseServer
- Parameter:
slot
-
-