com.taobao.hsf.RPCResult Maven / Gradle / Ivy
package com.taobao.hsf;
import com.taobao.hsf.domain.HSFResponse;
/**
* Created by ifree613 on 2017/8/11.
*/
public class RPCResult {
private final com.taobao.hsf.invocation.RPCResult rpcResult;
public RPCResult(com.taobao.hsf.invocation.RPCResult rpcResult){
this.rpcResult = rpcResult;
}
public com.taobao.hsf.invocation.RPCResult getRpcResult(){
return rpcResult;
}
@Deprecated
public HSFResponse getHsfResponse() {
return rpcResult.getHsfResponse();
}
@Deprecated
public void setHsfResponse(HSFResponse hsfResponse) {
rpcResult.setHsfResponse(hsfResponse);
}
public Object getAppResponse() {
return rpcResult.getAppResponse();
}
public String getErrorMsg() {
return rpcResult.getErrorMsg();
}
public boolean isError() {
return rpcResult.isError();
}
public void setAppResponse(Object response) {
rpcResult.setAppResponse(response);
}
public void setErrorMsg(String error) {
rpcResult.setErrorMsg(error);
}
public void setClientErrorMsg(String error) {
rpcResult.setClientErrorMsg(error);
}
public String getErrorType() {
return rpcResult.getErrorType();
}
public void setErrorType(String errorType) {
rpcResult.setErrorType(errorType);
}
public boolean isTimeout() {
return rpcResult.isTimeout();
}
public void setIsTimeout(boolean isTimeout) {
rpcResult.setIsTimeout(isTimeout);
}
@Override
public String toString() {
return rpcResult.toString();
}
}