Package com.linecorp.armeria.spring
Class ArmeriaSettings.Port
java.lang.Object
com.linecorp.armeria.spring.ArmeriaSettings.Port
- Direct Known Subclasses:
ArmeriaSettings.InternalServiceProperties
- Enclosing class:
ArmeriaSettings
Port and protocol settings.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable InetAddressReturns the network address that theServeruses.@Nullable StringgetIface()Returns the network interface that theServeruses.@Nullable StringgetIp()Deprecated.intgetPort()Returns the port that theServeruses.@Nullable List<com.linecorp.armeria.common.SessionProtocol>Returns the list ofSessionProtocols that theServeruses.setAddress(InetAddress address) Registers a network address that theServeruses.Registers a network interface that theServeruses.Deprecated.UsesetAddress(InetAddress)instead.setPort(int port) Registers a port that theServeruses.setProtocol(com.linecorp.armeria.common.SessionProtocol protocol) Registers aSessionProtocolthat theServeruses.setProtocols(List<com.linecorp.armeria.common.SessionProtocol> protocols) Registers a list ofSessionProtocols that theServeruses.toString()
-
Constructor Details
-
Port
public Port()
-
-
Method Details
-
getIp
Deprecated.UsegetAddress()instead.Returns the IP address that theServeruses. -
setIp
Deprecated.UsesetAddress(InetAddress)instead.Registers an IP address that theServeruses. -
getAddress
Returns the network address that theServeruses. -
setAddress
Registers a network address that theServeruses. -
getIface
Returns the network interface that theServeruses. -
setIface
Registers a network interface that theServeruses. -
getPort
public int getPort()Returns the port that theServeruses. -
setPort
Registers a port that theServeruses. -
getProtocols
Returns the list ofSessionProtocols that theServeruses. -
setProtocols
public ArmeriaSettings.Port setProtocols(List<com.linecorp.armeria.common.SessionProtocol> protocols) Registers a list ofSessionProtocols that theServeruses. -
setProtocol
Registers aSessionProtocolthat theServeruses. -
toString
-
getAddress()instead.