private boolean _isValidRequest(HttpServletRequest request) { // PLACEHOLDER 06 // PLACEHOLDER 07 // PLACEHOLDER 08 // PLACEHOLDER 09 // PLACEHOLDER 10 // PLACEHOLDER 11 // PLACEHOLDER 12 // PLACEHOLDER 13 // PLACEHOLDER 14 // PLACEHOLDER 15 // PLACEHOLDER 16 // PLACEHOLDER 17 // PLACEHOLDER 18 // PLACEHOLDER 19 if (_isOmniAdmin(request)) { LicenseUtil.registerOrder(request); return true; } else { return false; } }
private String _getServerInfo(String clusterNodeId) throws Exception { Map<String, String> serverInfo = LicenseUtil.getClusterServerInfo(clusterNodeId); JSONObject jsonObject = JSONFactoryUtil.createJSONObject(); if (serverInfo != null) { for (Map.Entry<String, String> entry : serverInfo.entrySet()) { jsonObject.put(entry.getKey(), entry.getValue()); } } return jsonObject.toString(); }