java--请求头部处理
作者:互联网
// System.out.println("getMethod:" + request.getMethod() + "<br/>");
// System.out.println("getQueryString:" + request.getQueryString() + "<br/>");
// System.out.println("getProtocol:" + request.getProtocol() + "<br/>");
// System.out.println("getContextPath" + request.getContextPath() + "<br/>");
// System.out.println("getPathInfo:" + request.getPathInfo() + "<br/>");
// System.out.println("getPathTranslated:" + request.getPathTranslated() + "<br/>");
// System.out.println("getServletPath:" + request.getServletPath() + "<br/>");
// System.out.println("getRemoteAddr:" + request.getRemoteAddr() + "<br/>");
// System.out.println("getRemoteHost:" + request.getRemoteHost() + "<br/>");
// System.out.println("getRemotePort:" + request.getRemotePort() + "<br/>");
// System.out.println("getLocalAddr:" + request.getLocalAddr() + "<br/>");
// System.out.println("getLocalName:" + request.getLocalName() + "<br/>");
// System.out.println("getLocalPort:" + request.getLocalPort() + "<br/>");
// System.out.println("getServerName:" + request.getServerName() + "<br/>");
// System.out.println("getServerPort:" + request.getServerPort() + "<br/>");
// System.out.println("getScheme:" + request.getScheme() + "<br/>");
// System.out.println("getRequestURL:" + request.getRequestURL() + "<br/>");
HttpSession session = request.getSession();//import javax.servlet.http.HttpSession;
标签:java,getServerPort,--,request,System,头部,println,getServletPath,out 来源: https://blog.csdn.net/CUITAO2305532402/article/details/111872621