public class VersionedCatalogLoader extends Object implements CatalogLoader
| Constructor and Description |
|---|
VersionedCatalogLoader(org.killbill.clock.Clock clock,
PriceOverride priceOverride,
InternalCallContextFactory internalCallContextFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected URI |
appendToURI(URL url,
String filename) |
protected List<String> |
extractHrefs(String directoryContents) |
protected List<URI> |
findXmlFileReferences(String directoryContents,
URL url) |
protected List<URI> |
findXmlReferences(String directoryContents,
URL url) |
protected List<URI> |
findXmlUrlReferences(String directoryContents,
URL url) |
VersionedCatalog |
load(Iterable<String> catalogXMLs,
boolean filterTemplateCatalog,
Long tenantRecordId) |
VersionedCatalog |
loadDefaultCatalog(String uriString) |
@Inject
public VersionedCatalogLoader(org.killbill.clock.Clock clock,
PriceOverride priceOverride,
InternalCallContextFactory internalCallContextFactory)
public VersionedCatalog loadDefaultCatalog(String uriString) throws CatalogApiException
loadDefaultCatalog in interface CatalogLoaderCatalogApiExceptionpublic VersionedCatalog load(Iterable<String> catalogXMLs, boolean filterTemplateCatalog, Long tenantRecordId) throws CatalogApiException
CatalogApiExceptionprotected List<URI> findXmlReferences(String directoryContents, URL url) throws URISyntaxException
URISyntaxExceptionprotected List<URI> findXmlUrlReferences(String directoryContents, URL url) throws URISyntaxException
URISyntaxExceptionprotected List<URI> findXmlFileReferences(String directoryContents, URL url) throws URISyntaxException
URISyntaxExceptionprotected URI appendToURI(URL url, String filename) throws URISyntaxException
URISyntaxExceptionCopyright © 2010-2016. All Rights Reserved.