Package com.orange.spring.tmf630
Class TMF630Link
java.lang.Object
com.orange.spring.tmf630.TMF630Link
Data class of a Link as described in the TMF630 specification.
A specific Media Type has been defined for this implementation : application/vnd.orange-tmf630+json.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getHref()
Gets the HTTP method related to the link.getName()
getTitle()
int
hashCode()
void
setBodySchema
(BodySchema bodySchema) void
void
void
setHrefTemplate
(String hrefTemplate) void
setHrefVars
(Map<String, String> hrefVars) void
Adds an HTTP method to the link description.void
void
static TMF630Link
toTMF630Link
(org.springframework.hateoas.Link link) Converts aLink
to a TMF630Link.
-
Constructor Details
-
TMF630Link
public TMF630Link() -
TMF630Link
-
-
Method Details
-
getTitle
-
setTitle
-
getHref
-
setHref
-
getName
-
setName
-
getHrefTemplate
-
setHrefTemplate
-
getHrefVars
-
setHrefVars
-
getMethod
Gets the HTTP method related to the link.- Returns:
- HTTP method among GET, POST, PATCH, PUT, DELETE
-
setMethod
Adds an HTTP method to the link description. Not necessary if method is GET.- Parameters:
method
- HTTP method among GET, POST, PATCH, PUT, DELETE
-
getFields
-
setFields
-
getBodySchema
-
setBodySchema
-
toTMF630Link
Converts aLink
to a TMF630Link.- Parameters:
link
- aLink
to be converted- Returns:
- a TMF630Link with known affordances and specific media type.
-
equals
-
hashCode
public int hashCode()
-