public abstract class LinkExtractors extends Object
link extractors
for use when documentating a hypermedia-based API.Modifier and Type | Method and Description |
---|---|
static LinkExtractor |
atomLinks()
Returns a
LinkExtractor capable of extracting links in Atom format where
the links are found in an array named links . |
static LinkExtractor |
extractorForContentType(String contentType)
Returns the
LinkExtractor for the given contentType or null
if there is no extractor for the content type. |
static LinkExtractor |
halLinks()
Returns a
LinkExtractor capable of extracting links in Hypermedia
Application Language (HAL) format where the links are found in a map named
_links . |
public static LinkExtractor halLinks()
LinkExtractor
capable of extracting links in Hypermedia
Application Language (HAL) format where the links are found in a map named
_links
.public static LinkExtractor atomLinks()
LinkExtractor
capable of extracting links in Atom format where
the links are found in an array named links
.public static LinkExtractor extractorForContentType(String contentType)
LinkExtractor
for the given contentType
or null
if there is no extractor for the content type.contentType
- The content type, may include parametersnull