Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.replacement
Interface ReplacementService

All Known Subinterfaces:
SmiliesReplacementService
All Known Implementing Classes:
ReplacementServiceBliptvImpl, ReplacementServiceDailymotionImpl, ReplacementServiceDirectImageImpl, ReplacementServiceFlickrImpl, ReplacementServiceHuluImpl, ReplacementServiceMetacafeImpl, ReplacementServiceSmileyImpl, ReplacementServiceTwitpicImpl, ReplacementServiceVbox7Impl, ReplacementServiceViddlerImpl, ReplacementServiceVimeoImpl, ReplacementServiceYoutubeImpl

public interface ReplacementService

A service used to provide substitution for any text in chat messages, like smileys, video and image previews, etc.

Author:
Purvesh Sahoo

Field Summary
static String SOURCE_NAME
          The source name property name.
 
Method Summary
 String getPattern()
          Returns the pattern used to match the source URL.
 String getReplacement(String sourceString)
          Returns the text replacements if any or returns the original source string.
 String getSourceName()
          Returns the name of the replacement source.
 

Field Detail

SOURCE_NAME

static final String SOURCE_NAME
The source name property name.

See Also:
Constant Field Values
Method Detail

getReplacement

String getReplacement(String sourceString)
Returns the text replacements if any or returns the original source string.

Parameters:
sourceString - the original source string.
Returns:
the replacement string for the source string provided; the original string in case of no match.

getSourceName

String getSourceName()
Returns the name of the replacement source.

Returns:
the replacement source name

getPattern

String getPattern()
Returns the pattern used to match the source URL.

Returns:
the pattern of the source

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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