| | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | e.printStackTrace(); |
| | | result(httpExchange, 400, language, e); |
| | | } |
| | | } |
| | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | e.printStackTrace(); |
| | | result(httpExchange, 400, language, e); |
| | | } |
| | | } |
| | |
| | | catch (Exception exception) |
| | | { |
| | | Shared.println(Shared.getMessage("Model"), exception); |
| | | exception.printStackTrace(); |
| | | result(httpExchange, 400, language, exception); |
| | | } |
| | | } |
| | |
| | | } |
| | | catch (Exception exception) |
| | | { |
| | | exception.printStackTrace(); |
| | | result(httpExchange, 400, "", exception); |
| | | } |
| | | } |
| | |
| | | } |
| | | catch (Exception exception) |
| | | { |
| | | exception.printStackTrace(); |
| | | result(httpExchange, 400, "", exception); |
| | | } |
| | | } |
| | |
| | | } |
| | | catch (Exception exception) |
| | | { |
| | | exception.printStackTrace(); |
| | | result(httpExchange, 400, language, exception); |
| | | } |
| | | } |
| | |
| | | } |
| | | catch (Exception exception) |
| | | { |
| | | exception.printStackTrace(); |
| | | result(httpExchange, 400, language, exception); |
| | | } |
| | | } |
| | |
| | | } |
| | | catch (Exception exception) |
| | | { |
| | | exception.printStackTrace(); |
| | | result(httpExchange, 400, language, exception); |
| | | } |
| | | } |
| | |
| | | try |
| | | { |
| | | httpExchange.getResponseHeaders().set("Access-Control-Allow-Origin", "*"); |
| | | httpExchange.getResponseHeaders().set("Accept", "*/*"); |
| | | httpExchange.sendResponseHeaders(httpErrorCode, data.length); |
| | | httpExchange.getResponseBody().write(data); |
| | | } |
| | |
| | | // httpExchange.getResponseHeaders().set("Content-Type", "application/vnd.ms-excel"; charset=" + StandardCharsets.UTF_8); |
| | | |
| | | httpExchange.getResponseHeaders().set("Access-Control-Allow-Origin", "*"); |
| | | httpExchange.getResponseHeaders().set("Accept", "*/*"); |
| | | |
| | | if (httpExchange.getRequestMethod().equalsIgnoreCase("OPTIONS")) |
| | | { |