this.endpoint = endpoint;
this.servletHost = servletHost;
}
public void start() {
WebsocketBinding binding = (WebsocketBinding) endpoint.getBinding();
int port = DEFAULT_PORT;
if (binding.getPort() != null) {
port = Integer.parseInt(binding.getPort());
}
try {
WebsocketServer server = initServerForURI(port);
String component = endpoint.getComponent().getName();
String service = endpoint.getService().getName();