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.Object
Our common JSON-RPC response type.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Response.Error
-
Constructor Summary
Constructors Constructor Description Response()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response.Error
getError()
long
getId()
java.lang.String
getJsonrpc()
java.lang.String
getRawResponse()
T
getResult()
boolean
hasError()
void
setError(Response.Error error)
void
setId(long id)
void
setJsonrpc(java.lang.String jsonrpc)
void
setRawResponse(java.lang.String rawResponse)
void
setResult(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)
-
-