public class Link extends Object
Link
header.
This class is based on ex09_1from the "RESTful Java with JAX-RS" book.
Constructor and Description |
---|
Link(URI href,
String rel,
String type) |
Modifier and Type | Method and Description |
---|---|
URI |
getHref() |
String |
getRel() |
String |
getType() |
void |
setHref(URI href) |
void |
setRel(String rel) |
void |
setType(String type) |
String |
toString()
To write as
Link header |
static Link |
valueOf(String val)
For unmarshalling Link Headers.
|
public String getRel()
public void setRel(String rel)
public URI getHref()
public void setHref(URI href)
public String getType()
public void setType(String type)
public String toString()
Link
headerpublic static Link valueOf(String val) throws URISyntaxException
val
- header valueURISyntaxException
- thrown if href value cannot be parsedCopyright © 2013–2019. All rights reserved.