public class SunRaysServletResponse extends Object
| 构造器和说明 |
|---|
SunRaysServletResponse() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> void |
writeFail(javax.servlet.http.HttpServletResponse response,
int code,
String message) |
static <T> void |
writeResponse(javax.servlet.http.HttpServletResponse response,
boolean success,
int code,
String message,
T data) |
static <T> void |
writeSuccess(javax.servlet.http.HttpServletResponse response,
int code,
String message,
T data) |
public static <T> void writeResponse(javax.servlet.http.HttpServletResponse response,
boolean success,
int code,
String message,
T data)
throws IOException
IOExceptionpublic static <T> void writeFail(javax.servlet.http.HttpServletResponse response,
int code,
String message)
throws IOException
IOExceptionpublic static <T> void writeSuccess(javax.servlet.http.HttpServletResponse response,
int code,
String message,
T data)
throws IOException
IOExceptionCopyright © 2025. All rights reserved.