Class ArticleMetadataService
java.lang.Object
com.bluebell.greenhouse.sol.services.article.ArticleMetadataService
Service for extracting article metadata from article pages.
- Version:
- 3.0.3
- Author:
- Stephen Prizio
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionextractMetadata(String articleUrl, String html) Extracts article metadata from HTML.findCachedMetadata(String articleUrl) Finds cached article metadata without loading missing values.findMetadata(String articleUrl) Finds article metadata for the given article URL.
-
Constructor Details
-
ArticleMetadataService
public ArticleMetadataService()
-
-
Method Details
-
findMetadata
@Cacheable(cacheNames="marketNewsImageByArticleUrl", key="T(com.bluebell.greenhouse.platform.configuration.cache.market.news.MarketNewsCacheKeys).forArticleUrl(#articleUrl)", sync=true) public ArticleMetadataResponse findMetadata(String articleUrl) Finds article metadata for the given article URL.- Parameters:
articleUrl- article URL- Returns:
ArticleMetadataResponse
-
findCachedMetadata
Finds cached article metadata without loading missing values.- Parameters:
articleUrl- article URL- Returns:
- cached
ArticleMetadataResponse
-
extractMetadata
Extracts article metadata from HTML.- Parameters:
articleUrl- article URLhtml- article HTML- Returns:
ArticleMetadataResponse
-