public class ServerApp
extends java.lang.Object
ChannelBuilder| Constructor and Description |
|---|
ServerApp()
Default empty server application, used for testing
|
ServerApp(java.lang.String contextRoot)
Non secure development localhost application definition
|
ServerApp(java.lang.String contextRoot,
boolean secure,
java.lang.String serverName,
int serverPort)
Server application definition
|
ServerApp(java.lang.String contextRoot,
java.lang.String serverName,
int serverPort)
Non secure server application definition
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContextRoot() |
boolean |
getSecure() |
java.lang.String |
getServerName() |
int |
getServerPort() |
void |
setContextRoot(java.lang.String contextRoot)
Set context root (should start by /)
|
void |
setSecure(boolean secure)
Set the app security mode
|
void |
setServerName(java.lang.String serverName)
Set server host name
|
void |
setServerPort(int serverPort)
Set server port
|
public ServerApp()
public ServerApp(java.lang.String contextRoot)
contextRoot - context root (should start by /)public ServerApp(java.lang.String contextRoot,
java.lang.String serverName,
int serverPort)
contextRoot - context root (should start by /)serverName - server host nameserverPort - server portpublic ServerApp(java.lang.String contextRoot,
boolean secure,
java.lang.String serverName,
int serverPort)
contextRoot - context root (should start by /)secure - true if the server URI should be secure (https/wss/...)serverName - server host nameserverPort - server portpublic boolean getSecure()
public void setSecure(boolean secure)
secure - true if the server URI should be secure (https/wss/...)public java.lang.String getServerName()
public void setServerName(java.lang.String serverName)
serverName - host namepublic int getServerPort()
public void setServerPort(int serverPort)
serverPort - server portpublic java.lang.String getContextRoot()
public void setContextRoot(java.lang.String contextRoot)
contextRoot - context root