com.go.teaservlet
Interface TeaServletEngine

All Superinterfaces:
ApplicationConfig, javax.servlet.ServletConfig

public interface TeaServletEngine
extends ApplicationConfig

This interface allows other servlets to create TeaServletTransactions. When the TeaServlet is initialized, it adds an attribute to its ServletContext named "com.go.teaservlet.TeaServletEngine". The attribute's value is a TeaServletEngine array. The number of array elements matches the number of times a TeaServlet is configured in. Use TeaServletEngine's name to distinguish between different instances.

Servlets that request a TeaServletTransaction should generally let all output be handled by it. This is because it will try to set headers and use a servlet output stream.

Version:
5 , 01/07/13
Author:
Brian S O'Neill

Method Summary
 TeaServletTransaction createTransaction(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Creates a TeaServletTransaction instance for the given request/response pair and returns it.
 
Methods inherited from interface com.go.teaservlet.ApplicationConfig
getLog, getName, getPlugin, getPlugins, getProperties
 
Methods inherited from interface javax.servlet.ServletConfig
getInitParameter, getInitParameterNames, getServletContext, getServletName
 

Method Detail

createTransaction

public TeaServletTransaction createTransaction(javax.servlet.http.HttpServletRequest request,
                                               javax.servlet.http.HttpServletResponse response)
                                        throws java.io.IOException
Creates a TeaServletTransaction instance for the given request/response pair and returns it.
Parameters:
request - HttpServletRequest used for building ApplicationRequest.
response - HttpServletResponse used for building ApplicationResponse.