Package ch.nolix.core.net.endpoint2
Klasse Server
java.lang.Object
ch.nolix.core.net.endpoint2.AbstractServer
ch.nolix.core.net.endpoint2.Server
- Alle implementierten Schnittstellen:
IServer,Closeable,CloseStateRequestable,GroupCloseable,Clearable,EmptinessRequestable,AutoCloseable
- Version:
- 2016-06-01
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic ServerforPort(int port) static ServerforPortAndHttpMessage(int port, String httpMessage) intgetPort()protected voidnoteAddedDefaultSlot(ISlot defaultSlot) Notes that the given defaultSlot has been added to the currentAbstractServer.protected voidnoteAddedSlot(ISlot slot) Notes that the given slot has been added to the currentAbstractServer.protected voidnoteRemovedSlot(ISlot slot) Notes that the given slot has been removed from the currentAbstractServer.Von Klasse geerbte Methoden ch.nolix.core.net.endpoint2.AbstractServer
addDefaultSlot, addSlot, clear, containsDefaultSlot, containsSlotWithName, getStoredCloseController, isEmpty, noteClose, removeSlotByNameVon 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
-
forPort
- Parameter:
port-- Gibt zurück:
- a new
Serverthat will listen toNetEndPoints 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
Serverthat will listen toNetEndPoints on the given port. When a web browser connects to theServer, theServerwill 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.
-
getSecurityMode
-
noteAddedDefaultSlot
Notes that the given defaultSlot has been added to the currentAbstractServer.- Angegeben von:
noteAddedDefaultSlotin KlasseAbstractServer- Parameter:
defaultSlot-
-
noteAddedSlot
Notes that the given slot has been added to the currentAbstractServer.- Angegeben von:
noteAddedSlotin KlasseAbstractServer- Parameter:
slot-
-
noteRemovedSlot
Notes that the given slot has been removed from the currentAbstractServer.- Angegeben von:
noteRemovedSlotin KlasseAbstractServer- Parameter:
slot-
-