org.apache.jasper.runtime

Class JspContextWrapper

Implemented Interfaces:
VariableResolver

public class JspContextWrapper
extends PageContext
implements VariableResolver

Implementation of a JSP Context Wrapper. The JSP Context Wrapper is a JspContext created and maintained by a tag handler implementation. It wraps the Invoking JSP Context, that is, the JspContext instance passed to the tag handler by the invoking page via setJspContext().
Authors:
Kin-man Chung
Jan Luehe

Constructor Summary

JspContextWrapper(JspContext jspContext, ArrayList nestedVars, ArrayList atBeginVars, ArrayList atEndVars, Map aliases)

Method Summary

Object
findAttribute(String name)
void
forward(String relativeUrlPath)
Object
getAttribute(String name)
Object
getAttribute(String name, int scope)
Enumeration
getAttributeNamesInScope(int scope)
int
getAttributesScope(String name)
Exception
getException()
ExpressionEvaluator
getExpressionEvaluator()
JspWriter
getOut()
Object
getPage()
ServletRequest
getRequest()
ServletResponse
getResponse()
ServletConfig
getServletConfig()
ServletContext
getServletContext()
HttpSession
getSession()
VariableResolver
getVariableResolver()
void
handlePageException(Exception ex)
void
handlePageException(Throwable t)
void
include(String relativeUrlPath)
void
include(String relativeUrlPath, boolean flush)
void
initialize(Servlet servlet, ServletRequest request, ServletResponse response, String errorPageURL, boolean needsSession, int bufferSize, boolean autoFlush)
JspWriter
popBody()
BodyContent
pushBody()
JspWriter
pushBody(Writer writer)
void
release()
void
removeAttribute(String name)
void
removeAttribute(String name, int scope)
Object
resolveVariable(String pName)
VariableResolver interface
void
setAttribute(String name, Object value)
void
setAttribute(String name, Object value, int scope)
void
syncBeforeInvoke()
Synchronize variables before fragment invokation
void
syncBeginTagFile()
Synchronize variables at begin of tag file
void
syncEndTagFile()
Synchronize variables at end of tag file

Constructor Details

JspContextWrapper

public JspContextWrapper(JspContext jspContext,
                         ArrayList nestedVars,
                         ArrayList atBeginVars,
                         ArrayList atEndVars,
                         Map aliases)

Method Details

findAttribute

public Object findAttribute(String name)

forward

public void forward(String relativeUrlPath)
            throws ServletException,
                   IOException

getAttribute

public Object getAttribute(String name)

getAttribute

public Object getAttribute(String name,
                           int scope)

getAttributeNamesInScope

public Enumeration getAttributeNamesInScope(int scope)

getAttributesScope

public int getAttributesScope(String name)

getException

public Exception getException()

getExpressionEvaluator

public ExpressionEvaluator getExpressionEvaluator()

getOut

public JspWriter getOut()

getPage

public Object getPage()

getRequest

public ServletRequest getRequest()

getResponse

public ServletResponse getResponse()

getServletConfig

public ServletConfig getServletConfig()

getServletContext

public ServletContext getServletContext()

getSession

public HttpSession getSession()

getVariableResolver

public VariableResolver getVariableResolver()

handlePageException

public void handlePageException(Exception ex)
            throws IOException,
                   ServletException

handlePageException

public void handlePageException(Throwable t)
            throws IOException,
                   ServletException

include

public void include(String relativeUrlPath)
            throws ServletException,
                   IOException

include

public void include(String relativeUrlPath,
                    boolean flush)
            throws ServletException,
                   IOException

initialize

public void initialize(Servlet servlet,
                       ServletRequest request,
                       ServletResponse response,
                       String errorPageURL,
                       boolean needsSession,
                       int bufferSize,
                       boolean autoFlush)
            throws IOException,
                   IllegalStateException,
                   IllegalArgumentException

popBody

public JspWriter popBody()

pushBody

public BodyContent pushBody()

pushBody

public JspWriter pushBody(Writer writer)

release

public void release()

removeAttribute

public void removeAttribute(String name)

removeAttribute

public void removeAttribute(String name,
                            int scope)

resolveVariable

public Object resolveVariable(String pName)
            throws ELException
VariableResolver interface

setAttribute

public void setAttribute(String name,
                         Object value)

setAttribute

public void setAttribute(String name,
                         Object value,
                         int scope)

syncBeforeInvoke

public void syncBeforeInvoke()
Synchronize variables before fragment invokation

syncBeginTagFile

public void syncBeginTagFile()
Synchronize variables at begin of tag file

syncEndTagFile

public void syncEndTagFile()
Synchronize variables at end of tag file

Copyright ?? 2000-2004 Apache Software Foundation. All Rights Reserved.