Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.replacement.vimeo
Class ReplacementServiceVimeoImpl

java.lang.Object
  extended by net.java.sip.communicator.impl.replacement.vimeo.ReplacementServiceVimeoImpl
All Implemented Interfaces:
ReplacementService

public class ReplacementServiceVimeoImpl
extends Object
implements ReplacementService

Implements the ReplacementService to provide previews for Vimeo links.

Author:
Purvesh Sahoo

Field Summary
static String SOURCE_NAME
          Source name; also used as property label.
static String VIMEO_CONFIG_LABEL
          Configuration label shown in the config form.
static String VIMEO_PATTERN
          The regex used to match the link in the message.
 
Constructor Summary
ReplacementServiceVimeoImpl()
          Constructor for ReplacementServiceVimeoImpl.
 
Method Summary
 String getPattern()
          Returns the pattern of the source
 String getReplacement(String sourceString)
          Returns the thumbnail URL of the video link provided.
 String getSourceName()
          Returns the source name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VIMEO_PATTERN

public static final String VIMEO_PATTERN
The regex used to match the link in the message.

See Also:
Constant Field Values

VIMEO_CONFIG_LABEL

public static final String VIMEO_CONFIG_LABEL
Configuration label shown in the config form.

See Also:
Constant Field Values

SOURCE_NAME

public static final String SOURCE_NAME
Source name; also used as property label.

See Also:
Constant Field Values
Constructor Detail

ReplacementServiceVimeoImpl

public ReplacementServiceVimeoImpl()
Constructor for ReplacementServiceVimeoImpl.

Method Detail

getReplacement

public String getReplacement(String sourceString)
Returns the thumbnail URL of the video link provided.

Specified by:
getReplacement in interface ReplacementService
Parameters:
sourceString - the original video link.
Returns:
the thumbnail image link; the original link in case of no match.

getSourceName

public String getSourceName()
Returns the source name

Specified by:
getSourceName in interface ReplacementService
Returns:
the source name

getPattern

public String getPattern()
Returns the pattern of the source

Specified by:
getPattern in interface ReplacementService
Returns:
the source pattern

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.