org.eclipse.jetty.websocket.api.WebSocketAdapter Java Examples

The following examples show how to use org.eclipse.jetty.websocket.api.WebSocketAdapter. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: HarCompareHandler.java    From Cognizant-Intelligent-Test-Scripter with Apache License 2.0 5 votes vote down vote up
@Override
public void onMessage(WebSocketAdapter client, String message) {
    try {
        onMessage((HarAdapter) client, (JSONObject) JSONValue.parse(message));
    } catch (Exception ex) {
        LOG.log(Level.SEVERE, ex.getMessage(), ex);
    }
}
 
Example #2
Source File: HarCompareHandler.java    From Cognizant-Intelligent-Test-Scripter with Apache License 2.0 4 votes vote down vote up
public static synchronized void onConnect(WebSocketAdapter client) {
    CLIENTS.add(client);
    ((HarAdapter) client).serHandler(new HarCompareHandler());
}
 
Example #3
Source File: HarCompareHandler.java    From Cognizant-Intelligent-Test-Scripter with Apache License 2.0 4 votes vote down vote up
public static synchronized void onClose(WebSocketAdapter client, String reason) {
    CLIENTS.remove(client);
}
 
Example #4
Source File: BigEchoSocketHandler.java    From knox with Apache License 2.0 4 votes vote down vote up
BigEchoSocketHandler(final WebSocketAdapter socket) {
  this.socket = socket;
}
 
Example #5
Source File: Handler.java    From Cognizant-Intelligent-Test-Scripter with Apache License 2.0 votes vote down vote up
public void onMessage(WebSocketAdapter client,String message);