org.nutz.lang
类 Dumps.HTTP

java.lang.Object
  继承者 org.nutz.lang.Dumps.HTTP
包容类:
Dumps

public static class Dumps.HTTP
extends java.lang.Object

显示 HTTP 内容的名称空间


嵌套类摘要
static class Dumps.HTTP.MODE
           
 
构造方法摘要
Dumps.HTTP()
           
 
方法摘要
static java.lang.String all(javax.servlet.http.HttpServletRequest req)
           
static void all(javax.servlet.http.HttpServletRequest req, java.io.OutputStream ops)
           
static java.lang.String body(javax.servlet.http.HttpServletRequest req)
           
static void body(javax.servlet.http.HttpServletRequest req, java.io.OutputStream ops)
           
static java.lang.String header(javax.servlet.http.HttpServletRequest req)
           
static void header(javax.servlet.http.HttpServletRequest req, java.io.OutputStream ops)
           
static java.lang.String http(javax.servlet.http.HttpServletRequest req, Dumps.HTTP.MODE mode)
          详细显示一个 HTTP 请求的全部内容
static void http(javax.servlet.http.HttpServletRequest req, java.io.OutputStream ops, Dumps.HTTP.MODE mode)
          详细显示一个 HTTP 请求的全部内容
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

Dumps.HTTP

public Dumps.HTTP()
方法详细信息

http

public static void http(javax.servlet.http.HttpServletRequest req,
                        java.io.OutputStream ops,
                        Dumps.HTTP.MODE mode)
详细显示一个 HTTP 请求的全部内容

参数:
req - 请求对象
ops - 内容的输出流
mode - 显示 HTTP 头信息的模式: MODE.ALL or MODE.HEADER_ONLY

http

public static java.lang.String http(javax.servlet.http.HttpServletRequest req,
                                    Dumps.HTTP.MODE mode)
详细显示一个 HTTP 请求的全部内容

参数:
req - 请求对象
mode - 显示 HTTP 头信息的模式: MODE.ALL or MODE.HEADER_ONLY
返回:
一个文本字符串表示 HTTP 的全部内容

body

public static void body(javax.servlet.http.HttpServletRequest req,
                        java.io.OutputStream ops)

body

public static java.lang.String body(javax.servlet.http.HttpServletRequest req)

header

public static void header(javax.servlet.http.HttpServletRequest req,
                          java.io.OutputStream ops)

header

public static java.lang.String header(javax.servlet.http.HttpServletRequest req)

all

public static void all(javax.servlet.http.HttpServletRequest req,
                       java.io.OutputStream ops)

all

public static java.lang.String all(javax.servlet.http.HttpServletRequest req)