public interface LinkExtractor
LinkExtractor
is used to extract links
from a JSON response. The
expected format of the links in the response is determined by the implementation.Modifier and Type | Method and Description |
---|---|
Map<String,List<Link>> |
extractLinks(MockHttpServletResponse response)
Extract the links from the given response, returning a
Map of links where
the keys are the link rels. |
Map<String,List<Link>> extractLinks(MockHttpServletResponse response) throws IOException
Map
of links where
the keys are the link rels.response
- The response from which the links are to be extractedIOException
- if link extraction fails