public View getView(final HttpServletRequest request,
                        final boolean isSuccess,
                        final WebApplicationService service,
                        final Class ownerClass) {
        val type = getValidationResponseType(request, service);
        if (type == ValidationResponseType.JSON) {
            return getSingleInstanceView(ServiceValidationViewTypes.JSON);
        }
        return isSuccess
            ? getSuccessView(ownerClass.getSimpleName())
            : getFailureView(ownerClass.getSimpleName());
    }
Gets view.

@param request    the request
@param isSuccess  the is success
@param service    the service
@param ownerClass the owner class
@return the view
support/cas-server-support-validation-core/src/main/java/org/apereo/cas/web/ServiceValidationViewFactory.java