org.rhq.plugins.apache.util
Class HttpdConfParser

java.lang.Object
  extended by org.rhq.plugins.apache.util.HttpdConfParser

public class HttpdConfParser
extends java.lang.Object

Parse a httpd.conf file and provide information about its content

Author:
Heiko W. Rupp

Constructor Summary
HttpdConfParser()
           
 
Method Summary
 java.lang.String getMainServer()
           
 java.lang.String getUriWorkerLocation()
           
 java.util.Set<java.lang.String> getVhosts()
           
 java.lang.String getWorkerPropertiesFile()
           
 boolean isModJkInstalled()
           
 boolean parse(java.lang.String confPath)
          Parses the httpd.conf file located at confPath
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HttpdConfParser

public HttpdConfParser()
Method Detail

parse

public boolean parse(java.lang.String confPath)
Parses the httpd.conf file located at confPath

Parameters:
confPath - The path to the httpd.conf file
Returns:
true on success , false otherwise

getVhosts

public java.util.Set<java.lang.String> getVhosts()

getWorkerPropertiesFile

public java.lang.String getWorkerPropertiesFile()

isModJkInstalled

public boolean isModJkInstalled()

getUriWorkerLocation

public java.lang.String getUriWorkerLocation()

getMainServer

public java.lang.String getMainServer()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2008-2009 Red Hat, Inc.. All Rights Reserved.