@EachProperty(value="listeners") public static final class NettyHttpServerConfiguration.NettyListenerConfiguration extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
NettyHttpServerConfiguration.NettyListenerConfiguration.Family
Address family enum.
|
| Constructor and Description |
|---|
NettyListenerConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
static NettyHttpServerConfiguration.NettyListenerConfiguration |
createTcp(String host,
int port,
boolean ssl)
Create a TCP listener configuration.
|
NettyHttpServerConfiguration.NettyListenerConfiguration.Family |
getFamily()
The address family of this listener.
|
String |
getHost()
For TCP listeners, the host to bind to, or
null to bind to all hosts. |
String |
getPath()
For UNIX domain sockets, the path of the socket.
|
int |
getPort()
The TCP port to bind to.
|
boolean |
isExposeDefaultRoutes()
Whether to expose default routes on this listener.
|
boolean |
isSsl()
Whether to enable SSL on this listener.
|
void |
setExposeDefaultRoutes(boolean exposeDefaultRoutes)
Whether to expose default routes on this listener.
|
void |
setFamily(NettyHttpServerConfiguration.NettyListenerConfiguration.Family family)
The address family of this listener.
|
void |
setHost(String host)
For TCP listeners, the host to bind to, or
null to bind to all hosts. |
void |
setPath(String path)
For UNIX domain sockets, the path of the socket.
|
void |
setPort(int port)
The TCP port to bind to.
|
void |
setSsl(boolean ssl)
Whether to enable SSL on this listener.
|
@Internal public static NettyHttpServerConfiguration.NettyListenerConfiguration createTcp(@Nullable String host, int port, boolean ssl)
host - The host to bind toport - The port to bind tossl - Whether to enable SSLpublic NettyHttpServerConfiguration.NettyListenerConfiguration.Family getFamily()
public void setFamily(@NonNull NettyHttpServerConfiguration.NettyListenerConfiguration.Family family)
family - The address family of this listener.public boolean isSsl()
SslConfiguration.isEnabled()
to be set.public void setSsl(boolean ssl)
SslConfiguration.isEnabled()
to be set.ssl - Whether to enable SSL on this listener.@Nullable public String getHost()
null to bind to all hosts.null to bind to all hosts.public void setHost(@Nullable String host)
null to bind to all hosts.host - For TCP listeners, the host to bind to, or null to bind to all hosts.public int getPort()
-1 to bind to a random port.-1 to bind to a random port.public void setPort(int port)
-1 to bind to a random port.port - The TCP port to bind to. May be -1 to bind to a random port.public String getPath()
public void setPath(String path)
path - For UNIX domain sockets, the path of the socket. For abstract domain sockets, this should start with a NUL byte.@Internal public boolean isExposeDefaultRoutes()
@Internal public void setExposeDefaultRoutes(boolean exposeDefaultRoutes)
exposeDefaultRoutes - Whether to expose default routes on this listener.