org.apache.jasper.runtime

Class JspContextWrapper

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().

Author: Kin-man Chung Jan Luehe Jacob Hookom

Constructor Summary
JspContextWrapper(JspContext jspContext, ArrayList nestedVars, ArrayList atBeginVars, ArrayList atEndVars, Map aliases)
Method Summary
ObjectfindAttribute(String name)
voidforward(String relativeUrlPath)
ObjectgetAttribute(String name)
ObjectgetAttribute(String name, int scope)
Enumeration<String>getAttributeNamesInScope(int scope)
intgetAttributesScope(String name)
ELContextgetELContext()
ExceptiongetException()
ExpressionEvaluatorgetExpressionEvaluator()
JspWritergetOut()
ObjectgetPage()
ServletRequestgetRequest()
ServletResponsegetResponse()
ServletConfiggetServletConfig()
ServletContextgetServletContext()
HttpSessiongetSession()
VariableResolvergetVariableResolver()
voidhandlePageException(Exception ex)
voidhandlePageException(Throwable t)
voidinclude(String relativeUrlPath)
voidinclude(String relativeUrlPath, boolean flush)
voidinitialize(Servlet servlet, ServletRequest request, ServletResponse response, String errorPageURL, boolean needsSession, int bufferSize, boolean autoFlush)
JspWriterpopBody()
BodyContentpushBody()
JspWriterpushBody(Writer writer)
voidrelease()
voidremoveAttribute(String name)
voidremoveAttribute(String name, int scope)
ObjectresolveVariable(String pName)
VariableResolver interface
voidsetAttribute(String name, Object value)
voidsetAttribute(String name, Object value, int scope)
voidsyncBeforeInvoke()
Synchronize variables before fragment invokation
voidsyncBeginTagFile()
Synchronize variables at begin of tag file
voidsyncEndTagFile()
Synchronize variables at end of tag file

Constructor Detail

JspContextWrapper

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

Method Detail

findAttribute

public Object findAttribute(String name)

forward

public void forward(String relativeUrlPath)

getAttribute

public Object getAttribute(String name)

getAttribute

public Object getAttribute(String name, int scope)

getAttributeNamesInScope

public Enumeration<String> getAttributeNamesInScope(int scope)

getAttributesScope

public int getAttributesScope(String name)

getELContext

public ELContext getELContext()

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)

handlePageException

public void handlePageException(Throwable t)

include

public void include(String relativeUrlPath)

include

public void include(String relativeUrlPath, boolean flush)

initialize

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

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)
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-2011 Apache Software Foundation. All Rights Reserved.