com.carbonfive.sstemplates.servlet
Class SsTemplateServletContext

java.lang.Object
  extended bycom.carbonfive.sstemplates.SsTemplateContextImpl
      extended bycom.carbonfive.sstemplates.servlet.SsTemplateServletContext
All Implemented Interfaces:
javax.servlet.jsp.el.FunctionMapper, SsTemplateContext, javax.servlet.jsp.el.VariableResolver

public class SsTemplateServletContext
extends SsTemplateContextImpl

This class acts as an EL VariableResolver, but does not support the pageContext implicit object.

Version:
$REVISION
Author:
sivoh

Nested Class Summary
 
Nested classes inherited from class com.carbonfive.sstemplates.SsTemplateContextImpl
SsTemplateContextImpl.RemoveOnGetMap
 
Field Summary
 
Fields inherited from class com.carbonfive.sstemplates.SsTemplateContextImpl
firstColorIndex, lastColorIndex
 
Constructor Summary
SsTemplateServletContext(javax.servlet.http.HttpServletRequest request, javax.servlet.ServletContext context, SsTemplateProcessor processor, java.io.File templateDir)
           
 
Method Summary
 java.io.File findFileInTemplateDirectory(java.lang.String path)
           
 javax.servlet.http.HttpServletRequest getRequest()
           
 javax.servlet.ServletContext getServletContext()
           
 java.lang.Object resolveVariable(java.lang.String name)
           
 void setRequest(javax.servlet.http.HttpServletRequest request)
           
 void setServletContext(javax.servlet.ServletContext servletContext)
           
 
Methods inherited from class com.carbonfive.sstemplates.SsTemplateContextImpl
addStyleData, createFont, getBackgroundColor, getColorIndex, getColumnIndex, getCurrentStyle, getCustomValue, getMaxColumnIndex, getMaxRowIndex, getNamedAccumulator, getNamedStyle, getNamedStyleData, getPageVariable, getRegionForCurrentLocation, getRow, getRowIndex, getSheet, getWorkbook, hasCachedStyleData, incrementCellIndex, incrementRowIndex, nextPageBreak, parseIncludeFile, registerMethod, resolveFunction, setBackgroundColor, setColumnIndex, setCurrentStyle, setCustomValue, setPageBreaks, setPageVariable, setRow, setRowIndex, setSheet, setWorkbook, unsetPageVariable
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SsTemplateServletContext

public SsTemplateServletContext(javax.servlet.http.HttpServletRequest request,
                                javax.servlet.ServletContext context,
                                SsTemplateProcessor processor,
                                java.io.File templateDir)
Method Detail

findFileInTemplateDirectory

public java.io.File findFileInTemplateDirectory(java.lang.String path)
Specified by:
findFileInTemplateDirectory in interface SsTemplateContext
Overrides:
findFileInTemplateDirectory in class SsTemplateContextImpl

resolveVariable

public java.lang.Object resolveVariable(java.lang.String name)
Specified by:
resolveVariable in interface SsTemplateContext
Overrides:
resolveVariable in class SsTemplateContextImpl

getRequest

public javax.servlet.http.HttpServletRequest getRequest()

setRequest

public void setRequest(javax.servlet.http.HttpServletRequest request)

getServletContext

public javax.servlet.ServletContext getServletContext()

setServletContext

public void setServletContext(javax.servlet.ServletContext servletContext)