| Object getAttribute(String name) |
返回指定属性的属性值 |
| Enumeration getAttributeNames |
返回所有可用属性名的枚举 |
| String getCharaterEncoding |
返回字符编码方式 |
| int getContentLength() |
返回请求体的字节数 |
| String getContentType() |
返回请求体的 MIME 类型 |
| ServletInputStream getInputStream() |
返回请求体的一行二进制流 |
| String getParameter(String name) |
返回 name 指定参数的参数值 |
| Enumeration getParameterNames() |
返回可用参数名的枚举 |
| String[] getParameterValues(String name) |
返回包含参数 name 的所有值的数组 |
| String getProtocol() |
返回请求用的协议类型及版本号 |
| String getServerName() |
返回接收请求的服务器主机名 |
| int getServerPort() |
返回服务器接收此请求的端口号 |
| String getRemoteAddr() |
返回发送此请求的客户端 IP 地址 |
| String getRemoteHost() |
返回发送此请求的客户端主机名 |
| void setAttribute(String key,Obeject obj) |
设置属性的属性值 |
| String geRealPath(String path) |
返回一虚拟路径的真实路径 |