|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.html.staticssi.HtmlParser
public class HtmlParser
This class parse a given shtml file, that contains set of SSI tags as defined in the SSITags class and substitute with html tags after executing each SSI tag. The MibCompiler will generate a template .shtml file for each instrumentation, that will have required information about the MBean. Using the defined SSI tags the user can customize the html pages for his instrumentaion.
com.adventnet.ssiparser.SSITags,
com.adventnet.ssiparser.HtmlParser| Field Summary | |
|---|---|
(package private) Log |
log
|
| Constructor Summary | |
|---|---|
HtmlParser()
No argument constructor to initialize the HtmlParser. |
|
| Method Summary | |
|---|---|
void |
appendResult(java.lang.StringBuffer strBuf,
java.util.Vector resultVec,
boolean isAdminUser)
|
static boolean |
checkFilePerms(java.lang.String fileName,
java.lang.String access)
|
java.lang.String |
expandSSITags(java.lang.String args,
java.util.Hashtable hashtable)
It will expand the param name if it contains any var tag value. |
java.lang.String |
filterSearch(java.util.Hashtable table,
boolean isAdminUser)
|
java.lang.String |
getDirectoryName()
Getter for the default directory name. |
java.util.Hashtable |
getHashtable()
Gettter for the hashtable contains var ssi tag and its value. |
java.lang.String |
getIndexFileName()
Getter for the index file name. |
java.lang.String |
getIndexMainFileName()
Getter for the index Main frame file name. |
java.lang.String |
getServerName()
Getter for the server name. |
StaticUtil |
getUtilsObject()
|
java.lang.String |
parse(java.lang.String fName)
Parses the given html file according to SSI syntax. |
void |
parseForSubstitutes(java.lang.String fName)
This function will parse the .shtml files and find out each var ssi tag and keep them in a hash table. |
void |
resultsFound(java.lang.String name,
boolean searchForScalar,
boolean searchForTable,
java.util.Vector resultVec)
|
boolean |
resultsFound(java.lang.StringBuffer strBuf,
java.lang.String name)
|
java.lang.String |
runGetTableTag(java.lang.String args)
|
java.lang.String |
runGetTag(java.lang.String args)
|
static void |
setDirectoryName(java.lang.String dir)
Setter for default directory. |
void |
setHashtable(java.lang.Object o)
Setter for the hash table. |
static void |
setIndexFileName(java.lang.String fName)
Set the index file name which is to be parsed for SSI tags when the file name is not mentioned from the client. |
static void |
setIndexMainFileName(java.lang.String fName)
Set the index Main file name which is to be parsed for SSI tags when the file name is not mentioned from the client. |
void |
setRefreshTime(int time)
Setter for the refresh time. |
void |
setServerName(java.lang.String name)
Setter for server name. |
void |
setUtilsObject(StaticUtil su)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
Log log
| Constructor Detail |
|---|
public HtmlParser()
| Method Detail |
|---|
public void setUtilsObject(StaticUtil su)
public StaticUtil getUtilsObject()
public void setServerName(java.lang.String name)
name - - the server name for identification purpose.public java.lang.String getServerName()
public static void setDirectoryName(java.lang.String dir)
dir - the default directory name where all html files
are placed.public java.lang.String getDirectoryName()
public static void setIndexFileName(java.lang.String fName)
index - file Name.public java.lang.String getIndexFileName()
the - index file name.public void setRefreshTime(int time)
time - - the time value for refesh time.public static void setIndexMainFileName(java.lang.String fName)
index - file Name.public java.lang.String getIndexMainFileName()
the - index file name.
public java.lang.String parse(java.lang.String fName)
throws java.lang.Exception
fName - the html file to be parsed.
if - any error occur while parsing the html file.
java.lang.Exception
public static boolean checkFilePerms(java.lang.String fileName,
java.lang.String access)
throws java.io.IOException
java.io.IOExceptionpublic void parseForSubstitutes(java.lang.String fName)
fName - - the name of the .shtmlpublic java.util.Hashtable getHashtable()
public void setHashtable(java.lang.Object o)
o - - the hashtable to set.
public java.lang.String expandSSITags(java.lang.String args,
java.util.Hashtable hashtable)
args - - the param name.hashtable - - the hashtable contains set of
tag and value pairs.
public java.lang.String runGetTableTag(java.lang.String args)
throws java.lang.Exception
java.lang.Exception
public java.lang.String runGetTag(java.lang.String args)
throws java.lang.Exception
java.lang.Exception
public java.lang.String filterSearch(java.util.Hashtable table,
boolean isAdminUser)
throws ParseException
ParseException
public boolean resultsFound(java.lang.StringBuffer strBuf,
java.lang.String name)
public void resultsFound(java.lang.String name,
boolean searchForScalar,
boolean searchForTable,
java.util.Vector resultVec)
public void appendResult(java.lang.StringBuffer strBuf,
java.util.Vector resultVec,
boolean isAdminUser)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||