Package com.jalios.util.webpage
Class WebPageMetaData
- java.lang.Object
-
- com.jalios.util.webpage.WebPageMetaData
-
public class WebPageMetaData extends java.lang.Object
Object that contains a web page metadatas (Title, description, url, images...)- Since:
- jcms-9.0.4 && jcms-10
- Author:
- Kevin Bransard
-
-
Constructor Summary
Constructors Constructor Description WebPageMetaData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getArticleContent()
java.lang.String
getDescription()
java.lang.String
getFavicon()
java.util.Set<java.lang.String>
getImagesUrl()
java.lang.String
getMainImage()
int
getStatusCode()
java.lang.String
getTitle()
java.lang.String
getUrl()
void
setArticleContent(java.lang.String articleContent)
void
setDescription(java.lang.String description)
void
setFavicon(java.lang.String favicon)
void
setImagesUrl(java.util.Set<java.lang.String> imagesUrl)
void
setMainImage(java.lang.String mainImage)
void
setStatusCode(int statusCode)
void
setTitle(java.lang.String title)
void
setUrl(java.lang.String url)
-
-
-
Method Detail
-
getTitle
public java.lang.String getTitle()
- Returns:
- the webpage title
-
setTitle
public void setTitle(java.lang.String title)
- Parameters:
title
- the title to set
-
getDescription
public java.lang.String getDescription()
- Returns:
- the webpage description
-
setDescription
public void setDescription(java.lang.String description)
- Parameters:
description
- the description to set
-
getUrl
public java.lang.String getUrl()
- Returns:
- the webpage url
-
setUrl
public void setUrl(java.lang.String url)
- Parameters:
url
- the url to set
-
getImagesUrl
public java.util.Set<java.lang.String> getImagesUrl()
- Returns:
- a Set of images url from the current webpage
-
setImagesUrl
public void setImagesUrl(java.util.Set<java.lang.String> imagesUrl)
- Parameters:
imagesUrl
- the images urls as a Set to set
-
getMainImage
public java.lang.String getMainImage()
- Returns:
- the webpage main image
-
setMainImage
public void setMainImage(java.lang.String mainImage)
- 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
public java.lang.String getFavicon()
- Returns:
- the favicon of the page
- Since:
- 10.0.6
-
setFavicon
public void setFavicon(java.lang.String favicon)
- Parameters:
favicon
- the favicon of the web page- Since:
- 10.0.6
-
getArticleContent
public java.lang.String getArticleContent()
-
setArticleContent
public void setArticleContent(java.lang.String articleContent)
-
-