Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.forum.renderer.filter.wiki.link
Class LinkUtils

java.lang.Object
  extended by com.jivesoftware.forum.renderer.filter.wiki.link.LinkUtils

public class LinkUtils
extends java.lang.Object

Utility class with methods for validating and parsing links.


Method Summary
static boolean isNotEvil(java.lang.String url)
           
static Link parseLink(java.lang.String str, int startOffset, java.util.List allowedSchemes)
          The following link syntaxes are supported: f- forum link t- thread link m- message link | link has link text/tooltip ^ attachment link # anchor link ~ profile link @ email link Rules: You can append anchors to most links with the exception of attachment links and email links.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isNotEvil

public static boolean isNotEvil(java.lang.String url)

parseLink

public static Link parseLink(java.lang.String str,
                             int startOffset,
                             java.util.List allowedSchemes)
The following link syntaxes are supported: f- forum link t- thread link m- message link | link has link text/tooltip ^ attachment link # anchor link ~ profile link @ email link Rules:
  1. You can append anchors to most links with the exception of attachment links and email links.
  2. attachments can either be on their own or appended to a message link
  3. Some link types support linking by permanent names in addition to linking by id's. This list includes profiles, forums and documents.
  4. Link text/tooltips are ignored for links to jive objects

Parameters:
str - the string to parse
allowedSchemes - a list of allowed schemes
Returns:
the parse link

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.