class HttpEventTask implements Runnable {

    protected static void parseSingleParam(String single, CommandRequest request) {
        if (single == null || single.length() < 3) {
            return;
        }

        int index = single.indexOf('=');
        if (index <= 0 || index >= single.length() - 1) {
            // empty key/val or nothing found
            return;
        }

        String value = StringUtil.trim(single.substring(index + 1));
        String key = StringUtil.trim(single.substring(0, index));
        try {
            key = URLDecoder.decode(key, SentinelConfig.charset());
            value = URLDecoder.decode(value, SentinelConfig.charset());
        } catch (UnsupportedEncodingException e) {
        }

        request.addParam(key, value);
    }

    public  HttpEventTask(Socket socket);

}