Package tbdex.sdk.httpserver
Class TbdexHttpServerConfig
-
- All Implemented Interfaces:
public final class TbdexHttpServerConfigConfiguration data for TBDex HTTP server.
-
-
Field Summary
Fields Modifier and Type Field Description private final Integerportprivate final StringpfiDidprivate final OfferingsApiofferingsApiprivate final ExchangesApiexchangesApiprivate final BalancesApibalancesApi
-
Constructor Summary
Constructors Constructor Description TbdexHttpServerConfig(Integer port, String pfiDid, OfferingsApi offeringsApi, ExchangesApi exchangesApi, BalancesApi balancesApi)
-
Method Summary
Modifier and Type Method Description final IntegergetPort()The port on which the server will listen. final StringgetPfiDid()final OfferingsApigetOfferingsApi()A OfferingsApi implementation to use. final ExchangesApigetExchangesApi()A ExchangesApi implementation to use. final BalancesApigetBalancesApi()A BalancesApi implementation to use. -
-
Constructor Detail
-
TbdexHttpServerConfig
TbdexHttpServerConfig(Integer port, String pfiDid, OfferingsApi offeringsApi, ExchangesApi exchangesApi, BalancesApi balancesApi)
-
-
Method Detail
-
getOfferingsApi
final OfferingsApi getOfferingsApi()
A OfferingsApi implementation to use. If not provided, a FakeOfferingsApi will be used.
-
getExchangesApi
final ExchangesApi getExchangesApi()
A ExchangesApi implementation to use. If not provided, a FakeExchangesApi will be used.
-
getBalancesApi
final BalancesApi getBalancesApi()
A BalancesApi implementation to use. If not provided, Balances API will be disabled. For testing, consumers must explicitly pass in FakeBalancesApi.
-
-
-
-