/** * Return the URI corresponding to the last request for this socket or the websocket handshake * @return */ public String uri() { String ret = delegate.uri(); return ret; }
/** * Return the URI corresponding to the last request for this socket or the websocket handshake * @return */ public String uri() { String ret = delegate.uri(); return ret; }
private static Vector getInitialSize(SockJSSocket socket) { QueryStringDecoder decoder = new QueryStringDecoder(socket.uri()); Map<String, List<String>> params = decoder.parameters(); try { int cols = getParamValue(params, "cols", 80); int rows = getParamValue(params, "rows", 24); return new Vector(cols, rows); } catch (Exception e) { return new Vector(80, 24); } }