com.go.teaservlet
Interface AdminContext

All Superinterfaces:
TeaToolsContext
All Known Subinterfaces:
AdminHttpContext
All Known Implementing Classes:
AdminApplication.ContextImpl

public interface AdminContext
extends TeaToolsContext

Version:
32 , 6/11/01
Author:
Brian S O'Neill

Inner classes inherited from class com.go.teaservlet.TeaToolsContext
TeaToolsContext.HandyClassInfo
 
Method Summary
 void dynamicTemplateCall(java.lang.String templateName)
          allows a template to dynamically call another template
 void dynamicTemplateCall(java.lang.String templateName, java.lang.Object[] params)
          allows a template to dynamically call another template this time with parameters.
 java.lang.Class getClassForName(java.lang.String classname)
          Returns a Class object for a given name.
 java.lang.String getObjectIdentifier(java.lang.Object obj)
          Returns a String that uniquely identifies the given Object.
 TeaServletAdmin getTeaServletAdmin()
          Gets the admin information for the TeaServlet.
 java.lang.Object obtainContextByName(java.lang.String appName)
          returns a context for the specified application instance by name.
 void streamClassBytes(java.lang.String className)
          Streams the structural bytes of the named class via the HttpResponse.
 
Methods inherited from interface com.go.teaservlet.TeaToolsContext
createPatternString, createWhitespaceString, getFirstSentence, getHandyClassInfo, getHandyClassInfo
 

Method Detail

getTeaServletAdmin

public TeaServletAdmin getTeaServletAdmin()
                                   throws javax.servlet.ServletException
Gets the admin information for the TeaServlet. The user also can reload the application or reload templates.

This function processes the following HTTP request parameters:

Returns:
the admin information

getObjectIdentifier

public java.lang.String getObjectIdentifier(java.lang.Object obj)
Returns a String that uniquely identifies the given Object.

getClassForName

public java.lang.Class getClassForName(java.lang.String classname)
Returns a Class object for a given name. it basically lets templates perform Class.forName(classname);

streamClassBytes

public void streamClassBytes(java.lang.String className)
                      throws javax.servlet.ServletException
Streams the structural bytes of the named class via the HttpResponse.

dynamicTemplateCall

public void dynamicTemplateCall(java.lang.String templateName)
                         throws java.lang.Exception
allows a template to dynamically call another template

dynamicTemplateCall

public void dynamicTemplateCall(java.lang.String templateName,
                                java.lang.Object[] params)
                         throws java.lang.Exception
allows a template to dynamically call another template this time with parameters.

obtainContextByName

public java.lang.Object obtainContextByName(java.lang.String appName)
                                     throws javax.servlet.ServletException
returns a context for the specified application instance by name. this is useful when dynamically calling a function in that context.