APISonar


org.apereo.cas.validation.ValidationResponseType.XML

> org > apereo > cas > validation > ValidationResponseType > XML
org APIs apereo APIs cas APIs validation APIs ValidationResponseType APIs XML APIs

Example 1
private static ValidationResponseType getValidationResponseType(final HttpServletRequest request,
                                                                    final WebApplicationService service) {
        val format = request.getParameter(CasProtocolConstants.PARAMETER_FORMAT);
        final Function<String, ValidationResponseType> func = FunctionUtils.doIf(StringUtils::isNotBlank,
            t -> ValidationResponseType.valueOf(t.toUpperCase()),
            f -> service != null ? service.getFormat() : ValidationResponseType.XML);
        return func.apply(format);
    }