|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.html.dynamic.HtmlCreation
public class HtmlCreation
In the case of HTTP communcation, the displayed html page can be generated in two ways.
1. Dynamic Html Page generation.
2. Customized Html Page generation using SSI tags.
In the first case the user don't need to type any html file for his instrumentation. The HtmlMain and DynamicHtml classes will generate dynamic html files and take care of all the necessary operations like modify value, create value, etc.
In the second case, using the .shtml files generated from the MibCompiler that contains required ssi tags to display the instrumented information, the user can customize the html pages.
This class is the common class to handle both type of html generation. The servlet should create an instance of this class and invoke corresponding functions from here.
com.adventnet.ssiparser.HtmlParser,
com.adventnet.ssiparser.DynamicHtml| Field Summary | |
|---|---|
(package private) java.lang.String |
contextPath
|
| Constructor Summary | |
|---|---|
HtmlCreation()
|
|
| Method Summary | |
|---|---|
void |
addHeaderInfo(java.lang.StringBuffer strBuf,
java.lang.String mbeanName,
java.lang.String url)
|
void |
addStartHtmlTag(java.lang.StringBuffer strBuf)
|
void |
closeHtmlTag(java.lang.StringBuffer strBuf)
|
void |
createAboutUsHtmlFile(java.lang.StringBuffer strBuf)
Creates the contents of the AboutUs File. |
void |
createAdminHtmlFile(java.lang.StringBuffer strBuf)
Creates the contents of the Admin Page |
void |
createAttrbHtmlFile(java.lang.StringBuffer strBuf,
java.util.Hashtable valTable,
java.util.Vector varVect,
java.util.Vector accessVect,
java.util.Vector typeVect,
java.lang.String objName,
java.lang.String mbeanName,
java.lang.String searchAttrbName,
boolean addRow,
boolean ischkBox,
java.lang.String viewName)
Creates the HTML file for attributes of array type. |
void |
createDeleteViewHtmlFile(java.lang.StringBuffer strBuf,
java.util.Hashtable table)
|
void |
createDomainIndexFile(java.lang.StringBuffer strBuf,
java.lang.String domainName,
java.util.Hashtable table)
Displays the list of MBeans of a particular domain. |
void |
createFramesPage(java.lang.StringBuffer strBuf)
Creates the main index file with frames. |
void |
createHashtableHtmlFile(java.lang.StringBuffer strBuf,
java.lang.String mbeanName,
java.lang.String objName,
java.lang.String searchAttrbName,
java.lang.String viewName,
java.lang.Object obj)
|
java.lang.String |
createHTMLForHashtable(java.util.Hashtable table)
|
java.lang.String |
createHTMLForVector(java.util.Vector table,
java.lang.String objName)
|
void |
createIndexFile(java.lang.StringBuffer strBuf,
java.lang.String file,
java.util.Hashtable table,
boolean isauthentication,
boolean isAdminUser,
java.util.Hashtable viewTable)
Creates the contents of the index file in html format. |
void |
createListMBeansHtmlFile(java.lang.StringBuffer strBuf,
java.util.Vector vect,
java.lang.String viewname)
Creates the contents of the all the MBeans that are registered with the MBeanServer. |
void |
createLoginHtmlFile(java.lang.StringBuffer strBuf,
boolean flag)
Creates the contents of the Login File. |
void |
createMainPage(java.lang.StringBuffer strBuf,
java.util.Hashtable table,
boolean isauthentication,
boolean isAdminUser,
java.util.Hashtable viewTable)
Creates the contents of the MainPage. |
java.lang.String |
createNewRowFile(java.lang.StringBuffer strBuf,
java.util.Vector varVect,
java.util.Vector access,
java.util.Vector type,
java.util.Vector indexVect,
java.lang.String mbeanName,
java.lang.String objName,
java.lang.String viewName)
Creates the contents of the htmlfile when the addRow operation is performed. |
void |
createNewViewHtmlFile(java.lang.StringBuffer strBuf,
java.util.Hashtable table)
Creates the contents of the Creating a new view in Customize page. |
void |
createNotifHtmlFile(java.lang.StringBuffer strBuf,
java.util.Vector varVect,
java.util.ArrayList list,
int stIndex,
int endIndex)
Creates the contents of the Notifications Page |
void |
createOperationResultHtmlFile(java.lang.StringBuffer strBuf,
java.lang.String objName,
java.lang.String operationName,
java.lang.String viewName,
boolean operResultFlag)
Creates the contents of the Operations page. |
void |
createOperationsHtmlFile(java.lang.StringBuffer strBuf,
java.lang.String objName,
java.lang.String mbeanName,
java.util.Hashtable table,
java.lang.String viewName)
Creates the contents of the Operations page. |
void |
createOperationsPageForValues(java.lang.StringBuffer strBuf,
java.lang.String objName,
java.lang.String actionName,
java.lang.String mbeanName,
java.lang.Object obj,
java.lang.String[] sig,
java.lang.String viewName,
UserViewInterface userViewIntf)
Creates the contents of the TopFrame. |
void |
createOptionsHtmlFile(java.lang.StringBuffer strBuf)
|
void |
createPagePropertiesHtmlFile(java.lang.StringBuffer strBuf,
java.util.Vector header)
|
void |
createRegisterHtmlFile(java.lang.StringBuffer strBuf)
Creates the contents of the RegisterMBean File. |
void |
createRegUnRegResultHtmlFile(java.lang.StringBuffer strBuf,
int reg,
boolean regResultFlag)
|
void |
createScalarHtmlFile(java.lang.StringBuffer strBuf,
java.lang.String objName,
java.lang.String mbeanName,
java.util.Vector header,
java.util.Hashtable table,
java.util.Hashtable domTable,
java.lang.String viewName)
Displays the list of Attributes of a particular MBean. |
void |
createSearchHtmlFile(java.lang.StringBuffer strBuf,
java.util.Vector resultVec)
Creates the contents of the Search Page |
void |
createSessionExpireHtmlFile(java.lang.StringBuffer strBuf)
|
void |
createTableHtmlFile(java.lang.StringBuffer strBuf,
java.util.Hashtable valTable,
java.util.Hashtable table,
java.util.Hashtable domTable,
java.util.Vector vect,
java.lang.String objName,
java.lang.String mbeanName,
int stIndex,
int endIndex,
int flag,
java.lang.String viewName)
Creates the contents of the html file that appears in Table format. |
void |
createTopFramePage(java.lang.StringBuffer strBuf)
Creates the contents of the TopFrame. |
void |
createUnRegisterHtmlFile(java.lang.StringBuffer strBuf)
Creates the contents of the UnRegisterMBean File. |
void |
createUserDefinedTypeHtmlFile(java.lang.StringBuffer strBuf,
java.lang.String mbeanName,
java.lang.String objName,
java.lang.String searchAttrbName,
java.lang.String viewName,
java.lang.Object obj,
java.lang.String type,
UserViewInterface userViewIntf)
|
void |
createUserInfoHtmlFile(java.lang.StringBuffer strBuf)
Creates the contents of the UserInformations file. |
void |
createVectorHtmlFile(java.lang.StringBuffer strBuf,
java.lang.String mbeanName,
java.lang.String objName,
java.lang.String searchAttrbName,
java.lang.String viewName,
java.lang.Object obj)
|
void |
createViewForViewName(java.lang.StringBuffer strBuf,
java.lang.String viewName,
java.util.Vector vect)
|
void |
createViewOptionsHtmlFile(java.lang.StringBuffer strBuf)
Creates the contents of the Customize page. |
void |
setContextPath(java.lang.String src)
|
void |
setHtmlPageProp(HtmlPageProp htmlPageProp)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
java.lang.String contextPath
| Constructor Detail |
|---|
public HtmlCreation()
| Method Detail |
|---|
public void setContextPath(java.lang.String src)
public void setHtmlPageProp(HtmlPageProp htmlPageProp)
setHtmlPageProp in interface HtmlInterfacepublic void addStartHtmlTag(java.lang.StringBuffer strBuf)
public void closeHtmlTag(java.lang.StringBuffer strBuf)
public void addHeaderInfo(java.lang.StringBuffer strBuf,
java.lang.String mbeanName,
java.lang.String url)
public void createIndexFile(java.lang.StringBuffer strBuf,
java.lang.String file,
java.util.Hashtable table,
boolean isauthentication,
boolean isAdminUser,
java.util.Hashtable viewTable)
createIndexFile in interface HtmlInterfacestrBuf - to store the generated tags information.file - the filenametable - It cofdntains all the list of domains that are
registered with the MBeanServerisauthentication - boolean true if authentication enable
false otherwise.isAdminUser - boolean true if Admin User false otherwisepublic void createFramesPage(java.lang.StringBuffer strBuf)
strBuf - to store the html tags that are generatedpublic void createTopFramePage(java.lang.StringBuffer strBuf)
strBuf - to store the html tags that are generated
public void createMainPage(java.lang.StringBuffer strBuf,
java.util.Hashtable table,
boolean isauthentication,
boolean isAdminUser,
java.util.Hashtable viewTable)
strBuf - to store the html tags that are generatedtable - It contains all the list of domains that are registered with the MBeanServerisauthentication - boolean flag which tells whether the agent needs authentication or not.isAdminUser - boolean flag which tells whether the user is a admin user or not
public void createDomainIndexFile(java.lang.StringBuffer strBuf,
java.lang.String domainName,
java.util.Hashtable table)
createDomainIndexFile in interface HtmlInterfacestrBuf - to store the html tags that are generateddomainName - domain name for which the index needs to be generated.table - hashtable which stores the details of registered MBeans
under the respective domains.
public void createScalarHtmlFile(java.lang.StringBuffer strBuf,
java.lang.String objName,
java.lang.String mbeanName,
java.util.Vector header,
java.util.Hashtable table,
java.util.Hashtable domTable,
java.lang.String viewName)
createScalarHtmlFile in interface HtmlInterfacestrBuf - to store the html tags that are generatedobjName - a string representing the ObjectName of
a particular MBeanmbeanName - is a string which is the name of the Mbean.header - Vector which has the header variables to be displayed in the page like Attribute Value.table - Hashtabel which contains the vectors name, type, access, description and valuedomTable - which contains the list of domains.
public void createOperationsHtmlFile(java.lang.StringBuffer strBuf,
java.lang.String objName,
java.lang.String mbeanName,
java.util.Hashtable table,
java.lang.String viewName)
createOperationsHtmlFile in interface HtmlInterfacestrBuf - to store the html tags that are generatedobjName - the object name of the domain for which the operations are being created.mbeanName - the name of the MBean for which the operations are being createdtable - which contains the OperationName, ReturnType, ParamVector and ParamType vectors respectively
public void createOperationsPageForValues(java.lang.StringBuffer strBuf,
java.lang.String objName,
java.lang.String actionName,
java.lang.String mbeanName,
java.lang.Object obj,
java.lang.String[] sig,
java.lang.String viewName,
UserViewInterface userViewIntf)
createOperationsPageForValues in interface HtmlInterfacestrBuf - to store the html tags that are generatedobjName - for which the operation page is created.actionName - which specifies the operation name (get/set)mbeanName - the name of the MbEan for which the page is generated.obj - the return type of the operqation.sig - an array of string.viewName - the name of the View for a particular user
public java.lang.String createHTMLForVector(java.util.Vector table,
java.lang.String objName)
public java.lang.String createHTMLForHashtable(java.util.Hashtable table)
public void createTableHtmlFile(java.lang.StringBuffer strBuf,
java.util.Hashtable valTable,
java.util.Hashtable table,
java.util.Hashtable domTable,
java.util.Vector vect,
java.lang.String objName,
java.lang.String mbeanName,
int stIndex,
int endIndex,
int flag,
java.lang.String viewName)
createTableHtmlFile in interface HtmlInterfacestrBuf - to store the html tags that are generatedvalTable - hashtable which has the values of the rows according to key value index.table - hashtable which gets the vector for variable, type, access and indexes names.domTable - hashtable which contains the other domian names.vect - vector which contains the indexes list.objName - the object name of the table.mbeanName - the name of the MBean for which the table belongs.stIndex - the first index of the row displayedendIndex - the last index of the row displayedflag - which indicates whether prev, next contextPath/images to be present or not.
public void createUserDefinedTypeHtmlFile(java.lang.StringBuffer strBuf,
java.lang.String mbeanName,
java.lang.String objName,
java.lang.String searchAttrbName,
java.lang.String viewName,
java.lang.Object obj,
java.lang.String type,
UserViewInterface userViewIntf)
createUserDefinedTypeHtmlFile in interface HtmlInterface
public void createHashtableHtmlFile(java.lang.StringBuffer strBuf,
java.lang.String mbeanName,
java.lang.String objName,
java.lang.String searchAttrbName,
java.lang.String viewName,
java.lang.Object obj)
createHashtableHtmlFile in interface HtmlInterface
public void createVectorHtmlFile(java.lang.StringBuffer strBuf,
java.lang.String mbeanName,
java.lang.String objName,
java.lang.String searchAttrbName,
java.lang.String viewName,
java.lang.Object obj)
createVectorHtmlFile in interface HtmlInterface
public void createAttrbHtmlFile(java.lang.StringBuffer strBuf,
java.util.Hashtable valTable,
java.util.Vector varVect,
java.util.Vector accessVect,
java.util.Vector typeVect,
java.lang.String objName,
java.lang.String mbeanName,
java.lang.String searchAttrbName,
boolean addRow,
boolean ischkBox,
java.lang.String viewName)
createAttrbHtmlFile in interface HtmlInterfacestrBuf - to store the html tags that are generatedvalTable - hashtable which has the row values for each indexes.varVect - the vector which contains the variables list.accessVect - the vector which contains the access type.typeVect - the vector which contains the type of the variable.objName - the object name of the Mbean for which the table is displayedmbeanName - the name of the MBean.searchAttrbName - the attribute for which the values are displayed.addRow - the flag which specifies the addRow button has to be added or not.ischkBox - the flag which specifies whether the check box has the displayed for each row.
public java.lang.String createNewRowFile(java.lang.StringBuffer strBuf,
java.util.Vector varVect,
java.util.Vector access,
java.util.Vector type,
java.util.Vector indexVect,
java.lang.String mbeanName,
java.lang.String objName,
java.lang.String viewName)
createNewRowFile in interface HtmlInterfacestrBuf - to store the generated tags information.varVect - vector which contains the the variable names.access - the access type for each variable.type - the data type for each of the variable.indexVect - the vector which contains the names of the index.mbeanName - The Name of the MBean for which the new row file is displayed.objName - the object name of the MBean which it is displayed.
public void createNotifHtmlFile(java.lang.StringBuffer strBuf,
java.util.Vector varVect,
java.util.ArrayList list,
int stIndex,
int endIndex)
createNotifHtmlFile in interface HtmlInterfacestrBuf - to store the generated tags information.varVect - the vector which displays the header for the table to be displayed.list - the array list containing the notification values.stIndex - specifies the Start IndexendIndex - specifies the End Index
public void createSearchHtmlFile(java.lang.StringBuffer strBuf,
java.util.Vector resultVec)
createSearchHtmlFile in interface HtmlInterfacestrBuf - to store the generated tags information.resultVec - a vector which stores the results of the search operationpublic void createAdminHtmlFile(java.lang.StringBuffer strBuf)
createAdminHtmlFile in interface HtmlInterfacestrBuf - to store the generated tags information.public void createRegisterHtmlFile(java.lang.StringBuffer strBuf)
createRegisterHtmlFile in interface HtmlInterfacestrBuf - to store the generated tags information.public void createUnRegisterHtmlFile(java.lang.StringBuffer strBuf)
createUnRegisterHtmlFile in interface HtmlInterfacestrBuf - to store the generated tags information.public void createAboutUsHtmlFile(java.lang.StringBuffer strBuf)
createAboutUsHtmlFile in interface HtmlInterfacestrBuf - to store the generated tags information.
public void createLoginHtmlFile(java.lang.StringBuffer strBuf,
boolean flag)
createLoginHtmlFile in interface HtmlInterfacestrBuf - to store the generated tags information.flag - which specifes whether the page should lead to main page or index page.public void createUserInfoHtmlFile(java.lang.StringBuffer strBuf)
createUserInfoHtmlFile in interface HtmlInterfacestrBuf - to store the generated tags information.
public void createNewViewHtmlFile(java.lang.StringBuffer strBuf,
java.util.Hashtable table)
createNewViewHtmlFile in interface HtmlInterfacestrBuf - to store the html tags that are generatedtable - It contains all the list of domains that are registered with the MBeanServerpublic void createViewOptionsHtmlFile(java.lang.StringBuffer strBuf)
createViewOptionsHtmlFile in interface HtmlInterfacestrBuf - to store the html tags that are generated
public void createListMBeansHtmlFile(java.lang.StringBuffer strBuf,
java.util.Vector vect,
java.lang.String viewname)
createListMBeansHtmlFile in interface HtmlInterfacestrBuf - to store the html tags that are generatedvect - It contains all the list of MBeans for the
selected domains while creating a view.viewname - A name that is given for the view.
public void createViewForViewName(java.lang.StringBuffer strBuf,
java.lang.String viewName,
java.util.Vector vect)
createViewForViewName in interface HtmlInterface
public void createDeleteViewHtmlFile(java.lang.StringBuffer strBuf,
java.util.Hashtable table)
createDeleteViewHtmlFile in interface HtmlInterface
public void createPagePropertiesHtmlFile(java.lang.StringBuffer strBuf,
java.util.Vector header)
createPagePropertiesHtmlFile in interface HtmlInterfacepublic void createOptionsHtmlFile(java.lang.StringBuffer strBuf)
createOptionsHtmlFile in interface HtmlInterface
public void createOperationResultHtmlFile(java.lang.StringBuffer strBuf,
java.lang.String objName,
java.lang.String operationName,
java.lang.String viewName,
boolean operResultFlag)
HtmlInterface
createOperationResultHtmlFile in interface HtmlInterfacestrBuf - to store the html tags that are generatedobjName - the object name of the domain for which the operations are being created.operationName - the name of the View for a particular useroperResultFlag - flag which describes whether the operation is successful or not.
public void createRegUnRegResultHtmlFile(java.lang.StringBuffer strBuf,
int reg,
boolean regResultFlag)
createRegUnRegResultHtmlFile in interface HtmlInterfacepublic void createSessionExpireHtmlFile(java.lang.StringBuffer strBuf)
createSessionExpireHtmlFile in interface HtmlInterface
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||