|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.tyrus.platform.main.Server
public class Server
Implementation of the WebSocket Server.
| Constructor Summary | |
|---|---|
Server(java.lang.Class<?>... beans)
Create new server instance. |
|
Server(java.lang.String... beanNames)
Create new server instance. |
|
Server(java.lang.String hostName,
int port,
java.lang.String rootPath,
java.lang.Class<?>... beans)
Construct new server. |
|
Server(java.lang.String hostName,
int port,
java.lang.String rootPath,
java.util.Set<java.lang.Class<?>> beans)
Construct new server. |
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
|
static void |
setWebMode(boolean b)
Sets the web node. |
void |
start()
Start the server. |
void |
stop()
Stop the server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Server(java.lang.Class<?>... beans)
beans - to be registered with the serverpublic Server(java.lang.String... beanNames)
beanNames - beans to be registered with the server
public Server(java.lang.String hostName,
int port,
java.lang.String rootPath,
java.lang.Class<?>... beans)
hostName - hostName of the server.port - port of the server.rootPath - root path to the server App.beans - registered application classes.
public Server(java.lang.String hostName,
int port,
java.lang.String rootPath,
java.util.Set<java.lang.Class<?>> beans)
hostName - hostName of the server.port - port of the server.rootPath - root path to the server App.beans - registered application classes.| Method Detail |
|---|
public static void setWebMode(boolean b)
b - web node modepublic void start()
public void stop()
public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||