jsp九个内置对象(6)
时间:2025-04-18
时间:2025-04-18
27. String getPathTranslated() ;
返回用getPathInfo()方法取得的路径信息的实际路径。
28. String getProtocol() ;
返回请求使用的协议。可以是HTTP1.1或者HTTP1.0。
29. BufferedReader getReader() ;
返回请求的输入流对应的Reader对象,该方法和getInputStream()方法在一个页面中只能调用一个。
30. String getRemoteAddr() ;
获取发出请求的客户端IP地址。
31. String getRemoteHost() ;
获取发出请求的客户端主机名
32. String getRemoteUser() ;
返回经过客户端验证的用户名,未经验证返回null。
33. int getRemotePort() ;
返回发出请求的客户端主机端口。
34. String getRealPath( String path ) ;
返回给定虚拟路径的物理路径。
35. RequestDispatcher getRequestDispatcher( String path ) ;
按给定的路径生成资源转向处理适配器对象。
36. String getRequestedSessionId() ;
返回请求的session的标识。