HttpServletRrequest方法返回值

Servlet is mapped as /test%3F/* and the application is deployed under /app.

http://30thh.loc:8480/app/test%3F/a%3F+b;jsessionid=S%3F+ID?p+1=c+d&p+2=e+f#a

Method              URL-Decoded Result
-------------------------------------------------
getContextPath()                /app
getLocalAddr()                  127.0.0.1
getLocalName()                  30thh.loc
getLocalPort()                  8480
getMethod()                     GET
getPathInfo()           yes     /a?+b
getProtocol()                   HTTP/1.1
getQueryString()        no      p+1=c+d&p+2=e+f
getRequestedSessionId() no      S%3F+ID
getRequestURI()         no      /app/test%3F/a%3F+b;jsessionid=S+ID
getRequestURL()         no      http://30thh.loc:8480/app/test%3F/a%3F+b;jsessionid=S+ID 
getScheme()                     http
getServerName()                 30thh.loc
getServerPort()                 8480getServletPath()        yes     /test?
getParameterNames()     yes     [p 2, p 1]getParameter("p 1")     yes     c d


你可能感兴趣的:(HttpServletRrequest方法返回值)