List<HttpMethodConstraintElement> l = new ArrayList<>();
HttpMethodConstraint[] constraints = annotation.httpMethodConstraints(); if (constraints != null) { for (HttpMethodConstraint constraint : constraints) {
HttpMethodConstraintElement e = new HttpMethodConstraintElement(constraint.value(), new HttpConstraintElement(constraint.emptyRoleSemantic(), constraint.transportGuarantee(),
constraint.rolesAllowed()));
l.add(e);
}
}
addHttpMethodConstraints(l);
}
/** *Obtainthecollectionofsecurityconstraintsconfiguredforspecificmethods. * *@returnThesecurityconstraintsforspecificmethods
*/ public Collection<HttpMethodConstraintElement> getHttpMethodConstraints() {
Collection<HttpMethodConstraintElement> result = new HashSet<>(methodConstraints.values()); return result;
}
/** *ObtainthecollectionHTTPmethodsforwhichsecurityconstraintshavebeendefined. * *@returnThenamesoftheHTTPmethods
*/ public Collection<String> getMethodNames() {
Collection<String> result = new HashSet<>(methodConstraints.keySet()); return result;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.