org.japano
Class AbstractContext

java.lang.Object
  extended by javax.servlet.jsp.JspContext
      extended by javax.servlet.jsp.PageContext
          extended by org.japano.AbstractContext
Direct Known Subclasses:
Context, TagFileContext

public abstract class AbstractContext
extends javax.servlet.jsp.PageContext

Extends the abstract PageContext class with japano specific context information.

Version:
$Id: AbstractContext.java,v 1.9 2005/12/30 15:54:02 fforw Exp $ SourceForge.net Logo
Author:
Sven Helmberger ( sven dot helmberger at gmx dot de )

Field Summary
 
Fields inherited from class javax.servlet.jsp.PageContext
APPLICATION, APPLICATION_SCOPE, CONFIG, EXCEPTION, OUT, PAGE, PAGE_SCOPE, PAGECONTEXT, REQUEST, REQUEST_SCOPE, RESPONSE, SESSION, SESSION_SCOPE
 
Constructor Summary
AbstractContext()
           
 
Method Summary
abstract  void clearPageScope()
          Removes all attributes of the page scope.
static javax.servlet.http.Cookie getCookie(AbstractContext context, java.lang.String name)
          Returns the first cookie with the given name
 javax.servlet.jsp.el.ExpressionEvaluator getExpressionEvaluator()
          This method returns always null because japano resolves Expressions only at JSP compile time
abstract  JapanoConfig getJapanoConfig()
          Returns the japano configuration for the japano website this context is in.
 javax.servlet.jsp.el.VariableResolver getVariableResolver()
          This method returns always null because japano resolves Expressions only at JSP compile time
abstract  void setOut(javax.servlet.jsp.JspWriter out)
          Sets the JspWriter (Buffer) to use for the next complete or partial page generation.
 
Methods inherited from class javax.servlet.jsp.PageContext
forward, getErrorData, getException, getPage, getRequest, getResponse, getServletConfig, getServletContext, getSession, handlePageException, handlePageException, include, include, initialize, pushBody, release
 
Methods inherited from class javax.servlet.jsp.JspContext
findAttribute, getAttribute, getAttribute, getAttributeNamesInScope, getAttributesScope, getOut, popBody, pushBody, removeAttribute, removeAttribute, setAttribute, setAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractContext

public AbstractContext()
Method Detail

getJapanoConfig

public abstract JapanoConfig getJapanoConfig()
Returns the japano configuration for the japano website this context is in.

Returns:
japano configuration

getExpressionEvaluator

public javax.servlet.jsp.el.ExpressionEvaluator getExpressionEvaluator()
This method returns always null because japano resolves Expressions only at JSP compile time

Specified by:
getExpressionEvaluator in class javax.servlet.jsp.JspContext
Returns:
null

getVariableResolver

public javax.servlet.jsp.el.VariableResolver getVariableResolver()
This method returns always null because japano resolves Expressions only at JSP compile time

Specified by:
getVariableResolver in class javax.servlet.jsp.JspContext
Returns:
null

clearPageScope

public abstract void clearPageScope()
Removes all attributes of the page scope.


getCookie

public static javax.servlet.http.Cookie getCookie(AbstractContext context,
                                                  java.lang.String name)
Returns the first cookie with the given name

Parameters:
context - The page context to get the cookie from.
name - name of the cookie
Returns:
cookie

setOut

public abstract void setOut(javax.servlet.jsp.JspWriter out)
Sets the JspWriter (Buffer) to use for the next complete or partial page generation.

Parameters:
out - JspWriter (or Buffer)