public class Link
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Method and Description |
---|---|
Link |
addQueryParam(java.lang.String... arr) |
Link |
build()
Creates a new link with the same href.
|
Link |
build(java.lang.String path)
Creates a new link adding the path provided to the current href.
|
java.lang.String |
getHref() |
java.lang.String |
getPath()
The path extracted from the href.
|
java.lang.String[] |
getQueryParams()
The query params extracted from the href.
|
Link |
setHref(java.lang.String href) |
java.lang.String |
toString() |
public java.lang.String getHref()
public Link setHref(java.lang.String href)
public Link build()
public Link build(java.lang.String path)
path
- the subpath to add at the end of the href's linkpublic java.lang.String[] getQueryParams()
public java.lang.String getPath()
public Link addQueryParam(java.lang.String... arr)
public java.lang.String toString()
toString
in class java.lang.Object