while (line != null) ConstraintType.Type type = ConstraintType.Type.valueOf(line.substring(1, line.length() - 1)); line = br.readLine(); String path = line.substring(1, line.length() - 1);
while (line != null) ConstraintType.Type type = ConstraintType.Type.valueOf(line.substring(1, line.length() - 1)); line = br.readLine(); String path = line.substring(1, line.length() - 1);
while (line != null ) ConstraintType.Type type = ConstraintType.Type.valueOf(line.substring(1, line.length() - 1)); line = br.readLine(); String path = line.substring(1, line.length() - 1);
private List<String> extractMessages(List<ResteasyConstraintViolation> violations) { return violations.stream() .map(rcv -> "Constraint Violation: " + rcv.getConstraintType() .name() + "[" + rcv.getPath() + " = '" + rcv.getValue() + "']: " + rcv.getMessage()) .collect(Collectors.toList()); }
private Status getResponseStatus(final ResteasyConstraintViolation violation) { if (RETURN_VALUE.equals(violation.getConstraintType())) { return Status.INTERNAL_SERVER_ERROR; } return Status.BAD_REQUEST; }
/** * @return String form of violation type */ public String type() { return constraintType.toString(); }
/** * @return String form of violation type */ public String type() { return constraintType.toString(); } }
private List<String> extractMessages(List<ResteasyConstraintViolation> violations) { return violations.stream() .map(rcv -> "Constraint Violation: " + rcv.getConstraintType() .name() + "[" + rcv.getPath() + "]: " + rcv.getMessage()) .collect(Collectors.toList()); }
/** * @return String form of violation type */ public String type() { return constraintType.toString(); }