@Override public void visitEnum(String name, String desc, String value) { LOG.trace(format("visit enum name=[%s], desc=[%s], value=[%s]", name, desc, value)); switch(name) { case "transportGuarantee": transportGuarantee = TransportGuarantee.valueOf(value); break; case "value": emptyRoleSemantic = EmptyRoleSemantic.valueOf(value); break; } }
@Override public void visitEnum(String name, String desc, String value) { LOG.trace(format("visit enum name=[%s], desc=[%s], value=[%s]", name, desc, value)); switch(name) { case "transportGuarantee": transportGuarantee = TransportGuarantee.valueOf(StringUtils.clean2(value)); break; case "emptyRoleSemantic": emptyRoleSemantic = EmptyRoleSemantic.valueOf(StringUtils.clean2(value)); break; } }
for (Node iiN : iN) { if ("transport-guarantee".equalsIgnoreCase(iiN.getName())) { transportGuarantee = TransportGuarantee.valueOf(StringUtils.clean2(iiN.getContent()));
if (servletSecurityAnnotation.getTransportGuarantee() != null) transportGuarantee = TransportGuarantee.valueOf(servletSecurityAnnotation.getTransportGuarantee().toString()); if (annotationMethodConstraint.getTransportGuarantee() != null) transportGuarantee = TransportGuarantee.valueOf(annotationMethodConstraint.getTransportGuarantee().toString());
private void addSecurityConstraint(ServletRegistration.Dynamic servletRegistration, Configuration config) { ServletSecurity.TransportGuarantee transportGuarantee = ServletSecurity.TransportGuarantee.CONFIDENTIAL; String constraintType = config.get(CONFIG_HTTP_TRANSPORT_GUARANTEE, null); if (constraintType != null) { transportGuarantee = ServletSecurity.TransportGuarantee.valueOf(constraintType); } HttpConstraintElement httpConstraintElement = new HttpConstraintElement(transportGuarantee); ServletSecurityElement securityElement = new ServletSecurityElement(httpConstraintElement); servletRegistration.setServletSecurity(securityElement); }