获取请求行的相关信息(张鹏成)
请求方法 getMethod : GET
请求URI getRequestURI : /ch04_zpc/RequestLineServlet
查询串 getQueryString:null
请求协议 getProtocol : HTTP/1.1
上下文路径 getContextPath:/ch04_zpc
额外路径信息 getPathInfo : null
额外路径信息对应资源的真实路径 getPathTranslated : null
Servlet所映射的路径 getServletPath:/RequestLineServlet
客户端ip地址 getRemoteAddr : 3.147.7.215
客户端主机名 getRemoteHost : 3.147.7.215
客户端端口 getRemotePort : 39311
Web服务器端本地ip地址(局域网--内网) getLocalAddr : 172.22.78.173
Web服务器端本地主机名(局域网--内网) getLocalName : iZ2zehwxdlsv7wbex09lkfZ
Web服务器端本地端口(局域网--内网) getLocalPort : 8080
Web服务器公网主机名(互联网--公网) getServerName : 182.92.235.181
Web服务器公网端口(互联网--公网) getServerPort : 8080
请求协议 getScheme : http
请求URL getRequestURL : http://182.92.235.181:8080/ch04_zpc/RequestLineServlet