When you invoke a relative URL, the resulting XML stream is saved in HAWK_HOME/webconsole/tomcat/AppData/HawkXml.xml. The raw data in this file is replaced every time you invoke a relative URL.
The data in HawkXml.xml is determined by
schema definitions included with TIBCO Hawk HTTP Adapter. These definitions are predefined and cannot be modified, but you can view them to gain an understanding of the structure of
HawkXml.xml and the data collected.
You can filter or massage the XML stream in HawkXml.xml to display all, some, or only a small amount of the data: information about only one domain, for example, or for particular agents, types of alerts, or methods in one or multiple domains.
The Invoke URL displays the results of subscribed or invoked methods, so the content varies by method. To allow for this,
Invoke uses a framework instead of a static schema definition like the other three relative URLs. The XML stream is generated dynamically by the servlet.
For composite returns (one row of data), all method parameters returned become child elements of <Row>. All data is returned in a root element called <Returns> and each row of data is delimited by <Row> </Row> tags. The format is:
All four relative URLs retrieve Hawk data in XML. The presentation of the XML data is controlled by stylesheets that use XSLT (eXtensible Stylesheet Language Transformation) and XPath, a language that describes a way to locate and process items in XML. These stylesheets filter and format the XML output to determine the domains, agents, alerts and microagents shown. Each relative URL uses a default stylesheet that displays all elements in your configuration.
These files can be modified and are in the HAWK_HOME/webconsole/tomcat/webapps/http/xsl/http/xsl directory. You can also view the files using an XML-aware application.
Additional sample stylesheets are included with TIBCO Hawk HTTP Adapter. These provide examples of other kinds of formatting and filtering that you can do with the XML data. You can customize any of the existing stylesheets or create new ones to perform such actions as filter data, show only the alerts for particular agents in several domains, or show the status of a selected set of agents in all domains.
To use a customized stylesheet, include the Style parameter in the path when you invoke the relative URL, as described in
Relative URL Overview. All four relative URLs can take the
Style parameter.
The sample HTML interface uses cascading stylesheets to control the look and feel of the Web pages. These are written using standard HTML and can be modified.
There are two cascading stylesheets used by the sample HTML application. The actual stylesheet used on a particular system depends on the Web server or Web application being used to view the data.
JSP/JSTL (Java Server Page/JSP Standard Tag Libraries) files retrieve XML content using the relative URLs, transform the content into HTML, and display the content in HTML. The sample HTML application uses JSP/JSTL. The JSPs can be modified.
All JSPs for the sample HTML application are in the HAWK_HOME/webconsole/tomcat/webapps/http/xsl/http/jsp directory and can be modified. You can also create new JSPs for a new HTML application.