public class ReplacementServiceFlickrImpl extends java.lang.Object implements ReplacementService
ReplacementService
to provide previews for Flickr
links.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
API_KEY
API Key required to access the Flickr api.
|
static java.lang.String |
FLICKR_CONFIG_LABEL
Configuration label shown in the config form.
|
static java.lang.String |
FLICKR_PATTERN
The regex used to match the link in the message.
|
static java.lang.String |
SOURCE_NAME
Source name; also used as property label.
|
Constructor and Description |
---|
ReplacementServiceFlickrImpl()
Constructor for ReplacementServiceFlickrImpl.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPattern()
Returns the pattern of the source
|
java.lang.String |
getReplacement(java.lang.String sourceString)
Replaces the Flickr image links with their corresponding thumbnails.
|
java.lang.String |
getSourceName()
Returns the source name
|
public static final java.lang.String FLICKR_PATTERN
public static final java.lang.String API_KEY
public static final java.lang.String FLICKR_CONFIG_LABEL
public static final java.lang.String SOURCE_NAME
public ReplacementServiceFlickrImpl()
public java.lang.String getReplacement(java.lang.String sourceString)
getReplacement
in interface ReplacementService
sourceString
- the original flickr image link.public java.lang.String getSourceName()
getSourceName
in interface ReplacementService
public java.lang.String getPattern()
getPattern
in interface ReplacementService
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.