public class VersionedCatalogLoader extends Object implements CatalogLoader, Closeable
| Constructor and Description |
|---|
VersionedCatalogLoader(CatalogConfig config,
PriceOverride priceOverride,
InternalCallContextFactory internalCallContextFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected URI |
appendToURI(URL url,
String filename) |
void |
close() |
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(Collection<String> catalogXMLs,
boolean filterTemplateCatalog,
Long tenantRecordId) |
VersionedCatalog |
loadDefaultCatalog(String uriString) |
@Inject public VersionedCatalogLoader(CatalogConfig config, PriceOverride priceOverride, InternalCallContextFactory internalCallContextFactory)
public VersionedCatalog loadDefaultCatalog(String uriString) throws CatalogApiException
loadDefaultCatalog in interface CatalogLoaderCatalogApiExceptionpublic VersionedCatalog load(Collection<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
URISyntaxExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2010–2021. All rights reserved.