Package nxt.http
Class APIServlet.APIRequestHandler
- java.lang.Object
-
- nxt.http.APIServlet.APIRequestHandler
-
- Direct Known Subclasses:
AddPeer,ApproveTransaction,BlacklistAPIProxyPeer,BlacklistPeer,BroadcastTransaction,BuyAlias,CalculateFullHash,CancelAskOrder,CancelBidOrder,CanDeleteCurrency,CastVote,ClearUnconfirmedTransactions,CreatePoll,CurrencyBuy,CurrencyMint,CurrencyReserveClaim,CurrencyReserveIncrease,CurrencySell,DecodeFileToken,DecodeHallmark,DecodeQRCode,DecodeToken,DecryptFrom,DeleteAccountProperty,DeleteAlias,DeleteAssetShares,DeleteCurrency,DetectMimeType,DGSDelisting,DGSDelivery,DGSFeedback,DGSListing,DGSPriceChange,DGSPurchase,DGSQuantityChange,DGSRefund,DividendPayment,DownloadPrunableMessage,DownloadTaggedData,DumpPeers,EncodeQRCode,EncryptTo,EventRegister,EventWait,ExtendTaggedData,FullHashToId,FullReset,GenerateFileToken,GenerateToken,GetAccount,GetAccountAssetCount,GetAccountAssets,GetAccountBlockCount,GetAccountBlockIds,GetAccountBlocks,GetAccountCurrencies,GetAccountCurrencyCount,GetAccountCurrentAskOrderIds,GetAccountCurrentAskOrders,GetAccountCurrentBidOrderIds,GetAccountCurrentBidOrders,GetAccountExchangeRequests,GetAccountId,GetAccountLedger,GetAccountLedgerEntry,GetAccountLessors,GetAccountPhasedTransactionCount,GetAccountPhasedTransactions,GetAccountProperties,GetAccountPublicKey,GetAccountShufflings,GetAccountTaggedData,GetAlias,GetAliasCount,GetAliases,GetAliasesLike,GetAllAssets,GetAllBroadcastedTransactions,GetAllCurrencies,GetAllExchanges,GetAllOpenAskOrders,GetAllOpenBidOrders,GetAllPhasingOnlyControls,GetAllPrunableMessages,GetAllShufflings,GetAllTaggedData,GetAllTrades,GetAllWaitingTransactions,GetAskOrder,GetAskOrderIds,GetAskOrders,GetAsset,GetAssetAccountCount,GetAssetAccounts,GetAssetDeletes,GetAssetDividends,GetAssetIds,GetAssetPhasedTransactions,GetAssets,GetAssetsByIssuer,GetAssetTransfers,GetAssignedShufflings,GetAvailableToBuy,GetAvailableToSell,GetBalance,GetBidOrder,GetBidOrderIds,GetBidOrders,GetBlock,GetBlockchainStatus,GetBlockchainTransactions,GetBlockId,GetBlocks,GetBuyOffers,GetChannelTaggedData,GetConstants,GetCurrencies,GetCurrenciesByIssuer,GetCurrency,GetCurrencyAccountCount,GetCurrencyAccounts,GetCurrencyFounders,GetCurrencyIds,GetCurrencyPhasedTransactions,GetCurrencyTransfers,GetDataTagCount,GetDataTags,GetDataTagsLike,GetDGSExpiredPurchases,GetDGSGood,GetDGSGoods,GetDGSGoodsCount,GetDGSGoodsPurchaseCount,GetDGSGoodsPurchases,GetDGSPendingPurchases,GetDGSPurchase,GetDGSPurchaseCount,GetDGSPurchases,GetDGSTagCount,GetDGSTags,GetDGSTagsLike,GetECBlock,GetExchanges,GetExchangesByExchangeRequest,GetExchangesByOffer,GetExpectedAskOrders,GetExpectedAssetDeletes,GetExpectedAssetTransfers,GetExpectedBidOrders,GetExpectedBuyOffers,GetExpectedCurrencyTransfers,GetExpectedExchangeRequests,GetExpectedOrderCancellations,GetExpectedSellOffers,GetExpectedTransactions,GetForging,GetFundingMonitor,GetGuaranteedBalance,GetHoldingShufflings,GetInboundPeers,GetLastExchanges,GetLastTrades,GetLinkedPhasedTransactions,GetLog,GetMintingTarget,GetMyInfo,GetNextBlockGeneratorsTemp,GetOffer,GetOrderTrades,GetPeer,GetPeers,GetPhasingOnlyControl,GetPhasingPoll,GetPhasingPolls,GetPhasingPollVote,GetPhasingPollVotes,GetPlugins,GetPoll,GetPollResult,GetPolls,GetPollVote,GetPollVotes,GetPrunableMessage,GetPrunableMessages,GetReferencingTransactions,GetSellOffers,GetSharedKey,GetShufflers,GetShuffling,GetShufflingParticipants,GetStackTraces,GetState,GetTaggedData,GetTaggedDataExtendTransactions,GetTime,GetTrades,GetTransaction,GetTransactionBytes,GetUnconfirmedTransactionIds,GetUnconfirmedTransactions,GetVoterPhasedTransactions,Hash,HexConvert,IssueAsset,IssueCurrency,LeaseBalance,LongConvert,LuceneReindex,MarkHost,ParseTransaction,PlaceAskOrder,PlaceBidOrder,PopOff,PublishExchangeOffer,ReadMessage,RebroadcastUnconfirmedTransactions,RequeueUnconfirmedTransactions,RetrievePrunedData,RetrievePrunedTransaction,RSConvert,Scan,SearchAccountAssets,SearchAccounts,SearchAllOpenAskOrders,SearchAllTrades,SearchAssets,SearchCurrencies,SearchDGSGoods,SearchPolls,SearchTaggedData,SellAlias,SendMessage,SendMoney,SendTransaction,SetAccountInfo,SetAccountProperty,SetAlias,SetAPIProxyPeer,SetLogging,SetPhasingOnlyControl,ShufflingCancel,ShufflingCreate,ShufflingProcess,ShufflingRegister,ShufflingVerify,Shutdown,SignTransaction,StartForging,StartFundingMonitor,StartShuffler,StopForging,StopFundingMonitor,StopShuffler,TransferAsset,TransferCurrency,TrimDerivedTables,UploadTaggedData,VerifyPrunableMessage,VerifyTaggedData
- Enclosing class:
- APIServlet
public abstract static class APIServlet.APIRequestHandler extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringDESCRIPTION_FIELDprotected static java.lang.StringMESSAGE_FIELDprotected static java.lang.StringNAME_FIELD
-
Constructor Summary
Constructors Modifier Constructor Description protectedAPIRequestHandler(java.lang.String fileParameter, APITag[] apiTags, java.lang.String... origParameters)protectedAPIRequestHandler(APITag[] apiTags, java.lang.String... parameters)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected booleanallowRequiredBlockParameters()java.util.Set<APITag>getAPITags()java.lang.StringgetFileParameter()java.util.List<java.lang.String>getParameters()protected abstract org.json.simple.JSONStreamAwareprocessRequest(javax.servlet.http.HttpServletRequest request)protected org.json.simple.JSONStreamAwareprocessRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)protected booleanrequireBlockchain()protected booleanrequireFullClient()protected booleanrequirePassword()protected booleanrequirePost()protected booleanstartDbTransaction()
-
-
-
Method Detail
-
getParameters
public final java.util.List<java.lang.String> getParameters()
-
getAPITags
public final java.util.Set<APITag> getAPITags()
-
getFileParameter
public final java.lang.String getFileParameter()
-
processRequest
protected abstract org.json.simple.JSONStreamAware processRequest(javax.servlet.http.HttpServletRequest request) throws NxtException- Throws:
NxtException
-
processRequest
protected org.json.simple.JSONStreamAware processRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws NxtException- Throws:
NxtException
-
requirePost
protected boolean requirePost()
-
startDbTransaction
protected boolean startDbTransaction()
-
requirePassword
protected boolean requirePassword()
-
allowRequiredBlockParameters
protected boolean allowRequiredBlockParameters()
-
requireBlockchain
protected boolean requireBlockchain()
-
requireFullClient
protected boolean requireFullClient()
-
-