Class AbstractClient
java.lang.Object
ch.nolix.base.net.clientserver.AbstractClient
- All Implemented Interfaces:
Client, SecurityModeHolder, Closeable, GroupCloseable, OpennessRequestable, AutoCloseable
- Direct Known Subclasses:
AbstractBackendClient
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal SecurityModefinal ICloseControllerfinal Stringfinal booleanfinal voidinternalSetEndPoint(EndPoint endPoint) Sets theAbstractEndPointof the currentAbstractClient.final booleanisClosed()Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Client
isBackendClient, isFrontendClientMethods inherited from interface GroupCloseable
close, createCloseDependencyTo, noteCloseMethods inherited from interface OpennessRequestable
isOpen
-
Constructor Details
-
AbstractClient
public AbstractClient()
-
-
Method Details
-
getSecurityMode
- Specified by:
getSecurityModein interfaceSecurityModeHolder- Returns:
- the
SecurityModeof the currentSecurityModeHolder
-
getStoredCloseController
- Specified by:
getStoredCloseControllerin interfaceGroupCloseable- Returns:
- the
ICloseControllerof the currentGroupCloseable.
-
getTargetApplicationUrlName
- Specified by:
getTargetApplicationUrlNamein interfaceClient- Returns:
- the name of the target application of the current
Clientfor URLs
-
hasTargetApplicationUrlName
public final boolean hasTargetApplicationUrlName()- Specified by:
hasTargetApplicationUrlNamein interfaceClient- Returns:
- true if the current
Clienthas a name of a target application for URLs, false otherwise
-
internalSetEndPoint
Sets theAbstractEndPointof the currentAbstractClient.- Specified by:
internalSetEndPointin interfaceClient- Parameters:
endPoint-- Throws:
RuntimeException- if the given endPoint is nullRuntimeException- if the currentAbstractClientis already connected.
-
isClosed
public final boolean isClosed()- Specified by:
isClosedin interfaceGroupCloseable- Specified by:
isClosedin interfaceOpennessRequestable- Returns:
- true if the current
OpennessRequestableis closed, false otherwise
-