List of usage examples for org.springframework.http HttpStatus ACCEPTED
HttpStatus ACCEPTED
To view the source code for org.springframework.http HttpStatus ACCEPTED.
Click Source Link
From source file:org.ff4j.spring.boot.utilts.FeatureWebUtils.java
public static ResponseEntity<Boolean> getBooleanResponseEntityByHttpStatus(FeatureActions featureActions) { switch (featureActions) { case CREATED: return new ResponseEntity<>(TRUE, HttpStatus.CREATED); case UPDATED: return new ResponseEntity<>(TRUE, HttpStatus.ACCEPTED); default:// w w w . j a v a2s. c o m return new ResponseEntity<>(FALSE, HttpStatus.NO_CONTENT); } }
From source file:rest.TestRestController.java
@RequestMapping(value = "/echo/{input}", method = RequestMethod.GET) public ResponseEntity<?> consultaX(@PathVariable String input) { return new ResponseEntity<>("REST API working. Echo:" + input, HttpStatus.ACCEPTED); }
From source file:edu.eci.cosw.controllers.ProductsController.java
@RequestMapping(value = "/regifamilia", method = RequestMethod.POST) public ResponseEntity<?> adicionarFamilia(@RequestBody Familia familia) { services.addFamilia(familia);/*from w w w . j ava 2s . com*/ return new ResponseEntity<>(HttpStatus.ACCEPTED); }
From source file:edu.eci.cosw.controllers.ProductsController.java
@RequestMapping(value = "/jefe", method = RequestMethod.POST) public ResponseEntity<?> adicionarFamilia(@RequestBody InscripcionJefes jefe) { services.addJefe(jefe);/*from w ww .j a v a2 s.c om*/ return new ResponseEntity<>(HttpStatus.ACCEPTED); }
From source file:varusmiesweb.controller.PalveluspaikatController.java
@ResponseStatus(HttpStatus.ACCEPTED) // jotta erottuu HTTP 200 - OK @RequestMapping(value = "/tallenna", method = RequestMethod.GET) public void tallenna() { rekisteri.tallenna();/*from ww w. ja v a 2 s .co m*/ }
From source file:edu.eci.cosw.restcontrollers.ManejadorCotizaciones.java
@RequestMapping(method = RequestMethod.POST) public ResponseEntity<?> addNewCotizacion(@RequestBody Cotizacion c) { return new ResponseEntity<>(HttpStatus.ACCEPTED); }
From source file:edu.eci.arsw.controllers.BlueprintController.java
@RequestMapping(method = RequestMethod.POST) public ResponseEntity<?> addBlueprint(@RequestBody Blueprint p) { services.addNewBlueprint(p.getName(), p); return new ResponseEntity<>(HttpStatus.ACCEPTED); }
From source file:com.netflix.spinnaker.gate.controllers.BatchEntityTagsController.java
@RequestMapping(method = RequestMethod.POST) @ResponseStatus(value = HttpStatus.ACCEPTED) public Map batchUpdate(@RequestBody List<Map> entityTags) { Map<String, Object> job = new HashMap<>(); job.put("type", "bulkUpsertEntityTags"); job.put("entityTags", entityTags); List<Map<String, Object>> jobs = new ArrayList<>(); jobs.add(job);/* w w w . jav a 2s. co m*/ Map<String, Object> operation = new HashMap<>(); operation.put("description", "Bulk upsert Tags"); operation.put("job", jobs); return taskService.createAppTask("ad-hoc", operation); }
From source file:edu.eci.arsw.kalendan.controllers.TeamResourceController.java
@RequestMapping(path = "/equipos/{idT}", method = RequestMethod.GET) public ResponseEntity<?> teamGetMembers(@PathVariable("idT") Integer teamid) { try {/* w w w.j a v a2s . co m*/ return new ResponseEntity<>(ts.getEquipo(teamid), HttpStatus.ACCEPTED); } catch (Exception ex) { Logger.getLogger(TeamResourceController.class.getName()).log(Level.SEVERE, null, ex); return new ResponseEntity<>(HttpStatus.NOT_FOUND); } }
From source file:com.grizzly.rest.Definitions.DefinitionsHttpMethods.java
/** * Returns the http states currently supported. * @return a List of int representing the supported http states. *//*from www . j a v a2 s . c om*/ public static List<Integer> getHttpStates() { List<Integer> list = new ArrayList<>(); list.add(HttpStatus.OK.value()); list.add(HttpStatus.ACCEPTED.value()); list.add(HttpStatus.CREATED.value()); return list; }