com.atlassian.confluence.content.render.xhtml.links
Class WebLink

java.lang.Object
  extended by com.atlassian.confluence.content.render.xhtml.links.WebLink

public class WebLink
extends java.lang.Object

A model object representing a web link in Confluence content as opposed to a Confluence resource link. This isn't a public model object, it is an internal object to allow for easier link processing.


Constructor Summary
WebLink(java.lang.String href)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getAnchor()
           
 java.lang.String getHref()
           
 int hashCode()
           
 boolean isRelative()
           
static boolean isValidURL(java.lang.String url)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebLink

public WebLink(java.lang.String href)
Method Detail

isValidURL

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

isRelative

public boolean isRelative()
Returns:
true if this is a link without a server component and is therefore relative to the Confluence server.

getHref

public java.lang.String getHref()

getAnchor

public java.lang.String getAnchor()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2003-2014 Atlassian. All Rights Reserved.