org.rhq.plugins.apache.util
Class HttpdConfParser

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

public class HttpdConfParser
extends Object

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

Author:
Heiko W. Rupp

Constructor Summary
HttpdConfParser()
           
 
Method Summary
 String getMainServer()
           
 String getUriWorkerLocation()
           
 Set<String> getVhosts()
           
 String getWorkerPropertiesFile()
           
 boolean isModJkInstalled()
           
 boolean parse(String confPath)
          Parses the httpd.conf file located at confPath
 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(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 Set<String> getVhosts()

getWorkerPropertiesFile

public String getWorkerPropertiesFile()

isModJkInstalled

public boolean isModJkInstalled()

getUriWorkerLocation

public String getUriWorkerLocation()

getMainServer

public String getMainServer()

toString

public String toString()
Overrides:
toString in class Object


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