List of usage examples for org.springframework.http MediaType ALL_VALUE
String ALL_VALUE
To view the source code for org.springframework.http MediaType ALL_VALUE.
Click Source Link
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")); }