Package org.stellar.anchor.plugins.asset
Class ResourceJsonAssetService
- java.lang.Object
-
- org.stellar.anchor.plugins.asset.ResourceJsonAssetService
-
- All Implemented Interfaces:
AssetService
public class ResourceJsonAssetService extends java.lang.Object implements AssetService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResourceJsonAssetService.Assets
-
Constructor Summary
Constructors Constructor Description ResourceJsonAssetService(java.lang.String assetPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AssetResponsegetAsset(java.lang.String code, java.lang.String issuer)Get the asset identified by `code` and `issuer`.java.util.List<AssetResponse>listAllAssets()Returns all assets supported by the anchor.
-
-
-
Constructor Detail
-
ResourceJsonAssetService
public ResourceJsonAssetService(java.lang.String assetPath) throws java.io.IOException, SepNotFoundException- Throws:
java.io.IOExceptionSepNotFoundException
-
-
Method Detail
-
listAllAssets
public java.util.List<AssetResponse> listAllAssets()
Description copied from interface:AssetServiceReturns all assets supported by the anchor.- Specified by:
listAllAssetsin interfaceAssetService- Returns:
- assets.
-
getAsset
public AssetResponse getAsset(java.lang.String code, java.lang.String issuer)
Description copied from interface:AssetServiceGet the asset identified by `code` and `issuer`.- Specified by:
getAssetin interfaceAssetService- Parameters:
code- The asset codeissuer- The account ID of the issuer- Returns:
-
-