Package ch.nolix.core.net.endpoint2
Klasse NetEndPoint
java.lang.Object
ch.nolix.core.net.baseendpoint.AbstractBaseEndPoint
ch.nolix.core.net.endpoint2.AbstractEndPoint
ch.nolix.core.net.endpoint2.NetEndPoint
- Alle implementierten Schnittstellen:
IBaseEndPoint,IEndPoint,Closeable,CloseStateRequestable,GroupCloseable,AutoCloseable
- Version:
- 2017-05-22
- Autor:
- Silvan Wyss
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungNetEndPoint(int port) Creates a newNetEndPointthat will connect to the default target on the given port on the local machine.NetEndPoint(int port, String target) Creates a newNetEndPointthat will connect to the given target on the given port on the local machine.NetEndPoint(String ip) Creates a newNetEndPointthat will connect to the default target on the HTTP port (80) on the machine with the given ip.NetEndPoint(String ip, int port) Creates a newNetEndPointthat will connect to the default target on the given port on the machine with the given ip.NetEndPoint(String ip, int port, String target) Creates a newNetEndPointthat will connect to the given target on the given port on the machine with the given ip. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetReplyForRequest(String message) Sends the given message and returns the reply.booleanbooleanVon Klasse geerbte Methoden ch.nolix.core.net.endpoint2.AbstractEndPoint
assertIsOpen, getStoredReplier, hasReplier, noteClose, setReplierVon Klasse geerbte Methoden ch.nolix.core.net.baseendpoint.AbstractBaseEndPoint
getStoredCloseController, getTargetSlotDefinition, hasDefaultTargetSlot, isBackendEndPoint, isFrontendEndPoint, isLocalEndPoint, isSocketEndPoint, isWebSocketEndPointVon 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.resourcecontrol.closecontroller.GroupCloseable
close, createCloseDependencyTo, getStoredCloseController, isClosedVon Schnittstelle geerbte Methoden ch.nolix.coreapi.net.baseendpoint.IBaseEndPoint
getTargetSlotDefinition, hasDefaultTargetSlot, isBackendEndPoint, isFrontendEndPoint, isLocalEndPoint, isSocketEndPoint, isWebSocketEndPoint
-
Konstruktordetails
-
NetEndPoint
public NetEndPoint(int port) Creates a newNetEndPointthat will connect to the default target on the given port on the local machine.- Parameter:
port-- Löst aus:
ArgumentIsOutOfRangeException- if the given port is not in [0, 65535].
-
NetEndPoint
Creates a newNetEndPointthat will connect to the given target on the given port on the local machine.- Parameter:
port-target-- Löst aus:
ArgumentIsOutOfRangeException- if the given port is not in [0, 65535].ArgumentIsNullException- if the given target is null.InvalidArgumentException- if the given target is blank.
-
NetEndPoint
Creates a newNetEndPointthat will connect to the default target on the HTTP port (80) on the machine with the given ip.- Parameter:
ip-
-
NetEndPoint
Creates a newNetEndPointthat will connect to the default target on the given port on the machine with the given ip.- Parameter:
ip-port-- Löst aus:
ArgumentIsOutOfRangeException- if the given port is not in [0, 65535].
-
NetEndPoint
Creates a newNetEndPointthat will connect to the given target on the given port on the machine with the given ip.- Parameter:
ip-port-target-- Löst aus:
ArgumentIsOutOfRangeException- if the given port is not in [0, 65535].ArgumentIsNullException- if the given target is null.InvalidArgumentException- if the given target is blank.
-
-
Methodendetails
-
getConnectionType
-
getCustomTargetSlot
- Gibt zurück:
- the target of the current
NetEndPoint. - Löst aus:
ArgumentDoesNotHaveAttributeException- if this net end point does not have a target.
-
getPeerType
-
getSecurityMode
-
isNetEndPoint
public boolean isNetEndPoint()- Gibt zurück:
- true if the current
NetEndPointis a net end point.
-
getReplyForRequest
Sends the given message and returns the reply.- Parameter:
message-- Gibt zurück:
- the reply to the given message if the current
NetEndPointstays connected, null otherwise.
-
hasCustomTargetSlot
public boolean hasCustomTargetSlot()
-