request.getHeader(""),简单的说就是获取请求的头部信息,根据http协议,它能获取到用户访问链接的信息. /** * Returns the value of the specified request header * as a <code>String</code>. If the request did not include a header * of the specified name, this method returns &
使用最多,主要用来接收客户端发送而来的请求信息,他是javax.servlet.http.HttpServletRequest接口的实例化对象. public interface HttpServletRequest extends ServletRequest HttpServletRequest是 ServletRequest的子接口,而 ServletRequest只有这一个子接口既然这样,为什么不能合并成一个接口呢.,长远来看,主要协议是http,如果以后有更多的协议,就直接继承 Ser