org.objectweb.cjdbc.controller
Class ControllerReport

java.lang.Object
  extended byorg.objectweb.cjdbc.controller.ControllerReport

public class ControllerReport
extends java.lang.Object

Class to create report from Controller

Author:
Nicolas Modrzyk

Field Summary
private  java.lang.StringBuffer buffer
           
private  Controller controller
           
private  java.lang.StringBuffer exceptionBuffer
           
private  java.io.FileOutputStream fos
           
 
Constructor Summary
ControllerReport(Controller controller)
          Call above and write controller xml information and information
ControllerReport(Controller controller, java.lang.Exception e)
          Call above and write about the exception
 
Method Summary
 void generate()
          Flush and close
 void init(Controller controller)
           
private  void write(java.util.Hashtable table)
           
private  void write(java.lang.String string)
           
 void writeControllerInfo()
           
 void writeControllerSettings()
           
 void writeException(java.lang.Exception e)
           
private  void writeFile(java.lang.String filename)
           
private  void writeHeader(java.lang.String header)
           
 void writeJavaProperties()
           
 void writeLogs()
           
private  void writeTitle(java.lang.String title)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

controller

private Controller controller

buffer

private java.lang.StringBuffer buffer

exceptionBuffer

private java.lang.StringBuffer exceptionBuffer

fos

private java.io.FileOutputStream fos
Constructor Detail

ControllerReport

public ControllerReport(Controller controller)
Call above and write controller xml information and information

Parameters:
controller - to report

ControllerReport

public ControllerReport(Controller controller,
                        java.lang.Exception e)
Call above and write about the exception

Parameters:
controller - to report
e - exception
Method Detail

writeControllerInfo

public void writeControllerInfo()

init

public void init(Controller controller)

writeControllerSettings

public void writeControllerSettings()

writeJavaProperties

public void writeJavaProperties()

writeLogs

public void writeLogs()

writeException

public void writeException(java.lang.Exception e)

generate

public void generate()
Flush and close


write

private void write(java.lang.String string)

writeFile

private void writeFile(java.lang.String filename)

write

private void write(java.util.Hashtable table)

writeTitle

private void writeTitle(java.lang.String title)

writeHeader

private void writeHeader(java.lang.String header)


Copyright © 2002, 2003 - ObjectWeb Consortium - All Rights Reserved.