Package com.jalios.util.webpage
Class WebPageMetaData
java.lang.Object
com.jalios.util.webpage.WebPageMetaData
Object that contains a web page metadatas (Title, description, url, images...)
- Since:
- jcms-9.0.4 && jcms-10
- Author:
- Kevin Bransard
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetTitle()getUrl()voidsetArticleContent(String articleContent) voidsetDescription(String description) voidsetFavicon(String favicon) voidsetImagesUrl(Set<String> imagesUrl) voidsetMainImage(String mainImage) voidsetStatusCode(int statusCode) voidvoid
-
Constructor Details
-
WebPageMetaData
public WebPageMetaData()
-
-
Method Details
-
getTitle
- Returns:
- the webpage title
-
setTitle
- Parameters:
title- the title to set
-
getDescription
- Returns:
- the webpage description
-
setDescription
- Parameters:
description- the description to set
-
getUrl
- Returns:
- the webpage url
-
setUrl
- Parameters:
url- the url to set
-
getImagesUrl
- Returns:
- a Set of images url from the current webpage
-
setImagesUrl
- Parameters:
imagesUrl- the images urls as a Set to set
-
getMainImage
- Returns:
- the webpage main image
-
setMainImage
- Parameters:
mainImage- the main image to set
-
getStatusCode
public int getStatusCode()- Returns:
- the http statusCode
-
setStatusCode
public void setStatusCode(int statusCode) - Parameters:
statusCode- the http statusCode to set
-
getFavicon
- Returns:
- the favicon of the page
- Since:
- 10.0.6
-
setFavicon
- Parameters:
favicon- the favicon of the web page- Since:
- 10.0.6
-
getArticleContent
-
setArticleContent
-