PrintWriter pw = new PrintWriter(sw);
try
{
// Tool information
ToolInfo toolInfo = new ToolInfo(TOOL_NAME, TOOL_VERSION, TOOL_RELEASE_DATE, TOOL_IMPLEMENTER, TOOL_LOCATION);
DocumentFactory documentFactory = DocumentFactory.newInstance();
MonitorConfig monitorConfig = documentFactory.newMonitorConfig();
Comment comment = new CommentImpl();
comment.setText("Comment");
monitorConfig.setComment(comment);
monitorConfig.setLogLocation("URL");
monitorConfig.setReplaceLog(true);
AddStyleSheet addStyleSheet = new AddStyleSheetImpl();
monitorConfig.setAddStyleSheet(addStyleSheet);
monitorConfig.setLogDuration(600);
monitorConfig.setTimeout(3);
ManInTheMiddle manInTheMiddle = new ManInTheMiddleImpl();
monitorConfig.setManInTheMiddle(manInTheMiddle);
monitorConfig.setLocation("documentURI");
monitorConfig.setVerboseOption(false);
// Start
pw.print(toolInfo.getStartXMLString(""));
// Config
pw.print(monitorConfig.toXMLString(WSIConstants.NS_NAME_WSI_MONITOR_CONFIG));
// End
pw.println(toolInfo.getEndXMLString(""));
}
catch (Exception e)
{
}
return sw.toString();