Package | Description |
---|---|
cn.orionsec.kit.lang.define.wrapper | |
cn.orionsec.kit.lang.exception.argument | |
cn.orionsec.kit.lang.utils | |
cn.orionsec.kit.web.servlet.web |
Modifier and Type | Method and Description |
---|---|
HttpWrapper<T> |
HttpWrapper.code(int code) |
HttpWrapper<T> |
HttpWrapper.data(T data) |
static <T> HttpWrapper<T> |
HttpWrapper.error()
失败
|
static <T> HttpWrapper<T> |
HttpWrapper.error(String msg) |
static <T> HttpWrapper<T> |
HttpWrapper.error(String msg,
Object... params) |
static <T> HttpWrapper<T> |
HttpWrapper.error(Throwable t) |
static <T> HttpWrapper<T> |
HttpWrapper.get()
初始化
|
<E> HttpWrapper<E> |
HttpWrapper.map(Function<T,E> mapping)
映射
|
HttpWrapper<T> |
HttpWrapper.msg(String msg) |
static <T> HttpWrapper<T> |
HttpWrapper.of(CodeInfo info)
定义
|
static <T> HttpWrapper<T> |
HttpWrapper.of(CodeInfo info,
T data) |
static <T> HttpWrapper<T> |
HttpWrapper.of(int code,
String msg) |
static <T> HttpWrapper<T> |
HttpWrapper.of(int code,
String msg,
T data) |
static <T> HttpWrapper<T> |
HttpWrapper.ok()
成功
|
static <T> HttpWrapper<T> |
HttpWrapper.ok(T data) |
static HttpWrapper<Object> |
WrapperAdapter.toHttp(Map<?,?> map) |
static <T> HttpWrapper<T> |
WrapperAdapter.toHttp(Map<?,?> map,
Class<T> dataClass) |
static HttpWrapper<Object> |
WrapperAdapter.toHttp(String json)
转Wrapper
|
static <T> HttpWrapper<T> |
WrapperAdapter.toHttp(String json,
Class<T> dataClass) |
HttpWrapper<T> |
RpcWrapper.toHttpWrapper() |
default <T> HttpWrapper<T> |
CodeInfo.toHttpWrapper()
转为 httpWrapper
|
Modifier and Type | Method and Description |
---|---|
HttpWrapper<?> |
HttpWrapperException.getWrapper() |
Constructor and Description |
---|
HttpWrapperException(HttpWrapper<?> wrapper) |
HttpWrapperException(HttpWrapper<?> wrapper,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
static HttpWrapperException |
Exceptions.httpWrapper(HttpWrapper<?> wrapper) |
static HttpWrapperException |
Exceptions.httpWrapper(HttpWrapper<?> wrapper,
Throwable t) |
static <T> T |
Valid.validWrapper(HttpWrapper<T> wrapper) |
Modifier and Type | Method and Description |
---|---|
static void |
Servlets.writeHttpWrapper(javax.servlet.http.HttpServletResponse response,
HttpWrapper<?> wrapper)
写入 httpWrapper
|
Copyright © 2024. All rights reserved.