Package 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
-
-
Constructor Summary
Constructors Constructor Description MiniXmlParser(File domainXml)MiniXmlParser(File domainXml, String serverName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<HostAndPort>getAdminAddresses()StringgetAdminRealmName()Map<String,String>getAdminRealmProperties()StringgetDomainName()Map<String,String>getJavaConfig()List<String>getJvmOptions()StringgetLogFilename()loggingConfig will return an IOException if there is no logging properties file.Map<String,String>getProfilerConfig()List<String>getProfilerJvmOptions()Map<String,String>getProfilerSystemProperties()booleangetSecureAdminEnabled()Map<String,String>getSystemProperties()booleanhasDefaultConfig()booleanhasNetworkConfig()booleanisMonitoringEnabled()voidsetupConfigDir(File configDir, File installDir)
-
-
-
Constructor Detail
-
MiniXmlParser
public MiniXmlParser(File domainXml) throws MiniXmlParserException
- Throws:
MiniXmlParserException
-
MiniXmlParser
public MiniXmlParser(File domainXml, String serverName) throws MiniXmlParserException
- Throws:
MiniXmlParserException
-
-
Method Detail
-
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()
-
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()
-
-