| Modifier and Type | Field and Description |
|---|---|
(package private) static String | PROP_ALLOWED_HOSTSAllowed hosts config property |
| Constructor and Description |
|---|
SocketController(RouterContext ctx,
ClientAppManager mgr)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)Stop the socket server |
void | startup()Start the socket server |
static final String PROP_ALLOWED_HOSTS
public SocketController(RouterContext ctx, ClientAppManager mgr) throws IOException
IOExceptionpublic ServerSocket buildServer() throws IOException
IOExceptionpublic String getDisplayName()
ClientAppgetDisplayName in interface ClientApppublic String getName()
ClientApppublic ClientAppState getState()
ClientApppublic void shutdown(String[] args)