Package org.ametys.web.url
Class UrlPreview
java.lang.Object
org.ametys.web.url.UrlPreview
This bean represents a url preview with title, description, image and favico
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the descriptionGet the favicoGet the image urlgetTitle()
Get the titlegetUrl()
Get the urlvoid
setDescription
(String description) Set the descriptionvoid
setFavicon
(String favico) Set the absolute url of favicovoid
setImageUrl
(String imgUrl) Set the absolute url of imagevoid
Set the titlevoid
Set the urltoJSON()
Get the JSON representation of this url previewvoid
toSAX
(ContentHandler handler, String tagName) Generates sax events representing this url preview
-
Constructor Details
-
UrlPreview
public UrlPreview()Empty constructor
-
-
Method Details
-
setTitle
Set the title- Parameters:
title
- the title
-
getTitle
Get the title- Returns:
- the title
-
setDescription
Set the description- Parameters:
description
- the description
-
getDescription
Get the description- Returns:
- the description
-
setImageUrl
Set the absolute url of image- Parameters:
imgUrl
- the url of image
-
getImageUrl
Get the image url- Returns:
- the absolute url of the image
-
setFavicon
Set the absolute url of favico- Parameters:
favico
- the url of favico
-
getFavicon
Get the favico- Returns:
- the favico absolute url
-
setUrl
Set the url- Parameters:
url
- the url
-
getUrl
Get the url- Returns:
- the url
-
toJSON
Get the JSON representation of this url preview- Returns:
- the properties as json
-
toSAX
Generates sax events representing this url preview- Parameters:
handler
- The content handler to sax intotagName
- the root tag name- Throws:
SAXException
- if an error occurs while saxing
-