All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.taobao.hsf.RPCResult Maven / Gradle / Ivy

There is a newer version: 1.8.3
Show newest version
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();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy