Class SimpleEmoticonDisplayMapper
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.editor.inline.SimpleEmoticonDisplayMapper
-
- All Implemented Interfaces:
EmoticonDisplayMapper
public class SimpleEmoticonDisplayMapper extends Object implements EmoticonDisplayMapper
An EmoticonImageMapper which makes use of the type of the emoticon supplied when building the URL to use.
-
-
Constructor Summary
Constructors Constructor Description SimpleEmoticonDisplayMapper(com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAbsoluteImageUrl(Emoticon emoticon)Get an absolute URL for the emoticon (this will include the servers configured baseURL).StringgetImageName(Emoticon emoticon)StringgetRelativeImageUrl(Emoticon emoticon)Get a relative URL for the emoticon.
-
-
-
Method Detail
-
getRelativeImageUrl
public String getRelativeImageUrl(Emoticon emoticon)
Description copied from interface:EmoticonDisplayMapperGet a relative URL for the emoticon. The relative URL will include context path but no server information.- Specified by:
getRelativeImageUrlin interfaceEmoticonDisplayMapper- Parameters:
emoticon- the emoticon for which an image URL is required.- Returns:
- the URL for the image matching the supplied emoticon or null if there is none found.
-
getAbsoluteImageUrl
public String getAbsoluteImageUrl(Emoticon emoticon)
Description copied from interface:EmoticonDisplayMapperGet an absolute URL for the emoticon (this will include the servers configured baseURL).- Specified by:
getAbsoluteImageUrlin interfaceEmoticonDisplayMapper- Parameters:
emoticon- the emoticon for which an image URL is required.- Returns:
- the URL for the image matching the supplied emoticon or null if there is none found.
-
getImageName
public String getImageName(Emoticon emoticon)
- Specified by:
getImageNamein interfaceEmoticonDisplayMapper- Parameters:
emoticon- the emoticon for which an image name is required.- Returns:
- the image name (no extension) for the supplied emoticon or null if there is none found.
-
-