@Immutable public class StaticServerInfo extends Object implements Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
StaticServerInfo(String sScheme,
String sServerName,
int nServerPort,
String sContextPath) |
| Modifier and Type | Method and Description |
|---|---|
String |
getContextPath() |
String |
getFullContextPath() |
String |
getFullServerPath() |
static StaticServerInfo |
getInstance() |
String |
getScheme() |
String |
getServerName() |
int |
getServerPort() |
static StaticServerInfo |
init(String sScheme,
String sServerName,
int nServerPort,
String sContextPath) |
static boolean |
isSet() |
String |
toString() |
@Nonnull public String getServerName()
@CheckForSigned public int getServerPort()
@Nonnull public String getFullServerPath()
scheme://server:port or scheme://server
if the default port was used@Nonnull public String getFullContextPath()
scheme://server:port/context or
scheme://server:port for the ROOT context.@Nonnull public static StaticServerInfo init(@Nonnull @Nonempty String sScheme, @Nonnull @Nonempty String sServerName, @Nonnegative int nServerPort, @Nonnull String sContextPath)
public static boolean isSet()
@Nonnull public static StaticServerInfo getInstance()
Copyright © 2016–2019 Philip Helger. All rights reserved.