Package org.web3j.protocol.core
Class Response<T>
- java.lang.Object
-
- org.web3j.protocol.core.Response<T>
-
- Type Parameters:
T- the object type contained within the response
- Direct Known Subclasses:
AdminDataDir,AdminNodeInfo,AdminPeers,BooleanResponse,BooleanResponse,DbGetHex,DbGetString,DbPutHex,DbPutString,EthAccounts,EthBlock,EthBlockNumber,EthCall,EthChainId,EthCoinbase,EthCompileLLL,EthCompileSerpent,EthCompileSolidity,EthEstimateGas,EthFilter,EthGasPrice,EthGetBalance,EthGetBlockTransactionCountByHash,EthGetBlockTransactionCountByNumber,EthGetCode,EthGetCompilers,EthGetStorageAt,EthGetTransactionCount,EthGetTransactionReceipt,EthGetUncleCountByBlockHash,EthGetUncleCountByBlockNumber,EthGetWork,EthHashrate,EthLog,EthMining,EthProtocolVersion,EthSendRawTransaction,EthSendTransaction,EthSign,EthSubmitHashrate,EthSubmitWork,EthSubscribe,EthSyncing,EthTransaction,EthUninstallFilter,EthUnsubscribe,MinerStartResponse,NetListening,NetPeerCount,NetVersion,NewAccountIdentifier,PersonalListAccounts,PersonalSign,PersonalUnlockAccount,ShhAddToGroup,ShhHasIdentity,ShhMessages,ShhNewFilter,ShhNewGroup,ShhNewIdentity,ShhPost,ShhUninstallFilter,ShhVersion,TxPoolContent,TxPoolStatus,VoidResponse,Web3ClientVersion,Web3Sha3
public class Response<T> extends java.lang.ObjectOur common JSON-RPC response type.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResponse.Error
-
Constructor Summary
Constructors Constructor Description Response()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response.ErrorgetError()longgetId()java.lang.StringgetJsonrpc()java.lang.StringgetRawResponse()TgetResult()booleanhasError()voidsetError(Response.Error error)voidsetId(long id)voidsetJsonrpc(java.lang.String jsonrpc)voidsetRawResponse(java.lang.String rawResponse)voidsetResult(T result)
-
-
-
Method Detail
-
getId
public long getId()
-
setId
public void setId(long id)
-
getJsonrpc
public java.lang.String getJsonrpc()
-
setJsonrpc
public void setJsonrpc(java.lang.String jsonrpc)
-
getResult
public T getResult()
-
setResult
public void setResult(T result)
-
getError
public Response.Error getError()
-
setError
public void setError(Response.Error error)
-
hasError
public boolean hasError()
-
getRawResponse
public java.lang.String getRawResponse()
-
setRawResponse
public void setRawResponse(java.lang.String rawResponse)
-
-