org.apache.camel.component.web3j.Web3jProducerInvokeOnHeaderFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of camel-web3j Show documentation
Show all versions of camel-web3j Show documentation
Camel Ethereum support through Web3j
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.web3j;
import org.apache.camel.AsyncCallback;
import org.apache.camel.Exchange;
import org.apache.camel.spi.InvokeOnHeaderStrategy;
import org.apache.camel.component.web3j.Web3jProducer;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@SuppressWarnings("unchecked")
public class Web3jProducerInvokeOnHeaderFactory implements InvokeOnHeaderStrategy {
@Override
public Object invoke(Object obj, String key, Exchange exchange, AsyncCallback callback) throws Exception {
org.apache.camel.component.web3j.Web3jProducer target = (org.apache.camel.component.web3j.Web3jProducer) obj;
switch (key) {
case "db_get_hex":
case "DB_GET_HEX": target.dbGetHex(exchange.getMessage()); return null;
case "db_get_string":
case "DB_GET_STRING": target.dbGetString(exchange.getMessage()); return null;
case "db_put_hex":
case "DB_PUT_HEX": target.dbPutHex(exchange.getMessage()); return null;
case "db_put_string":
case "DB_PUT_STRING": target.dbPutString(exchange.getMessage()); return null;
case "eth_accounts":
case "ETH_ACCOUNTS": target.ethAccounts(exchange.getMessage()); return null;
case "eth_block_number":
case "ETH_BLOCK_NUMBER": target.ethBlockNumber(exchange.getMessage()); return null;
case "eth_call":
case "ETH_CALL": target.ethCall(exchange.getMessage()); return null;
case "eth_coinbase":
case "ETH_COINBASE": target.ethCoinbase(exchange.getMessage()); return null;
case "eth_compile_lll":
case "ETH_COMPILE_LLL": target.ethCompileLLL(exchange.getMessage()); return null;
case "eth_compile_serpent":
case "ETH_COMPILE_SERPENT": target.ethCompileSerpent(exchange.getMessage()); return null;
case "eth_compile_solidity":
case "ETH_COMPILE_SOLIDITY": target.ethCompileSolidity(exchange.getMessage()); return null;
case "eth_estimate_gas":
case "ETH_ESTIMATE_GAS": target.ethEstimateGas(exchange.getMessage()); return null;
case "eth_gas_price":
case "ETH_GAS_PRICE": target.ethGasPrice(exchange.getMessage()); return null;
case "eth_get_balance":
case "ETH_GET_BALANCE": target.ethGetBalance(exchange.getMessage()); return null;
case "eth_get_block_by_hash":
case "ETH_GET_BLOCK_BY_HASH": target.ethGetBlockByHash(exchange.getMessage()); return null;
case "eth_get_block_by_number":
case "ETH_GET_BLOCK_BY_NUMBER": target.ethGetBlockByNumber(exchange.getMessage()); return null;
case "eth_get_block_transaction_count_by_hash":
case "ETH_GET_BLOCK_TRANSACTION_COUNT_BY_HASH": target.ethGetBlockTransactionCountByHash(exchange.getMessage()); return null;
case "eth_get_block_transaction_count_by_number":
case "ETH_GET_BLOCK_TRANSACTION_COUNT_BY_NUMBER": target.ethGetBlockTransactionCountByNumber(exchange.getMessage()); return null;
case "eth_get_code":
case "ETH_GET_CODE": target.ethGetCode(exchange.getMessage()); return null;
case "eth_get_compilers":
case "ETH_GET_COMPILERS": target.ethGetCompilers(exchange.getMessage()); return null;
case "eth_get_filter_changes":
case "ETH_GET_FILTER_CHANGES": target.ethGetFilterChanges(exchange.getMessage()); return null;
case "eth_get_filter_logs":
case "ETH_GET_FILTER_LOGS": target.ethGetFilterLogs(exchange.getMessage()); return null;
case "eth_get_logs":
case "ETH_GET_LOGS": target.ethGetLogs(exchange.getMessage()); return null;
case "eth_get_storage_at":
case "ETH_GET_STORAGE_AT": target.ethGetStorageAt(exchange.getMessage()); return null;
case "eth_get_transaction_by_block_hash_and_index":
case "ETH_GET_TRANSACTION_BY_BLOCK_HASH_AND_INDEX": target.ethGetTransactionByBlockHashAndIndex(exchange.getMessage()); return null;
case "eth_get_transaction_by_block_number_and_index":
case "ETH_GET_TRANSACTION_BY_BLOCK_NUMBER_AND_INDEX": target.ethGetTransactionByBlockNumberAndIndex(exchange.getMessage()); return null;
case "eth_get_transaction_by_hash":
case "ETH_GET_TRANSACTION_BY_HASH": target.ethGetTransactionByHash(exchange.getMessage()); return null;
case "eth_get_transaction_count":
case "ETH_GET_TRANSACTION_COUNT": target.ethGetTransactionCount(exchange.getMessage()); return null;
case "eth_get_transaction_receipt":
case "ETH_GET_TRANSACTION_RECEIPT": target.ethGetTransactionReceipt(exchange.getMessage()); return null;
case "eth_get_uncle_by_block_hash_and_index":
case "ETH_GET_UNCLE_BY_BLOCK_HASH_AND_INDEX": target.ethGetUncleByBlockHashAndIndex(exchange.getMessage()); return null;
case "eth_get_uncle_by_block_number_and_index":
case "ETH_GET_UNCLE_BY_BLOCK_NUMBER_AND_INDEX": target.ethGetUncleByBlockNumberAndIndex(exchange.getMessage()); return null;
case "eth_get_uncle_count_by_block_hash":
case "ETH_GET_UNCLE_COUNT_BY_BLOCK_HASH": target.ethGetUncleCountByBlockHash(exchange.getMessage()); return null;
case "eth_get_uncle_count_by_block_number":
case "ETH_GET_UNCLE_COUNT_BY_BLOCK_NUMBER": target.ethGetUncleCountByBlockNumber(exchange.getMessage()); return null;
case "eth_get_work":
case "ETH_GET_WORK": target.ethGetWork(exchange.getMessage()); return null;
case "eth_hashrate":
case "ETH_HASHRATE": target.ethHashrate(exchange.getMessage()); return null;
case "eth_mining":
case "ETH_MINING": target.ethMining(exchange.getMessage()); return null;
case "eth_new_block_filter":
case "ETH_NEW_BLOCK_FILTER": target.ethNewBlockFilter(exchange.getMessage()); return null;
case "eth_new_filter":
case "ETH_NEW_FILTER": target.ethNewFilter(exchange.getMessage()); return null;
case "eth_new_pending_transaction_filter":
case "ETH_NEW_PENDING_TRANSACTION_FILTER": target.ethNewPendingTransactionFilter(exchange.getMessage()); return null;
case "eth_send_raw_transaction":
case "ETH_SEND_RAW_TRANSACTION": target.ethSendRawTransaction(exchange.getMessage()); return null;
case "eth_send_transaction":
case "ETH_SEND_TRANSACTION": target.ethSendTransaction(exchange.getMessage()); return null;
case "eth_sign":
case "ETH_SIGN": target.ethSign(exchange.getMessage()); return null;
case "eth_submit_hashrate":
case "ETH_SUBMIT_HASHRATE": target.ethSubmitHashrate(exchange.getMessage()); return null;
case "eth_submit_work":
case "ETH_SUBMIT_WORK": target.ethSubmitWork(exchange.getMessage()); return null;
case "eth_syncing":
case "ETH_SYNCING": target.ethSyncing(exchange.getMessage()); return null;
case "eth_uninstall_filter":
case "ETH_UNINSTALL_FILTER": target.ethUninstallFilter(exchange.getMessage()); return null;
case "net_listening":
case "NET_LISTENING": target.netListening(exchange.getMessage()); return null;
case "net_peer_count":
case "NET_PEER_COUNT": target.netPeerCount(exchange.getMessage()); return null;
case "net_version":
case "NET_VERSION": target.netVersion(exchange.getMessage()); return null;
case "quorum_eth_send_transaction":
case "QUORUM_ETH_SEND_TRANSACTION": target.quorumEthSendTransaction(exchange.getMessage()); return null;
case "quorum_get_private_payload":
case "QUORUM_GET_PRIVATE_PAYLOAD": target.quorumGetPrivatePayload(exchange.getMessage()); return null;
case "quorum_node_info":
case "QUORUM_NODE_INFO": target.quorumNodeInfo(exchange.getMessage()); return null;
case "shh_add_to_group":
case "SHH_ADD_TO_GROUP": target.shhAddToGroup(exchange.getMessage()); return null;
case "shh_get_filter_changes":
case "SHH_GET_FILTER_CHANGES": target.shhGetFilterChanges(exchange.getMessage()); return null;
case "shh_get_messages":
case "SHH_GET_MESSAGES": target.shhGetMessages(exchange.getMessage()); return null;
case "shh_has_identity":
case "SHH_HAS_IDENTITY": target.shhHasIdentity(exchange.getMessage()); return null;
case "shh_new_filter":
case "SHH_NEW_FILTER": target.shhNewFilter(exchange.getMessage()); return null;
case "shh_new_group":
case "SHH_NEW_GROUP": target.shhNewGroup(exchange.getMessage()); return null;
case "shh_new_identity":
case "SHH_NEW_IDENTITY": target.shhNewIdentity(exchange.getMessage()); return null;
case "shh_post":
case "SHH_POST": target.shhPost(exchange.getMessage()); return null;
case "shh_uninstall_filter":
case "SHH_UNINSTALL_FILTER": target.shhUninstallFilter(exchange.getMessage()); return null;
case "shh_version":
case "SHH_VERSION": target.shhVersion(exchange.getMessage()); return null;
case "web3_client_version":
case "WEB3_CLIENT_VERSION": target.web3ClientVersion(exchange.getMessage()); return null;
case "web3_sha3":
case "WEB3_SHA3": target.web3Sha3(exchange.getMessage()); return null;
case "ethprotocolversion":
case "ethProtocolVersion": target.ethProtocolVersion(exchange.getMessage()); return null;
default: return null;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy