@RequestParam(value = "type", required = false) String type,
HttpServletRequest request,
HttpServletResponse response) throws JsonGenerationException,
JsonMappingException, IOException {
final String ip = EnMeUtils.getIP(request, EnMePlaceHolderConfigurer.getBooleanProperty("application.proxyPass"));
final Status status = getFrontService().registerVote(id, TypeSearchResult.getTypeSearchResult(type), ip);
if (status.equals(Status.SUCCESS)) {
setSuccesResponse();
} else {
setFailedResponse();
}
return returnData();