public class ServerPort
extends java.lang.Object
Constructor and Description |
---|
ServerPort()
Constructor.
|
ServerPort(boolean random,
java.lang.Integer port) |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
getPort() |
boolean |
isRandom() |
void |
setPort(java.lang.Integer port) |
void |
setRandom(boolean random) |
public ServerPort()
public ServerPort(boolean random, java.lang.Integer port)
random
- Whether the port was randomly assignedport
- Port numberpublic boolean isRandom()
public void setRandom(boolean random)
random
- true if the port was randomly assignedpublic java.lang.Integer getPort()
public void setPort(java.lang.Integer port)
port
- Port number