public class

SimpleEmoticonDisplayMapper

extends Object
implements EmoticonDisplayMapper
java.lang.Object
   ↳ com.atlassian.confluence.content.render.xhtml.editor.inline.SimpleEmoticonDisplayMapper

Class Overview

An EmoticonImageMapper which makes use of the type of the emoticon supplied when building the URL to use.

Summary

Public Constructors
SimpleEmoticonDisplayMapper(WebResourceManager webResourceManager)
Public Methods
String getAbsoluteImageUrl(Emoticon emoticon)
Get an absolute URL for the emoticon (this will include the servers configured baseURL).
String getImageName(Emoticon emoticon)
String getRelativeImageUrl(Emoticon emoticon)
Get a relative URL for the emoticon.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.content.render.xhtml.editor.inline.EmoticonDisplayMapper

Public Constructors

public SimpleEmoticonDisplayMapper (WebResourceManager webResourceManager)

Public Methods

public String getAbsoluteImageUrl (Emoticon emoticon)

Get an absolute URL for the emoticon (this will include the servers configured baseURL).

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.

public String getImageName (Emoticon emoticon)

public String getRelativeImageUrl (Emoticon emoticon)

Get a relative URL for the emoticon. The relative URL will include context path but no server information.

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.