public class ServerEnvironment extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEVELOPMENT_PROPERTY |
static ServerEnvironment |
INSTANCE |
static String |
PORT_PROPERTY |
Constructor and Description |
---|
ServerEnvironment(Map<String,String> env,
Properties properties) |
Modifier and Type | Method and Description |
---|---|
static ServerEnvironment |
env() |
Map<String,String> |
getenv() |
Integer |
getPort() |
Properties |
getProperties() |
URI |
getPublicAddress() |
boolean |
isDevelopment() |
public static final ServerEnvironment INSTANCE
public static final String DEVELOPMENT_PROPERTY
public static final String PORT_PROPERTY
public ServerEnvironment(Map<String,String> env, Properties properties)
public static ServerEnvironment env()
public Properties getProperties()
public Integer getPort()
public boolean isDevelopment()
public URI getPublicAddress()