类 ApiResponse<T>
- java.lang.Object
-
- cn.feiliu.taskflow.open.ApiResponse<T>
-
public final class ApiResponse<T> extends Object
- 从以下版本开始:
- 2024-06-11
- 作者:
- SHOUSHEN.LUAN
-
-
构造器概要
构造器 构造器 说明 ApiResponse(int code, Map<String,List<String>> headers, T data)
ApiResponse(T data)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 boolean
isSuccessful()
ApiException
makeException()
static ApiResponse
noContent()
static ApiResponse
of(Map<String,List<String>> headers, int code, String reason)
static ApiResponse
of(Map<String,List<String>> headers, TaskflowErrorInformation engineErrorResponse, int code, String reason)
static <T> ApiResponse<T>
ok(T body)
-
-
-
方法详细资料
-
noContent
public static ApiResponse noContent()
-
ok
public static <T> ApiResponse<T> ok(@Nullable T body)
-
of
public static ApiResponse of(Map<String,List<String>> headers, TaskflowErrorInformation engineErrorResponse, int code, String reason)
-
makeException
public ApiException makeException() throws ApiException
- 抛出:
ApiException
-
isSuccessful
public boolean isSuccessful()
-
-