Example usage for org.springframework.http HttpStatus NOT_IMPLEMENTED

List of usage examples for org.springframework.http HttpStatus NOT_IMPLEMENTED

Introduction

In this page you can find the example usage for org.springframework.http HttpStatus NOT_IMPLEMENTED.

Prototype

HttpStatus NOT_IMPLEMENTED

To view the source code for org.springframework.http HttpStatus NOT_IMPLEMENTED.

Click Source Link

Document

501 Not Implemented .

Usage

From source file:com.opensearchserver.hadse.record.RecordController.java

@RequestMapping(method = RequestMethod.POST, value = "/{index_name}")
@ResponseBody//  w w w .ja  v  a2  s  . co  m
public HttpEntity<String> postData(@RequestBody Map<String, Object> values) {
    return new ResponseEntity<String>("Not yet implemented", HttpStatus.NOT_IMPLEMENTED);
}

From source file:com.opensearchserver.hadse.record.RecordController.java

@RequestMapping(method = RequestMethod.PUT, value = "/{index_name}/{id}")
@ResponseBody/*from   w w w .  jav  a 2  s  .  co m*/
public HttpEntity<String> putData(@RequestBody Map<String, Object> values) {
    return new ResponseEntity<String>("Not yet implemented", HttpStatus.NOT_IMPLEMENTED);
}

From source file:org.fineract.module.stellar.controller.FederationServerController.java

@RequestMapping(value = "/federation/", method = RequestMethod.GET, produces = { "application/json" })
public ResponseEntity<String> getId(@RequestParam("type") final String type,
        @RequestParam("q") final String nameToLookUp) throws InvalidStellarAddressException {

    if (!type.equalsIgnoreCase("name")) {
        return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
    }//from   w  w  w.j  av  a 2  s  . co m

    final StellarAddress stellarAddress = StellarAddress.parse(nameToLookUp);

    final StellarAccountId accountId = federationService.getAccountId(stellarAddress);

    final FederationResponse ret;
    if (accountId.getSubAccount().isPresent()) {
        ret = FederationResponseBuilder.accountInMemoField(stellarAddress.toString(), accountId.getPublicKey(),
                accountId.getSubAccount().get());
    } else {
        ret = FederationResponseBuilder.account(stellarAddress.toString(), accountId.getPublicKey());
    }

    return new ResponseEntity<>(gson.toJson(ret), HttpStatus.OK);
}

From source file:com.github.lynxdb.server.api.http.handlers.EpConfig.java

@RequestMapping(path = "/", method = { RequestMethod.GET,
        RequestMethod.POST }, produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity root() {
    return ResponseEntity.status(HttpStatus.NOT_IMPLEMENTED).build();
}

From source file:com.github.lynxdb.server.api.http.handlers.EpUid.java

@RequestMapping(path = "/assign", method = { RequestMethod.GET,
        RequestMethod.POST }, produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity assign() {
    return ResponseEntity.status(HttpStatus.NOT_IMPLEMENTED).build();
}

From source file:com.opensearchserver.hadse.record.RecordController.java

@RequestMapping(method = RequestMethod.GET, value = "/{index_name}/{id}")
@ResponseBody/*from w  w w  .  jav  a 2s . c o m*/
public HttpEntity<String> getData() {
    return new ResponseEntity<String>("Not yet implemented", HttpStatus.NOT_IMPLEMENTED);
}

From source file:com.github.lynxdb.server.api.http.handlers.EpAnnotation.java

@RequestMapping(path = "/", method = { RequestMethod.GET, RequestMethod.POST, RequestMethod.PUT,
        RequestMethod.DELETE }, produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity root() {
    return ResponseEntity.status(HttpStatus.NOT_IMPLEMENTED).build();
}

From source file:com.github.lynxdb.server.api.http.handlers.EpTree.java

@RequestMapping(path = "/", method = { RequestMethod.GET, RequestMethod.POST, RequestMethod.DELETE,
        RequestMethod.PUT }, produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity root() {
    return ResponseEntity.status(HttpStatus.NOT_IMPLEMENTED).build();
}

From source file:com.github.lynxdb.server.api.http.handlers.EpStats.java

@RequestMapping(path = "/jvm", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity jvm() {
    return ResponseEntity.status(HttpStatus.NOT_IMPLEMENTED).build();
}

From source file:com.github.lynxdb.server.api.http.handlers.EpConfig.java

@RequestMapping(path = "/filters", method = { RequestMethod.GET,
        RequestMethod.POST }, produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity filters() {
    return ResponseEntity.status(HttpStatus.NOT_IMPLEMENTED).build();
}