class HttpEventTask implements Runnable {

    protected static void parseParams(String queryString, CommandRequest request) {
        if (queryString == null || queryString.length() < 1) {
            return;
        }

        int offset = 0, pos = -1;

        // check anchor
        queryString = removeAnchor(queryString);

        while (true) {
            offset = pos + 1;
            pos = queryString.indexOf('&', offset);
            if (offset == pos) {
                // empty
                continue;
            }
            parseSingleParam(queryString.substring(offset, pos == -1 ? queryString.length() : pos), request);

            if (pos < 0) {
                // reach the end
                break;
            }
        }
    }

    public  HttpEventTask(Socket socket);

}