public class ReplacementServiceViddlerImpl extends java.lang.Object implements ReplacementService
ReplacementService
to provide previews for Viddler
links.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SOURCE_NAME
Source name; also used as property label.
|
static java.lang.String |
VIDDLER_CONFIG_LABEL
Configuration label shown in the config form.
|
static java.lang.String |
VIDDLER_PATTERN
The regex used to match the link in the message.
|
Constructor and Description |
---|
ReplacementServiceViddlerImpl()
Constructor for ReplacementServiceViddlerImpl.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPattern()
Returns the pattern of the source
|
java.lang.String |
getReplacement(java.lang.String sourceString)
Returns the thumbnail URL of the video link provided.
|
java.lang.String |
getSourceName()
Returns the source name
|
public static final java.lang.String VIDDLER_PATTERN
public static final java.lang.String VIDDLER_CONFIG_LABEL
public static final java.lang.String SOURCE_NAME
public ReplacementServiceViddlerImpl()
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.