public abstract class SingleResourceTransportDto extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
API_VERSION |
static String |
API_VERSION_20 |
static String |
API_VERSION_22 |
static String |
API_VERSION_23 |
static String |
API_VERSION_24 |
static String |
API_VERSION_26 |
static String |
API_VERSION_27 |
static String |
API_VERSION_28 |
static String |
API_VERSION_29 |
static String |
APPLICATION |
protected RESTLink |
editLink |
static String |
JSON |
protected List<RESTLink> |
links |
static String |
VERSION_PARAM |
static String |
XML |
| Constructor and Description |
|---|
SingleResourceTransportDto() |
| Modifier and Type | Method and Description |
|---|---|
void |
addEditLink(RESTLink edit) |
void |
addLink(RESTLink link) |
void |
addLinks(List<RESTLink> links) |
abstract String |
getBaseMediaType() |
RESTLink |
getEditLink() |
Integer |
getIdFromLink(String rel) |
List<RESTLink> |
getLinks() |
abstract String |
getMediaType() |
void |
modifyLink(String rel,
String href) |
RESTLink |
searchLink(String rel)
Returns a
RESTLink with the relation attribute value or null if no such link is
found. |
RESTLink |
searchLink(String rel,
String title) |
RESTLink |
searchLinkByHref(String href) |
List<RESTLink> |
searchLinks(String rel)
|
void |
setLinks(List<RESTLink> links) |
public static final String API_VERSION
public static final String API_VERSION_29
public static final String API_VERSION_28
public static final String API_VERSION_27
public static final String API_VERSION_26
public static final String API_VERSION_24
public static final String API_VERSION_23
public static final String API_VERSION_22
public static final String API_VERSION_20
public static final String APPLICATION
public static final String VERSION_PARAM
public static final String XML
public static final String JSON
protected RESTLink editLink
public void addLink(RESTLink link)
public RESTLink getEditLink()
public void addEditLink(RESTLink edit)
public RESTLink searchLink(String rel)
RESTLink with the relation attribute value or null if no such link is
found. The comparison is case sensitive. If rel is null a null is returned.rel - relation attribute value of the link that we are looking for.null otherwise.getLinks()public List<RESTLink> searchLinks(String rel)
List of RESTLink with the relation attribute value or an empty one
if no such link is found. If rel is null result an empty list.rel - relation attribute value of the link that we are looking for.getLinks()public abstract String getMediaType()
public abstract String getBaseMediaType()
Copyright © 2008-2014 Abiquo Holdings S.L.. All Rights Reserved.