rs.jerseyclient.data.Link Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jersey-client Show documentation
Show all versions of jersey-client Show documentation
Basic implementation to create RS WS clients with Jersey
The newest version!
package rs.jerseyclient.data;
/**
* A link as defined by HATEOAS responses.
* The class is usually required for correct JSON (de)serialization.
* @author ralph
*
*/
public class Link {
private String href;
/**
* Default constructor.
*/
public Link() {}
/**
* Returns the HREF attribute (URL) of the link.
* @return the HREF attribute (URL) of the link.
*/
public String getHref() {
return href;
}
/**
* Sets the HREF attribute (URL) of the link.
* @param href the HREF attribute (URL) of the link.
*/
public void setHref(String href) {
this.href = href;
}
}