rs.jerseyclient.data.AbstractData 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;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Abstract base for data classes providing the HATEOAS field {@code _links}.
* The class is usually required for correct JSON (de)serialization.
*
* @author ralph
*
*/
public abstract class AbstractData {
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
private Map _links;
/**
* Default constructor.
*/
public AbstractData() {}
/**
* Returns the links map.
* @return the links map
*/
public Map get_links() {
return _links;
}
/**
* Sets the links map.
* @param _links the links map
*/
public void set_links(Map _links) {
this._links = _links;
}
}