public boolean isHttps(HttpServletRequest request) {
        return HTTPS.equalsIgnoreCase(request.getScheme());
    }
isHttps

@param request request
@return boolean
src/main/java/com/tuituidan/openhub/util/HttpUtils.java