com.atlassian.confluence.content.render.xhtml.links
Class WebLink
java.lang.Object
com.atlassian.confluence.content.render.xhtml.links.WebLink
public class WebLink
- extends 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.
WebLink
public WebLink(String href)
isValidURL
public static boolean isValidURL(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 String getHref()
getAnchor
public String getAnchor()
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object