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
- Autor:
- Silvan Wyss
-
Methodenübersicht
Von Klasse geerbte Methoden AbstractServer
addDefaultSlot, addSlot, clear, containsDefaultSlot, containsSlotWithName, getStoredCloseController, isEmpty, noteClose, removeSlotByNameVon Klasse geerbte Methoden Object
equals, 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
-
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
-