|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vectorbase.gdav.ServletInfo
public class ServletInfo
reads all relevant information from the compulsory (gdav.xml) config file stores this information and provides accessor classes for this and other information.
Constructor Summary | |
---|---|
ServletInfo(org.xml.sax.InputSource is)
constructor - requires InputSource of config file |
|
ServletInfo(javax.servlet.ServletContext ctx)
constructor - requires servlet context to retrieve config file |
Method Summary | |
---|---|
java.lang.String |
getDbHost()
return host name for gdav DB |
java.lang.String |
getDbName()
return name for gdav DB |
java.lang.String |
getDbPass()
return password for gdav DB |
int |
getDbPort()
return port for gdav DB |
java.lang.String |
getDbString()
return full url string (jdbc:mysql//host:port/name?user=user&pass=pass) for gdav DB |
java.lang.String |
getDbUser()
return user name for gdav DB |
java.lang.String |
getDocumentRoot()
return document root for gdav.xml |
java.lang.String |
getHost()
return root URL for website. |
java.lang.String |
getRemoteHeader()
return the header HTML grabbed from a remote URL |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServletInfo(javax.servlet.ServletContext ctx) throws org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException, java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
java.io.IOException
public ServletInfo(org.xml.sax.InputSource is) throws org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException, java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
java.io.IOException
Method Detail |
---|
public java.lang.String getHost()
public java.lang.String getDbHost()
public java.lang.String getDbName()
public java.lang.String getDbUser()
public java.lang.String getDbPass()
public int getDbPort()
public java.lang.String getDbString()
public java.lang.String getDocumentRoot()
public java.lang.String getRemoteHeader()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |