org.openejb.webadmin.main
Class ConfigBean

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

public class ConfigBean
extends WebAdminBean

This bean allows the user to graphicly edit the OpenEJB configuration file usually located at $OPENEJB_HOME/config/openejb.conf.

Author:
David Blevins, Tim Urberg
See Also:
ConnectionManager, Connector, Container, Deployments, JndiProvider, Openejb, ProxyFactory, Resource, SecurityService, TransactionService, Serialized Form

Field Summary
 
Fields inherited from class org.openejb.webadmin.WebAdminBean
ejbContext, footer, HTML_TITLE, request, response, section, sections, SUBSTITUTE
 
Constructor Summary
ConfigBean()
           
 
Method Summary
 void ejbCreate()
          Called when the container creates a new instance of this bean
 void postProcess(HttpRequest request, HttpResponse response)
          called after content is written to the browser
 void preProcess(HttpRequest request, HttpResponse response)
          Called before content is written to the browser
 void writeBody(java.io.PrintWriter body)
          Write the main content to the browser
 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)
          Writes sub menu items for this menu item
 
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

ConfigBean

public ConfigBean()
Method Detail

ejbCreate

public void ejbCreate()
Called when the container creates a new instance of this bean

Overrides:
ejbCreate in class WebAdminBean

preProcess

public void preProcess(HttpRequest request,
                       HttpResponse response)
                throws java.io.IOException
Called before content is written to the browser

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

postProcess

public void postProcess(HttpRequest request,
                        HttpResponse response)
                 throws java.io.IOException
called after content is written to the browser

Specified by:
postProcess in class WebAdminBean
Parameters:
request - the HTTP request object
response - the HTTP response object
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 tags

Specified by:
writeHtmlTitle in class WebAdminBean
Parameters:
body - the body to write the title to
Throws:
java.io.IOException - if 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 body to write the page title to
Throws:
java.io.IOException - if an exception is thrown

writeSubMenuItems

public void writeSubMenuItems(java.io.PrintWriter body)
                       throws java.io.IOException
Writes sub menu items for this menu item

Parameters:
body - the output to write to
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 to the browser

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


Copyright © 1999-2011 OpenEJB. All Rights Reserved.