日期:2014-05-16 浏览次数:20415 次
序号  | 方法  | 说明  | 
| 1 | object getAttribute(String name) | 返回指定属性的属性值 | 
| 2 | Enumeration getAttributeNames() | 返回所有可用属性名的枚举 | 
| 3 | String getCharacterEncoding() | 返回字符编码方式 | 
| 4 | int getContentLength() | 返回请求体的长度(以字节数) | 
| 5 | String getContentType() | 得到请求体的MIME类型 | 
| 6 | ServletInputStream getInputStream() | 得到请求体中一行的二进制流 | 
| 7 | String getParameter(String name) | 返回name指定参数的参数值 | 
| 8 | Enumeration getParameterNames() | 返回可用参数名的枚举 | 
| 9 | String[] getParameterValues(String name) | 返回包含参数name的所有值的数组 | 
| 10 | String getProtocol() | 返回请求用的协议类型及版本号 | 
| 11 | String getScheme() | 返回请求用的计划名,如:http.https及ftp等 | 
| 12 | String getServerName() | 返回接受请求的服务器主机名 | 
| 13 | int getServerPort() | 返回服务器接受此请求所用的端口号 | 
| 14 | BufferedReader getReader() | 返回解码过了的请求体 | 
| 15 | String getRemoteAddr() | 返回发送此请求的客户端IP地址 | 
| 16 | String getRemoteHost() | 返回发送此请求的客户端主机名 | 
| 17 | void setAttribute(String key,Object obj) | 设置属性的属性值 | 
| 18 | String getRealPath(String path) | 返回一虚拟路径的真实路径 | 
序号  | 方法  | 说明  | 
| 1 | String getCharacterEncoding() | 返回响应用的是何种字符编码 | 
| 2 | ServletOutputStream getOutputStream() | 返回响应的一个二进制输出流 | 
| 3 | PrintWriter getWriter() | 返回可以向客户端输出字符的一个对象 | 
| 4 | void setContentLength(int len) | 设置响应头长度 | 
| 5 | void setContentType(String type) | 设置响应的MIME类型 | 
| 6 | sendRedirect(java.lang.String location) | 重新定向客户端的请求 | 
序号  | 方法  | 说明  | 
| 1 | long getCreationTime() | 返回SESSION创建时间 | 
| 2 | public String getId() | 返回SESSION创建时JSP引擎为它设的惟一ID号 | 
| 3 | long getLastAccessedTime() | 返回此SESSION里客户端最近一次请求时间 | 
| 4 | int getMaxInactiveInterval() | 返回两次请求间隔多长时间此SESSION被取消(ms) | 
| 5 | String[] getValueNames() | 返回一个包含此SESSION中所有可用属性的数组 | 
| 6 | void invalidate() | 取消SESSION,使SESSION不可用 | 
| 7 | boolean isNew() | 返回服务器创建的一个SESSION,客户端是否已经加入 | 
| 8 | void removeValue(String name) | 删除SESSION中指定的属性 | 
| 9 | void setMaxInactiveInterval() | 设置两次请求间隔多长时间此SESSION被取消(ms) |