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 TypeMethodDescriptionbooleangetHref()Gets the HTTP method related to the link.getName()getTitle()inthashCode()voidsetBodySchema(BodySchema bodySchema) voidvoidvoidsetHrefTemplate(String hrefTemplate) voidsetHrefVars(Map<String, String> hrefVars) voidAdds an HTTP method to the link description.voidvoidstatic TMF630LinktoTMF630Link(org.springframework.hateoas.Link link) Converts aLinkto 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 aLinkto a TMF630Link.- Parameters:
link- aLinkto be converted- Returns:
- a TMF630Link with known affordances and specific media type.
-
equals
-
hashCode
-