|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
public interface Response
Date: 2/6/13 Time: 9:46 PM
| 方法摘要 | ||
|---|---|---|
Response |
addCookie(javax.servlet.http.Cookie cookie)
|
|
Response |
addCookie(String name,
String value)
|
|
Response |
addCookie(String name,
String value,
int expires)
|
|
Response |
clearCookie(String cookie)
|
|
Charset |
getCharset()
Returns the charset set on this response if any. |
|
String |
getHeader(String value)
Returns the value of a header previously set with setHeader(). |
|
OutputStream |
getOutputStream()
|
|
HttpStatus |
getStatus()
|
|
PrintWriter |
getWriter()
A writer you can write to to send response as text. |
|
boolean |
isClosed()
|
|
Response |
setContentType(String s)
Sets the content type of this response. |
|
Response |
setHeader(String name,
String value)
|
|
Response |
setStatus(HttpStatus status)
|
|
|
unwrap(Class<T> clazz)
Unwraps the underlying native implementation of given class. |
|
| 方法详细信息 |
|---|
HttpStatus getStatus()
Response setStatus(HttpStatus status)
Response setContentType(String s)
s - the content type
Charset getCharset()
PrintWriter getWriter()
throws IOException
IOException
OutputStream getOutputStream()
throws IOException
IOExceptionResponse addCookie(javax.servlet.http.Cookie cookie)
Response addCookie(String name,
String value)
Response addCookie(String name,
String value,
int expires)
Response clearCookie(String cookie)
Response setHeader(String name,
String value)
String getHeader(String value)
value - the name of the header to get.
<T> T unwrap(Class<T> clazz)
T - unwrapped classclazz - the class of the underlying implementation
IllegalArgumentException - if the underlying implementation is not of given type.boolean isClosed()
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||