1
/** BEGIN COPYRIGHT BLOCK
2
* Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
3
* Copyright (C) 2005 Red Hat, Inc.
6
* This program is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU General Public License
8
* as published by the Free Software Foundation; version 2
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20
* END COPYRIGHT BLOCK **/
21
package com.netscape.management.admserv.panel;
25
import com.netscape.management.client.util.*;
26
import com.netscape.management.client.console.ConsoleInfo;
27
import com.netscape.management.admserv.config.*;
31
* @version 0.1 11/28/97
32
* @author miodrag@netscape.com
34
public class AdminConfigData extends CGIAggregateDataModel {
35
public AdminConfigData(ConsoleInfo consoleInfo) {
40
* Check if the server is NT platform
42
static public boolean isWindowsNTPlatform(ConsoleInfo ci) {
43
String platform = (String) ci.getAdminOS();
44
return (platform != null && platform.startsWith("Win"));
47
static public boolean isRunning(String adminURL) {
49
URL serverURL = new URL(adminURL);
50
URLConnection server = serverURL.openConnection();
53
} catch (MalformedURLException ex) {
54
Debug.println("ERROR AdminConfigData.isRunning: bad URL " +
57
catch (java.io.IOException ex) {
58
Debug.println("AdminConfigData.isRunning: " + ex);