List of usage examples for org.springframework.http HttpStatus NOT_IMPLEMENTED
HttpStatus NOT_IMPLEMENTED
To view the source code for org.springframework.http HttpStatus NOT_IMPLEMENTED.
Click Source Link
From source file:org.apereo.openlrs.controllers.xapi.XAPIExceptionHandlerAdvice.java
@ExceptionHandler(NotImplementedException.class) @ResponseStatus(value = HttpStatus.NOT_IMPLEMENTED) @ResponseBody/*ww w . ja va 2s . c o m*/ public XAPIErrorInfo handleNotImplementedException(final HttpServletRequest request, final NotImplementedException e) { final XAPIErrorInfo result = new XAPIErrorInfo(HttpStatus.NOT_IMPLEMENTED, request, e.getLocalizedMessage()); this.logException(e); this.logError(result); return result; }
From source file:com.github.lynxdb.server.api.http.handlers.EpTree.java
@RequestMapping(path = "/notmatched", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) public ResponseEntity notmatched() { return ResponseEntity.status(HttpStatus.NOT_IMPLEMENTED).build(); }
From source file:com.github.lynxdb.server.api.http.handlers.EpStats.java
@RequestMapping(path = "/threads", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) public ResponseEntity threads() { return ResponseEntity.status(HttpStatus.NOT_IMPLEMENTED).build(); }
From source file:com.github.lynxdb.server.api.http.handlers.EpTree.java
@RequestMapping(path = "/rule", method = { RequestMethod.GET, RequestMethod.POST, RequestMethod.DELETE, RequestMethod.PUT }, produces = MediaType.APPLICATION_JSON_VALUE) public ResponseEntity rule() { return ResponseEntity.status(HttpStatus.NOT_IMPLEMENTED).build(); }
From source file:com.couchbase.workshop.AirportController.java
/** * Returns the full airport information by its FAA code (like LAX or SFO). * * @param faa the faa code.//w ww .ja va 2 s .c o m * @return the airport info, or 404 if not found. */ @RequestMapping("/byFaa") public ResponseEntity<Map<String, Object>> byFaa(@RequestParam String faa) { // TODO: implement me return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); }
From source file:com.github.lynxdb.server.api.http.handlers.EpTree.java
@RequestMapping(path = "/rules", method = { RequestMethod.POST, RequestMethod.DELETE, RequestMethod.PUT }, produces = MediaType.APPLICATION_JSON_VALUE) public ResponseEntity rules() { return ResponseEntity.status(HttpStatus.NOT_IMPLEMENTED).build(); }
From source file:com.couchbase.workshop.AirportController.java
/** * Returns all routes by the given airline. * * @param airline the airline to check.// www .j av a 2 s . com * @return the list of routes. */ @RequestMapping("/routes") public ResponseEntity<List<String>> routesByAirline(@RequestParam String airline) { // TODO: implement me return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); }
From source file:com.github.lynxdb.server.api.http.handlers.EpTree.java
@RequestMapping(path = "/test", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) public ResponseEntity test() { return ResponseEntity.status(HttpStatus.NOT_IMPLEMENTED).build(); }
From source file:com.ge.predix.acs.privilege.management.SubjectPrivilegeManagementController.java
private void failIfParentsSpecified(final List<BaseSubject> subjects) { if (this.getTitanProfileActive()) { return;// w w w . ja va 2 s. c om } for (BaseSubject subject : subjects) { if (!CollectionUtils.isEmpty(subject.getParents())) { throw new RestApiException(HttpStatus.NOT_IMPLEMENTED, PARENTS_ATTR_NOT_SUPPORTED_MSG); } } }
From source file:org.osiam.resources.exceptions.OsiamExceptionHandler.java
private HttpStatus setStatus(Exception ex) { if (ex instanceof ResourceNotFoundException) { return HttpStatus.NOT_FOUND; }/* w w w .java2s. co m*/ if (ex instanceof SchemaUnknownException) { return HttpStatus.I_AM_A_TEAPOT; } if (ex instanceof UnsupportedOperationException) { return HttpStatus.NOT_IMPLEMENTED; } return HttpStatus.CONFLICT; }