MockSession session = new MockSession();
for (int i = 0; i < buf.length; i++) {
httpDecoder.decode(buf[i], session);
}
HttpServletRequestImpl req = session.request;
System.out.println(req.getMethod());
System.out.println(req.getRequestURI());
System.out.println(req.getProtocol());
System.out.println(req.getHeader("Host"));
System.out.println(req.getHeader("Accept-Language"));
System.out.println(req.getHeader("Connection"));
System.out.println(req.getHeader("Accept-Encoding"));
System.out.println(req.toString());
System.out.println((req.getContextPath() + req.getServletPath()).length());
Enumeration<String> enumeration = req.getHeaders("Accept-Encoding");
while (enumeration.hasMoreElements()) {
System.out.println(">>" + enumeration.nextElement());
}
System.out.println(HttpServletResponseImpl.GMT_FORMAT