Example usage for org.springframework.restdocs.operation OperationResponse getContent

List of usage examples for org.springframework.restdocs.operation OperationResponse getContent

Introduction

In this page you can find the example usage for org.springframework.restdocs.operation OperationResponse getContent.

Prototype

byte[] getContent();

Source Link

Document

Returns the content of the response.

Usage

From source file:org.springframework.restdocs.hypermedia.AbstractJsonLinkExtractor.java

@Override
@SuppressWarnings("unchecked")
public Map<String, List<Link>> extractLinks(OperationResponse response) throws IOException {
    Map<String, Object> jsonContent = this.objectMapper.readValue(response.getContent(), Map.class);
    return extractLinks(jsonContent);
}