com.go.teaservlet
Class AdminApplication

java.lang.Object
  |
  +--com.go.teaservlet.AdminApplication
All Implemented Interfaces:
AdminApp, Application

public class AdminApplication
extends java.lang.Object
implements AdminApp

The Admin application defines functions for administering the TeaServlet.

Version:
64 , 7/27/01
Author:
Reece Wilton, Brian S O'Neill, Jonathan Colwell

Inner Class Summary
 class AdminApplication.ContextImpl
           
 
Field Summary
protected  java.lang.String mAdminKey
           
protected  AppAdminLinks[] mAdminLinks
           
protected  java.lang.String mAdminValue
           
protected  ApplicationConfig mConfig
           
protected  Log mLog
           
protected  TeaServlet mTeaServlet
           
 
Constructor Summary
AdminApplication()
           
 
Method Summary
 java.lang.Object createContext(ApplicationRequest request, ApplicationResponse response)
          Returns an instance of AdminContext.
 void destroy()
          Called by the TeaServlet when the application is no longer needed.
 AppAdminLinks getAdminLinks()
          This implementation uses hard coded link information, but other applications can dynamically determine their admin links.
 java.lang.Class getContextType()
          Returns AdminContext.class.
 void init(ApplicationConfig config)
          Initializes the Application.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mConfig

protected ApplicationConfig mConfig

mLog

protected Log mLog

mTeaServlet

protected TeaServlet mTeaServlet

mAdminKey

protected java.lang.String mAdminKey

mAdminValue

protected java.lang.String mAdminValue

mAdminLinks

protected AppAdminLinks[] mAdminLinks
Constructor Detail

AdminApplication

public AdminApplication()
Method Detail

init

public void init(ApplicationConfig config)
Initializes the Application. Accepts the following initialization parameters:
 admin.key - the security parameter key
 admin.value - the security parameter value
 
Specified by:
init in interface Application
Parameters:
config - the application's configuration object

destroy

public void destroy()
Description copied from interface: Application
Called by the TeaServlet when the application is no longer needed.
Specified by:
destroy in interface Application

createContext

public java.lang.Object createContext(ApplicationRequest request,
                                      ApplicationResponse response)
Returns an instance of AdminContext.
Specified by:
createContext in interface Application
Following copied from interface: com.go.teaservlet.Application
Parameters:
request - the client's HTTP request
response - the client's HTTP response
Returns:
an object context for the templates

getContextType

public java.lang.Class getContextType()
Returns AdminContext.class.
Specified by:
getContextType in interface Application
Following copied from interface: com.go.teaservlet.Application
Returns:
the class that the createContext method will return

getAdminLinks

public AppAdminLinks getAdminLinks()
This implementation uses hard coded link information, but other applications can dynamically determine their admin links.
Specified by:
getAdminLinks in interface AdminApp