List of usage examples for org.springframework.data.rest.webmvc IncomingRequest getServerHttpRequest
public ServerHttpRequest getServerHttpRequest()
From source file:org.springframework.data.rest.webmvc.config.PersistentEntityResourceHandlerMethodArgumentResolver.java
private Object read(IncomingRequest request, HttpMessageConverter<Object> converter, RootResourceInformation information) { try {/*from w ww . j av a 2 s . c o m*/ return converter.read(information.getDomainType(), request.getServerHttpRequest()); } catch (IOException o_O) { throw new HttpMessageNotReadableException(String.format(ERROR_MESSAGE, information.getDomainType()), o_O); } }