org.openejb.webadmin.clienttools
Class ViewEjbBean

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

public class ViewEjbBean
extends WebAdminBean
implements Constants

Author:
David Blevins
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.openejb.webadmin.WebAdminBean
ejbContext, footer, HTML_TITLE, request, response, section, sections, SUBSTITUTE
 
Fields inherited from interface org.openejb.webadmin.clienttools.Constants
closedImg, ejbImg, INVOKE_OBJ, javaImg, openImg, pepperImg, tab, VIEW_CLASS, VIEW_EJB, VIEW_JNDI
 
Constructor Summary
ViewEjbBean()
           
 
Method Summary
 java.lang.String getClassRef(java.lang.Class clazz)
           
 java.lang.String getShortClassRef(java.lang.Class clazz)
           
 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 printEjb(java.lang.String name, java.io.PrintWriter out, HttpSession session)
           
protected  void printRow(java.lang.String col1, java.lang.String col2, java.io.PrintWriter out)
          prints a table row similar to this <tr> <td>some info</td> <td>some more info</td> </tr>
 void writeBody(java.io.PrintWriter out)
          writes the main body content to the broswer.
 void writeHtmlTitle(java.io.PrintWriter out)
          Write the TITLE of the HTML document.
 void writePageTitle(java.io.PrintWriter out)
          Write the title of the page.
 
Methods inherited from class org.openejb.webadmin.WebAdminBean
ejbActivate, ejbCreate, ejbPassivate, ejbRemove, formatSubMenuItem, getFooter, getTemplate, initNavSections, onMessage, 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

ViewEjbBean

public ViewEjbBean()
Method Detail

preProcess

public void preProcess(HttpRequest request,
                       HttpResponse response)
                throws java.io.IOException
Description copied from class: WebAdminBean
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
Description copied from class: WebAdminBean
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 out)
                    throws java.io.IOException
Description copied from class: WebAdminBean
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:
out - the output to write to
Throws:
java.io.IOException - of an exception is thrown

writePageTitle

public void writePageTitle(java.io.PrintWriter out)
                    throws java.io.IOException
Description copied from class: WebAdminBean
Write the title of the page. This is displayed right above the main block of content.

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

writeBody

public void writeBody(java.io.PrintWriter out)
               throws java.io.IOException
Description copied from class: WebAdminBean
writes the main body content to the broswer. This content is inside a <p> block

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

printEjb

public void printEjb(java.lang.String name,
                     java.io.PrintWriter out,
                     HttpSession session)
              throws java.lang.Exception
Throws:
java.lang.Exception

printRow

protected void printRow(java.lang.String col1,
                        java.lang.String col2,
                        java.io.PrintWriter out)
                 throws java.io.IOException
Description copied from class: WebAdminBean
prints a table row similar to this <tr> <td>some info</td> <td>some more info</td> </tr>

Overrides:
printRow in class WebAdminBean
Parameters:
col1 - the first column
col2 - the second column
out - the output to write to
Throws:
java.io.IOException - if an exception is thrown

getClassRef

public java.lang.String getClassRef(java.lang.Class clazz)
                             throws java.lang.Exception
Throws:
java.lang.Exception

getShortClassRef

public java.lang.String getShortClassRef(java.lang.Class clazz)
                                  throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 1999-2011 OpenEJB. All Rights Reserved.