public class DefaultResponseHandler extends Object implements ResponseHandlerI
| 构造器和说明 |
|---|
DefaultResponseHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.http.ResponseEntity<Object> |
handle(Class returnType,
com.alibaba.cola.exception.BaseException e) |
org.springframework.http.ResponseEntity<Object> |
handle(Class returnType,
String errCode,
String errMsg) |
private static org.springframework.http.ResponseEntity<Object> |
handleColaResponse(Class returnType,
String errCode,
String errMsg) |
private static boolean |
isColaResponse(Class returnType) |
public org.springframework.http.ResponseEntity<Object> handle(Class returnType, String errCode, String errMsg)
handle 在接口中 ResponseHandlerIpublic org.springframework.http.ResponseEntity<Object> handle(Class returnType, com.alibaba.cola.exception.BaseException e)
handle 在接口中 ResponseHandlerIprivate static org.springframework.http.ResponseEntity<Object> handleColaResponse(Class returnType, String errCode, String errMsg)
private static boolean isColaResponse(Class returnType)
Copyright © 2024. All rights reserved.