com.atlassian.renderer.links
Class UrlLink

java.lang.Object
  extended by com.atlassian.renderer.links.Link
      extended by com.atlassian.renderer.links.BaseLink
          extended by com.atlassian.renderer.links.UrlLink

public class UrlLink
extends BaseLink


Field Summary
static java.lang.String EXTERNAL_ICON
           
static java.lang.String MAILTO_ICON
           
 
Fields inherited from class com.atlassian.renderer.links.Link
aliasSpecified, iconName, linkBody, relativeUrl, title, titleArgs, titleKey, url, wikiDestination, wikiTitle
 
Constructor Summary
UrlLink(GenericLinkParser parser)
           
UrlLink(java.lang.String url, java.lang.String linkBody)
           
 
Method Summary
 java.lang.String getLinkAttributes()
          This is a method that will allow a link to set any additional attributes that are related to the specific link type.
 java.lang.String getUnencodedUrl()
          Vulnerable to XSS attacks unless escaped elsewhere.
 
Methods inherited from class com.atlassian.renderer.links.BaseLink
equals, getOriginalParser, hashCode, setI18nTitle, setTitle
 
Methods inherited from class com.atlassian.renderer.links.Link
getIconName, getLinkBody, getOriginalLinkText, getTitle, getTitleArgs, getTitleKey, getUnpermittedLinkBody, getUrl, getWikiDestination, getWikiTitle, isAliasSpecified, isRelativeUrl
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXTERNAL_ICON

public static final java.lang.String EXTERNAL_ICON
See Also:
Constant Field Values

MAILTO_ICON

public static final java.lang.String MAILTO_ICON
See Also:
Constant Field Values
Constructor Detail

UrlLink

public UrlLink(java.lang.String url,
               java.lang.String linkBody)

UrlLink

public UrlLink(GenericLinkParser parser)
Method Detail

getLinkAttributes

public java.lang.String getLinkAttributes()
Description copied from class: Link
This is a method that will allow a link to set any additional attributes that are related to the specific link type. i.e. - if a link wants to set a css style, then this would be the place.

Overrides:
getLinkAttributes in class Link
Returns:
a string containing the param that will be included within the anchor tag.

getUnencodedUrl

public java.lang.String getUnencodedUrl()
Vulnerable to XSS attacks unless escaped elsewhere. Use getUrl() to retrieve an escaped version of the URL.

Returns:
an unencoded URL that is vulnerable to XSS attacks unless escaped elsewhere.


Copyright © 2013 Atlassian. All Rights Reserved.