|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.glassfish.tyrus.server.Server
public class Server
Implementation of the WebSocket Server.
| Constructor Summary | |
|---|---|
Server(Class<?>... beans)
Create new server instance. |
|
Server(String... beanNames)
Create new server instance. |
|
Server(String hostName,
int port,
String rootPath,
Class<?>... beans)
Construct new server. |
|
Server(String hostName,
int port,
String rootPath,
ServerConfiguration configuration)
Construct new server. |
|
Server(String hostName,
int port,
String rootPath,
Set<Class<?>> beans)
Construct new server. |
|
| Method Summary | |
|---|---|
static void |
main(String[] args)
|
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(Class<?>... beans)
beans - to be registered with the serverpublic Server(String... beanNames)
beanNames - beans to be registered with the server
public Server(String hostName,
int port,
String rootPath,
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(String hostName,
int port,
String rootPath,
Set<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(String hostName,
int port,
String rootPath,
ServerConfiguration configuration)
hostName - hostName of the server.port - port of the server.rootPath - root path to the server App.configuration - server configuration.| Method Detail |
|---|
public void start()
public void stop()
public static void main(String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||