Example usage for org.springframework.http MediaType ALL_VALUE

List of usage examples for org.springframework.http MediaType ALL_VALUE

Introduction

In this page you can find the example usage for org.springframework.http MediaType ALL_VALUE.

Prototype

String ALL_VALUE

To view the source code for org.springframework.http MediaType ALL_VALUE.

Click Source Link

Document

A String equivalent of MediaType#ALL .

Usage

From source file:org.talend.dataprep.transformation.actions.datablending.MockDataSetProvider.java

/**
 * This request mapping must follow the dataset request mapping
 *
 * @param lookupId/*from  w ww .  j a  v a  2 s.  c om*/
 * @return
 * @throws IOException
 */
@RequestMapping(value = "/datasets/{id}/content", method = RequestMethod.GET, consumes = MediaType.ALL_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)
public String getSampleRemoteFile(@PathVariable(value = "id") String lookupId) throws IOException {
    return IOUtils.toString(this.getClass().getResourceAsStream(lookupId + ".json"));
}