public interface RestResponse
| Modifier and Type | Method and Description |
|---|---|
String |
content() |
String |
contentType() |
void |
cookie(Map cookieInfo) |
void |
cookie(String name,
String value) |
javax.servlet.http.HttpServletResponse |
httpServletResponse() |
Object |
originContent() |
RestResponse |
originContent(Object obj) |
javax.servlet.ServletOutputStream |
outputStream() |
PrintWriter |
printWriter() |
void |
redirectTo(String path,
Map params) |
int |
status() |
void |
write(byte[] content) |
void |
write(int httpStatus,
String content) |
void |
write(int httpStatus,
String content,
ViewType viewType) |
void |
write(String content) |
void |
write(String content,
ViewType viewType) |
void write(String content)
void write(int httpStatus,
String content)
void write(byte[] content)
void cookie(Map cookieInfo)
String content()
Object originContent()
RestResponse originContent(Object obj)
int status()
PrintWriter printWriter() throws IOException
IOExceptionjavax.servlet.ServletOutputStream outputStream()
throws IOException
IOExceptionjavax.servlet.http.HttpServletResponse httpServletResponse()
throws IOException
IOExceptionString contentType()
Copyright © 2020. All rights reserved.