com.sun.enterprise.universal.xml
Class MiniXmlParser
java.lang.Object
com.sun.enterprise.universal.xml.MiniXmlParser
public class MiniXmlParser
- extends Object
A fairly simple but very specific stax XML Parser. Give it the location of domain.xml and the name of the server
instance and it will return JVM options. Currently it is all package private.
- Author:
- bnevins
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MiniXmlParser
public MiniXmlParser(File domainXml)
throws MiniXmlParserException
- Throws:
MiniXmlParserException
MiniXmlParser
public MiniXmlParser(File domainXml,
String serverName)
throws MiniXmlParserException
- Throws:
MiniXmlParserException
getJavaConfig
public Map<String,String> getJavaConfig()
throws MiniXmlParserException
- Throws:
MiniXmlParserException
getJvmOptions
public List<String> getJvmOptions()
throws MiniXmlParserException
- Throws:
MiniXmlParserException
getProfilerConfig
public Map<String,String> getProfilerConfig()
throws MiniXmlParserException
- Throws:
MiniXmlParserException
getProfilerJvmOptions
public List<String> getProfilerJvmOptions()
throws MiniXmlParserException
- Throws:
MiniXmlParserException
getProfilerSystemProperties
public Map<String,String> getProfilerSystemProperties()
throws MiniXmlParserException
- Throws:
MiniXmlParserException
getSystemProperties
public Map<String,String> getSystemProperties()
throws MiniXmlParserException
- Throws:
MiniXmlParserException
getDomainName
public String getDomainName()
getAdminAddresses
public List<HostAndPort> getAdminAddresses()
setupConfigDir
public void setupConfigDir(File configDir,
File installDir)
getSecureAdminEnabled
public boolean getSecureAdminEnabled()
getLogFilename
public String getLogFilename()
- loggingConfig will return an IOException if there is no
logging properties file.
- Returns:
- the log filename if available, otherwise return null
isMonitoringEnabled
public boolean isMonitoringEnabled()
hasNetworkConfig
public boolean hasNetworkConfig()
hasDefaultConfig
public boolean hasDefaultConfig()
getAdminRealmName
public String getAdminRealmName()
getAdminRealmProperties
public Map<String,String> getAdminRealmProperties()
Copyright © 2012 GlassFish Community. All Rights Reserved.