org.openejb.webadmin.clienttools
Class InvokeObjectBean

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

public class InvokeObjectBean
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, tab, VIEW_CLASS, VIEW_EJB, VIEW_JNDI
 
Constructor Summary
InvokeObjectBean()
           
 
Method Summary
 java.lang.String formatMethod(java.lang.reflect.Method m)
           
 java.lang.String formatObject(java.lang.Object obj)
           
 java.lang.String formatThrowable(java.lang.Throwable err)
           
 org.openejb.webadmin.clienttools.InvokeObjectBean.Converter getConverter(java.lang.Class type)
           
 org.openejb.webadmin.clienttools.InvokeObjectBean.Invocation getInvocation(java.lang.String invID)
           
 java.util.HashMap getInvocationMap()
           
 java.lang.Object getObject(java.lang.String objID)
           
 java.lang.String getObjectID(java.lang.Object obj)
           
 java.util.HashMap getObjectMap()
           
 java.lang.String getShortClassName(java.lang.Class clazz)
           
 java.lang.String getShortClassRef(java.lang.Class clazz)
           
 void invoke(org.openejb.webadmin.clienttools.InvokeObjectBean.Invocation inv)
           
 void main(HttpSession session, java.io.PrintWriter out)
          The main method of this JSP
 void parseArgs(org.openejb.webadmin.clienttools.InvokeObjectBean.Invocation inv)
           
 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 printArgumentList(org.openejb.webadmin.clienttools.InvokeObjectBean.Invocation inv)
           
 void printArgumentSection(org.openejb.webadmin.clienttools.InvokeObjectBean.Invocation inv)
          Print the list of arguments.
 void printInvokeSection(org.openejb.webadmin.clienttools.InvokeObjectBean.Invocation inv)
          Print the list of arguments.
 void printMethodList(org.openejb.webadmin.clienttools.InvokeObjectBean.Invocation inv)
          Prints the list of methods that can be invoked
 void printMethodSection(org.openejb.webadmin.clienttools.InvokeObjectBean.Invocation inv)
          Print the list of methods with the focused method as selected in the box.
 void printObjectList()
          Prints the list of objects that can be invoked
 void printObjectSection()
          Print the list of objects with the focused object as selected in the box.
protected  void printRow(java.lang.String col1, java.lang.String col2)
           
 void removeObject(java.lang.String objID)
           
 void setInvocation(java.lang.String invID, org.openejb.webadmin.clienttools.InvokeObjectBean.Invocation obj)
           
 void setObject(java.lang.String objID, java.lang.Object obj)
           
 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, 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

InvokeObjectBean

public InvokeObjectBean()
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

main

public void main(HttpSession session,
                 java.io.PrintWriter out)
          throws java.lang.Exception
The main method of this JSP

Throws:
java.lang.Exception

printObjectSection

public void printObjectSection()
                        throws java.lang.Exception
Print the list of objects with the focused object as selected in the box. If no object is selected, make an entry called "Pick an Object"

Throws:
java.lang.Exception

printObjectList

public void printObjectList()
                     throws java.lang.Exception
Prints the list of objects that can be invoked

Throws:
java.lang.Exception

printMethodSection

public void printMethodSection(org.openejb.webadmin.clienttools.InvokeObjectBean.Invocation inv)
                        throws java.lang.Exception
Print the list of methods with the focused method as selected in the box. If no method is selected, make an entry called "Pick a Method"

Throws:
java.lang.Exception

printMethodList

public void printMethodList(org.openejb.webadmin.clienttools.InvokeObjectBean.Invocation inv)
                     throws java.lang.Exception
Prints the list of methods that can be invoked

Throws:
java.lang.Exception

printArgumentSection

public void printArgumentSection(org.openejb.webadmin.clienttools.InvokeObjectBean.Invocation inv)
                          throws java.lang.Exception
Print the list of arguments. If no arguments have been selected, show the argument entry form.

Throws:
java.lang.Exception

parseArgs

public void parseArgs(org.openejb.webadmin.clienttools.InvokeObjectBean.Invocation inv)
               throws java.lang.Exception
Throws:
java.lang.Exception

printArgumentList

public void printArgumentList(org.openejb.webadmin.clienttools.InvokeObjectBean.Invocation inv)
                       throws java.lang.Exception
Throws:
java.lang.Exception

printInvokeSection

public void printInvokeSection(org.openejb.webadmin.clienttools.InvokeObjectBean.Invocation inv)
                        throws java.lang.Exception
Print the list of arguments. If no arguments have been selected, show the argument entry form.

Throws:
java.lang.Exception

invoke

public void invoke(org.openejb.webadmin.clienttools.InvokeObjectBean.Invocation inv)
            throws java.lang.Exception
Throws:
java.lang.Exception

formatThrowable

public java.lang.String formatThrowable(java.lang.Throwable err)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

formatObject

public java.lang.String formatObject(java.lang.Object obj)
                              throws java.lang.Exception
Throws:
java.lang.Exception

formatMethod

public java.lang.String formatMethod(java.lang.reflect.Method m)
                              throws java.lang.Exception
Throws:
java.lang.Exception

getShortClassName

public java.lang.String getShortClassName(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

printRow

protected void printRow(java.lang.String col1,
                        java.lang.String col2)
                 throws java.lang.Exception
Throws:
java.lang.Exception

getObjectID

public java.lang.String getObjectID(java.lang.Object obj)

getObject

public java.lang.Object getObject(java.lang.String objID)

setObject

public void setObject(java.lang.String objID,
                      java.lang.Object obj)

removeObject

public void removeObject(java.lang.String objID)

getObjectMap

public java.util.HashMap getObjectMap()

getInvocation

public org.openejb.webadmin.clienttools.InvokeObjectBean.Invocation getInvocation(java.lang.String invID)

setInvocation

public void setInvocation(java.lang.String invID,
                          org.openejb.webadmin.clienttools.InvokeObjectBean.Invocation obj)

getInvocationMap

public java.util.HashMap getInvocationMap()

getConverter

public org.openejb.webadmin.clienttools.InvokeObjectBean.Converter getConverter(java.lang.Class type)


Copyright © 1999-2011 OpenEJB. All Rights Reserved.