public void doClose(int code, String reason) throws IOException { this.grizzlySocket.close(code, reason); }
public void respond(WebSocket socket, DataFrame frame) { socket.onClose(frame); socket.close(); } }
public void respond(WebSocket socket, DataFrame frame) { socket.onClose(frame); socket.close(); } }
public void respond(WebSocket socket, DataFrame frame) { socket.onClose(frame); socket.close(); } }
public void respond(WebSocket socket, DataFrame frame) { socket.onClose(frame); socket.close(); } }
public void respond(WebSocket socket, DataFrame frame) { socket.onClose(frame); socket.close(); } }
public void expire() throws IOException { this.socket.close(); this.properties = new HashMap(); this.setValid(false); }
public void respond(WebSocket socket, DataFrame frame) { socket.onClose(frame); socket.close(); } }
/** * When a {@link WebSocket#onClose(DataFrame)} is invoked, the {@link WebSocket} * will be unassociated with this application and closed. * * If this method is overridden, the overriding method <em>must</em> * call {@link #remove(WebSocket)}. This is necessary to ensure WebSocket * instances are not leaked nor are message operations against closed sockets * are performed. * * @param socket the {@link WebSocket} being closed. * @param frame the closing frame. */ @Override public void onClose(WebSocket socket, DataFrame frame) { remove(socket); socket.close(); }
/** * When a {@link WebSocket#onClose(DataFrame)} is invoked, the {@link WebSocket} * will be unassociated with this application and closed. * * If this method is overridden, the overriding method <em>must</em> * call {@link #remove(WebSocket)}. This is necessary to ensure WebSocket * instances are not leaked nor are message operations against closed sockets * are performed. * * @param socket the {@link WebSocket} being closed. * @param frame the closing frame. */ @Override public void onClose(WebSocket socket, DataFrame frame) { remove(socket); socket.close(); }
/** * When a {@link WebSocket#onClose(DataFrame)} is invoked, the {@link WebSocket} * will be unassociated with this application and closed. * * If this method is overridden, the overriding method <em>must</em> * call {@link #remove(WebSocket)}. This is necessary to ensure WebSocket * instances are not leaked nor are message operations against closed sockets * are performed. * * @param socket the {@link WebSocket} being closed. * @param frame the closing frame. */ @Override public void onClose(WebSocket socket, DataFrame frame) { remove(socket); socket.close(); }
/** * When a {@link WebSocket#onClose(DataFrame)} is invoked, the {@link WebSocket} * will be unassociated with this application and closed. * * If this method is overridden, the overriding method <em>must</em> * call {@link #remove(WebSocket)}. This is necessary to ensure WebSocket * instances are not leaked nor are message operations against closed sockets * are performed. * * @param socket the {@link WebSocket} being closed. * @param frame the closing frame. */ @Override public void onClose(WebSocket socket, DataFrame frame) { remove(socket); socket.close(); }
/** * When a {@link WebSocket#onClose(DataFrame)} is invoked, the {@link WebSocket} * will be unassociated with this application and closed. * * If this method is overridden, the overriding method <em>must</em> * call {@link #remove(WebSocket)}. This is necessary to ensure WebSocket * instances are not leaked nor are message operations against closed sockets * are performed. * * @param socket the {@link WebSocket} being closed. * @param frame the closing frame. */ @Override public void onClose(WebSocket socket, DataFrame frame) { remove(socket); socket.close(); }
/** * When a {@link WebSocket#onClose(DataFrame)} is invoked, the {@link WebSocket} * will be unassociated with this application and closed. * * If this method is overridden, the overriding method <em>must</em> * call {@link #remove(WebSocket)}. This is necessary to ensure WebSocket * instances are not leaked nor are message operations against closed sockets * are performed. * * @param socket the {@link WebSocket} being closed. * @param frame the closing frame. */ @Override public void onClose(WebSocket socket, DataFrame frame) { remove(socket); socket.close(); }
@Override public void onClosed(final Closeable closeable, final CloseType type) throws IOException { final WebSocket webSocket = WebSocketHolder.getWebSocket(connection); webSocket.close(); webSocket.onClose(new ClosingFrame(WebSocket.END_POINT_GOING_DOWN, "Close detected on connection")); } });
@Override public void onClosed(final Closeable closeable, final CloseType type) throws IOException { final WebSocket webSocket = WebSocketHolder.getWebSocket(connection); webSocket.close(); webSocket.onClose(new ClosingFrame(WebSocket.END_POINT_GOING_DOWN, "Close detected on connection")); } });
@Override public void onClosed(final Closeable closeable, final CloseType type) throws IOException { final WebSocket webSocket = WebSocketHolder.getWebSocket(connection); webSocket.close(); webSocket.onClose(new ClosingFrame(WebSocket.END_POINT_GOING_DOWN, "Close detected on connection")); } });
@Override public void onClosed(final Closeable closeable, final CloseType type) throws IOException { final WebSocket webSocket = WebSocketHolder.getWebSocket(connection); webSocket.close(); webSocket.onClose(new ClosingFrame(WebSocket.END_POINT_GOING_DOWN, "Close detected on connection")); } });
@Override public void onClosed(final Closeable closeable, final CloseType type) throws IOException { final WebSocket webSocket = WebSocketHolder.getWebSocket(connection); webSocket.close(); webSocket.onClose(new ClosingFrame(WebSocket.END_POINT_GOING_DOWN, "Close detected on connection")); } });
@Override public void onClosed(final Closeable closeable, final CloseType type) throws IOException { final WebSocket webSocket = WebSocketHolder.getWebSocket(connection); webSocket.close(); webSocket.onClose(new ClosingFrame(WebSocket.END_POINT_GOING_DOWN, "Close detected on connection")); } });