Class ServerTarget
java.lang.Object
ch.nolix.base.net.target.ServerTarget
- All Implemented Interfaces:
HostHolder, PortHolder, SecurityModeHolder, IServerTarget, UrlRepresentable
- Direct Known Subclasses:
ApplicationInstanceTarget
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionstatic ServerTargetforHostAndPortAndSecurityModeForConnections(String host, int port, SecurityMode securityModeForConnections) final StringgetHost()final intgetPort()final SecurityModetoUrl()
-
Method Details
-
forHostAndPortAndSecurityModeForConnections
public static ServerTarget forHostAndPortAndSecurityModeForConnections(String host, int port, SecurityMode securityModeForConnections) -
getHost
- Specified by:
getHostin interfaceHostHolder- Returns:
- the host of the current
HostHolder
-
getPort
public final int getPort()- Specified by:
getPortin interfacePortHolder- Returns:
- the port of the current
PortHolder
-
getSecurityMode
- Specified by:
getSecurityModein interfaceSecurityModeHolder- Returns:
- the
SecurityModeof the currentSecurityModeHolder
-
toUrl
- Specified by:
toUrlin interfaceUrlRepresentable
-