|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.service.socialnetworkservices.microblog.core.util.URLGenerator
public class URLGenerator
Util class used to deal with issues such as URL's and Hashtags.
Field Summary | |
---|---|
static String |
REGEX_HASHTAG
|
static String |
REGEX_WEBPAGE
|
Method Summary | |
---|---|
List<String> |
analyzeEmbbededLinks(String analyzedText,
String regex)
Method that analyzes embedded links in the analyzed text |
String |
generateHashtagLink(DouiContext douiContext,
String hashtag,
String serviceInstanceId,
ITransaction transaction)
Method that generates the hashtag hyperlink for the correct 'view hashtag results' interface instance. |
static URLGenerator |
getInstance()
Returns URLGenerator Instance |
String |
processHashtagsAndURLs(String analyzedText,
DouiContext douiContext,
String serviceInstanceId,
ITransaction transaction)
This method is responsible to analyze and process embbeded URLs and hashtags present in a String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String REGEX_WEBPAGE
public static final String REGEX_HASHTAG
Method Detail |
---|
public static URLGenerator getInstance()
public List<String> analyzeEmbbededLinks(String analyzedText, String regex)
analyzedText
- the analyzed textregex
- regex pattern to be analyzed
public String processHashtagsAndURLs(String analyzedText, DouiContext douiContext, String serviceInstanceId, ITransaction transaction) throws PortalException
PortalException
public String generateHashtagLink(DouiContext douiContext, String hashtag, String serviceInstanceId, ITransaction transaction) throws ManagerException, PortalException
douiContext
- The DouiContexthashtag
- The analyzed hashtagtransaction
-
ManagerException
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |