@Immutable public class HttpListener extends Object
| Constructor and Description |
|---|
HttpListener(String name,
String bindAddress,
int port)
Creates a new HTTP listener.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getBindAddress()
Returns the bind address the listener is bound to
|
String |
getName()
Returns the unique name of the listener
|
int |
getPort()
Returns the port the listener is bound to
|
public HttpListener(@NotNull String name, @NotNull String bindAddress, int port)
name - The unique identifier of the listener.bindAddress - the bind address the listener should be bound to. Must be a valid IP or hostname.port - the port the listener should be bound to. Must be between 1 and 65535.NullPointerException - if name or host are nullIllegalArgumentException - if the port is not validpublic String getName()
public String getBindAddress()
public int getPort()
Copyright © 2013-2018 dc-square GmbH. All Rights Reserved.