public class ReplacementServiceMetacafeImpl extends java.lang.Object implements ReplacementService
ReplacementService
to provide previews for Metacafe
links.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
METACAFE_CONFIG_LABEL
Configuration label shown in the config form.
|
static java.lang.String |
METACAFE_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 |
---|
ReplacementServiceMetacafeImpl()
Constructor for ReplacementServiceMetacafeImpl.
|
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 metacafe video links with their corresponding thumbnails.
|
java.lang.String |
getSourceName()
Returns the source name
|
public static final java.lang.String METACAFE_PATTERN
public static final java.lang.String METACAFE_CONFIG_LABEL
public static final java.lang.String SOURCE_NAME
public ReplacementServiceMetacafeImpl()
public java.lang.String getReplacement(java.lang.String sourceString)
getReplacement
in interface ReplacementService
sourceString
- the original video 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.