public class DefaultWebResponse extends AbstractWebResponse
servletResponse| 构造器和说明 |
|---|
DefaultWebResponse() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
send(Object o)
发送对象
|
void |
sendPage(PageView v) |
void |
sendRedirect(RedirectView v) |
void |
sendStream(InputStream inputStream)
发送流
|
protected void |
sendStream(InputStream inputStream,
String contentType) |
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 - 对象IOException - IO异常public void sendString(String s) throws IOException
IResponses - 字符串IOException - IO异常public void sendString(String s, String contentType) throws IOException
IResponses - 字符串contentType - mime类型IOException - IO异常public void sendRedirect(RedirectView v) throws IOException
IOExceptionpublic void sendPage(PageView v) throws IOException
IOExceptionpublic void sendStream(StreamView streamView) throws IOException
IOExceptionprotected void sendStream(InputStream inputStream, String contentType) throws IOException
IOExceptionpublic void sendStream(InputStream inputStream) throws IOException
IResponseinputStream - 输入流IOException - IO异常Copyright © 2020. All Rights Reserved.