public class DefaultWebResponse extends AbstractWebResponse
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
BUFFER_SIZE |
servletResponse| 构造器和说明 |
|---|
DefaultWebResponse() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
send(Object o)
发送对象
|
void |
sendPage(PageView v) |
void |
sendRedirect(RedirectView v) |
void |
sendStream(InputStream inputStream)
发送流
|
void |
sendStream(StreamView streamView) |
void |
sendString(String s)
发送字符串
|
void |
sendString(String s,
String contentType)
发送字符串
|
getServletResponse, setServletResponsepublic void send(Object o) throws IOException
IResponsesend 在接口中 IResponsesend 在类中 AbstractResponseo - 对象IOExceptionpublic void sendString(String s) throws IOException
IResponses - 字符串IOExceptionpublic void sendString(String s, String contentType) throws IOException
IResponses - 字符串IOExceptionpublic void sendRedirect(RedirectView v) throws IOException
IOExceptionpublic void sendPage(PageView v) throws IOException
IOExceptionpublic void sendStream(StreamView streamView) throws IOException
IOExceptionpublic void sendStream(InputStream inputStream) throws IOException
IResponseinputStream - 输入流IOExceptionCopyright © 2018. All Rights Reserved.