public class HttpEmbed extends PortEmbed
Constructor and Description |
---|
HttpEmbed()
Creates a new HttpEmbed configuration.
|
HttpEmbed(int port)
Creates a new HttpEmbed configuration with a specified port.
|
HttpEmbed(int port,
java.lang.String ipAddress)
Creates a new HttpEmbed configuration with a specified port.
|
Modifier and Type | Method and Description |
---|---|
void |
bindTo(ServletService server)
Binds the port to the server
|
int |
getLocalPort()
Returns the local, bound port
|
getAddress, getPort, setAddress, setPort
public HttpEmbed()
public HttpEmbed(int port)
port
- the TCP port of the embedded HTTP port.public HttpEmbed(int port, java.lang.String ipAddress)
port
- the TCP port of the embedded HTTP port.address
- the TCP IP address of the embedded HTTP port.public int getLocalPort()
getLocalPort
in class PortEmbed
public void bindTo(ServletService server)