org.glassfish.tyrus.server
Interface ServerContainer


public interface ServerContainer

Server container used to publish websocket end-points.

Author:
Martin Matula (martin.matula at oracle.com)

Method Summary
 ServerConfiguration getConfiguration()
          Returns server configuration object that can be used to register endpoints and set other configuration parameters.
 void start()
          Starts the server and deploys all the endpoints configured in the corresponding ServerConfiguration.
 void stop()
          Attempts to stops the server (for some containers, such as servlet, which don't support stopping, this may be a no-op).
 

Method Detail

getConfiguration

ServerConfiguration getConfiguration()
Returns server configuration object that can be used to register endpoints and set other configuration parameters.

Returns:
server configuration.

start

void start()
           throws IOException
Starts the server and deploys all the endpoints configured in the corresponding ServerConfiguration.

Throws:
IOException - if something goes wrong.

stop

void stop()
Attempts to stops the server (for some containers, such as servlet, which don't support stopping, this may be a no-op).



Copyright © 2012. All Rights Reserved.