org.openejb.webadmin.main
Class CMPMappingBean

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

public class CMPMappingBean
extends WebAdminBean

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
CMPMappingBean()
           
 
Method Summary
 void ejbCreate()
          Creates a new instance of HomeBean
 void postProcess(HttpRequest request, HttpResponse response)
          called after all content is written to the browser
 void preProcess(HttpRequest request, HttpResponse response)
          called before any content is written to the browser
 void writeBody(java.io.PrintWriter body)
          writes the main body content to the broswer.
 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

CMPMappingBean

public CMPMappingBean()
Method Detail

ejbCreate

public void ejbCreate()
Creates a new instance of HomeBean

Overrides:
ejbCreate in class WebAdminBean

preProcess

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

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

postProcess

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

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

writeBody

public void writeBody(java.io.PrintWriter body)
               throws java.io.IOException
writes the main body content to the broswer. This content is inside a <p> block

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


Copyright © 1999-2011 OpenEJB. All Rights Reserved.