public abstract class JsonApiDtoExtendable extends Object
| Constructor and Description |
|---|
JsonApiDtoExtendable() |
| Modifier and Type | Method and Description |
|---|---|
void |
generate(String self,
String all)
Generates the links
|
String |
getAllSelfRel() |
String |
getFirstRel() |
String |
getId() |
String |
getLastRel() |
String |
getNextRel() |
String |
getPreviousRel() |
String |
getRelatedRel() |
String |
getSelfRel() |
void |
setAllSelfRel(String allSelfRel) |
void |
setFirstRel(String firstRel) |
void |
setId(String id) |
void |
setLastRel(String lastRel) |
void |
setNextRel(String nextRel) |
void |
setPreviousRel(String previousRel) |
void |
setRelatedRel(String relatedRel) |
void |
setSelfRel(String selfRel) |
public void generate(String self, String all)
self - the URI of the self endpoint (ex: "/user") (id should not be included since it is automatically gotten from the override)all - the URI of the all endpoint (ex: "/")public String getSelfRel()
public String getFirstRel()
public String getLastRel()
public String getNextRel()
public String getPreviousRel()
public String getRelatedRel()
public String getId()
public void setId(String id)
public String getAllSelfRel()
public void setSelfRel(String selfRel)
public void setAllSelfRel(String allSelfRel)
public void setFirstRel(String firstRel)
public void setLastRel(String lastRel)
public void setNextRel(String nextRel)
public void setPreviousRel(String previousRel)
public void setRelatedRel(String relatedRel)
Copyright © 2022. All rights reserved.