|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcn.dreampie.common.http.AbstractResponse<R>
public abstract class AbstractResponse<R>
Date: 1/3/14 Time: 20:46
| 构造方法摘要 | |
|---|---|
protected |
AbstractResponse(Class<R> responseClass,
R response)
|
| 方法摘要 | ||
|---|---|---|
Response |
addCookie(String cookie,
String value)
|
|
Response |
addHeader(String headerName,
String header)
|
|
void |
close()
|
|
protected abstract void |
doAddHeader(String headerName,
String header)
|
|
protected abstract OutputStream |
doGetOutputStream()
|
|
protected abstract void |
doSetHeader(String headerName,
String header)
|
|
protected abstract void |
doSetStatus(HttpStatus httpStatus)
|
|
Charset |
getCharset()
Returns the charset set on this response if any. |
|
String |
getHeader(String headerName)
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 headerName,
String header)
|
|
Response |
setStatus(HttpStatus httpStatus)
|
|
String |
toString()
|
|
|
unwrap(Class<T> clazz)
Unwraps the underlying native implementation of given class. |
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 从接口 cn.dreampie.common.Response 继承的方法 |
|---|
addCookie, clearCookie |
| 构造方法详细信息 |
|---|
protected AbstractResponse(Class<R> responseClass,
R response)
| 方法详细信息 |
|---|
public HttpStatus getStatus()
Response 中的 getStatuspublic Response setStatus(HttpStatus httpStatus)
Response 中的 setStatuspublic Response setContentType(String s)
Response 复制的描述
Response 中的 setContentTypes - the content type
public Charset getCharset()
Response 复制的描述
Response 中的 getCharset
public PrintWriter getWriter()
throws IOException
Response 复制的描述
Response 中的 getWriterIOException
public OutputStream getOutputStream()
throws IOException
Response 中的 getOutputStreamIOException
public void close()
throws IOException
IOExceptionpublic boolean isClosed()
Response 中的 isClosed
public Response addCookie(String cookie,
String value)
Response 中的 addCookie
public final Response setHeader(String headerName,
String header)
Response 中的 setHeader
public final Response addHeader(String headerName,
String header)
protected abstract void doSetHeader(String headerName,
String header)
protected abstract void doAddHeader(String headerName,
String header)
public String getHeader(String headerName)
Response 复制的描述
Response 中的 getHeaderheaderName - the name of the header to get.
public String toString()
Object 中的 toStringpublic <T> T unwrap(Class<T> clazz)
Response 复制的描述
Response 中的 unwrapT - unwrapped classclazz - the class of the underlying implementation
protected abstract OutputStream doGetOutputStream()
throws IOException
IOExceptionprotected abstract void doSetStatus(HttpStatus httpStatus)
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||