org.openejb.webadmin.main
Class ListLogsBean

java.lang.Object
  extended by org.openejb.webadmin.WebAdminBean
      extended by org.openejb.webadmin.main.ListLogsBean
All Implemented Interfaces:
java.io.Serializable, javax.ejb.EnterpriseBean, javax.ejb.SessionBean, HttpBean

public class ListLogsBean
extends WebAdminBean

This bean lists the openejb.log and transaction.log files

Author:
Tim Urberg
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.openejb.webadmin.WebAdminBean
ejbContext, footer, HTML_TITLE, request, response, section, sections, SUBSTITUTE
 
Constructor Summary
ListLogsBean()
           
 
Method Summary
 void ejbCreate()
          called with the bean is created
 void postProcess(HttpRequest request, HttpResponse response)
          after the processing is completed
 void preProcess(HttpRequest request, HttpResponse response)
          before the processing is done
 void writeBody(java.io.PrintWriter body)
          Write the main content
 void writeHtmlTitle(java.io.PrintWriter body)
          Write the TITLE of the HTML document.
 void writePageTitle(java.io.PrintWriter body)
          Write the title of the page.
 void writeSubMenuItems(java.io.PrintWriter body)
          Write the sub items for this bean in the left navigation bar of the page.
 
Methods inherited from class org.openejb.webadmin.WebAdminBean
ejbActivate, ejbPassivate, ejbRemove, formatSubMenuItem, getFooter, getTemplate, initNavSections, onMessage, printRow, printRow, setSessionContext, writeFooter, writeLeftNavBar, writeTemplate, writeTopNavBar
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListLogsBean

public ListLogsBean()
Method Detail

ejbCreate

public void ejbCreate()
called with the bean is created

Overrides:
ejbCreate in class WebAdminBean

postProcess

public void postProcess(HttpRequest request,
                        HttpResponse response)
                 throws java.io.IOException
after the processing is completed

Specified by:
postProcess in class WebAdminBean
Parameters:
request - the http request
response - the http response
Throws:
java.io.IOException - if an exception is thrown

preProcess

public void preProcess(HttpRequest request,
                       HttpResponse response)
                throws java.io.IOException
before the processing is done

Specified by:
preProcess in class WebAdminBean
Parameters:
request - the http request
response - the http response
Throws:
java.io.IOException - if an exception is thrown

writeBody

public void writeBody(java.io.PrintWriter body)
               throws java.io.IOException
Write the main content

Specified by:
writeBody in class WebAdminBean
Parameters:
body - the output to write to
Throws:
java.io.IOException - if an exception is thrown

writeHtmlTitle

public void writeHtmlTitle(java.io.PrintWriter body)
                    throws java.io.IOException
Write the TITLE of the HTML document. This is the part that goes into the <head><title> </title></head> tags

Specified by:
writeHtmlTitle in class WebAdminBean
Parameters:
body - the output to write to
Throws:
java.io.IOException - of an exception is thrown

writePageTitle

public void writePageTitle(java.io.PrintWriter body)
                    throws java.io.IOException
Write the title of the page. This is displayed right above the main block of content.

Specified by:
writePageTitle in class WebAdminBean
Parameters:
body - the output to write to
Throws:
java.io.IOException - if an exception is thrown

writeSubMenuItems

public void writeSubMenuItems(java.io.PrintWriter body)
                       throws java.io.IOException
Write the sub items for this bean in the left navigation bar of the page. This should look somthing like the one below: <tr> <td valign="top" align="left"> <a href="system?show=deployments"><span class="subMenuOff">    Deployments </span> </a></td> </tr> Alternately, the bean can use the method formatSubMenuItem(..) which will create HTML like the one above

Parameters:
body - the output to write to
Throws:
java.io.IOException - if an exception is thrown


Copyright © 1999-2011 OpenEJB. All Rights Reserved.