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 .