Modifier and Type | Field and Description |
---|---|
(package private) static String |
PROP_ALLOWED_HOSTS |
Constructor and Description |
---|
SocketController(RouterContext ctx,
ClientAppManager mgr,
String[] args)
RouterApp (new way)
|
Modifier and Type | Method and Description |
---|---|
ServerSocket |
buildServer()
Builds a new server.
|
String |
getDisplayName()
The display name of the ClientApp, used in user interfaces.
|
String |
getName()
The generic name of the ClientApp, used for registration,
e.g.
|
ClientAppState |
getState()
The current state of the ClientApp.
|
void |
shutdown(String[] args)
Do not take a long time.
|
void |
startup()
Do not take a long time.
|
static final String PROP_ALLOWED_HOSTS
public SocketController(RouterContext ctx, ClientAppManager mgr, String[] args) throws IOException
IOException
public void startup()
ClientApp
public void shutdown(String[] args)
ClientApp
public ClientAppState getState()
ClientApp
public String getName()
ClientApp
public String getDisplayName()
ClientApp
getDisplayName
in interface ClientApp
public ServerSocket buildServer() throws IOException
IOException