×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Sungjoon Han
Added: Sep 4, 2019 12:11 PM
Views: 4030
Tags: no tags
  1. try {
  2.             if (command.equals("issue"))
  3.                 return issuerService.handleData(requestBody);
  4.             else if (command.equals("verify"))
  5.                 return verifierService.handleData(requestBody);
  6.         } catch (Exception e) {
  7.             throw new SSISystemException(HttpStatus.BAD_REQUEST, e.getMessage());
  8.         }
  9.  
  10.         return "{\"err\":\"no_command_found\"}";