public class ReplacementServiceHuluImpl extends java.lang.Object implements ReplacementService
ReplacementService
to provide previews for Hulu links.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HULU_CONFIG_LABEL
Configuration label shown in the config form.
|
static java.lang.String |
HULU_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 |
---|
ReplacementServiceHuluImpl()
Constructor for ReplacementServiceHuluImpl.
|
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 Hulu video links with their corresponding thumbnails.
|
java.lang.String |
getSourceName()
Returns the source name
|
public static final java.lang.String HULU_PATTERN
public static final java.lang.String HULU_CONFIG_LABEL
public static final java.lang.String SOURCE_NAME
public ReplacementServiceHuluImpl()
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.