Class JspContextWrapper
java.lang.Object
javax.servlet.jsp.JspContext
javax.servlet.jsp.PageContext
org.apache.sling.scripting.jsp.jasper.runtime.JspContextWrapper
- All Implemented Interfaces:
javax.servlet.jsp.el.VariableResolver
public class JspContextWrapper
extends javax.servlet.jsp.PageContext
implements javax.servlet.jsp.el.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
-
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
ConstructorsConstructorDescriptionJspContextWrapper(javax.servlet.jsp.JspContext jspContext, ArrayList nestedVars, ArrayList atBeginVars, ArrayList atEndVars, Map aliases) -
Method Summary
Modifier and TypeMethodDescriptionfindAttribute(String name) voidgetAttribute(String name) getAttribute(String name, int scope) getAttributeNamesInScope(int scope) intgetAttributesScope(String name) javax.el.ELContextjavax.servlet.jsp.el.ExpressionEvaluatorjavax.servlet.jsp.JspWritergetOut()getPage()javax.servlet.ServletRequestjavax.servlet.ServletResponsejavax.servlet.ServletConfigjavax.servlet.ServletContextjavax.servlet.http.HttpSessionjavax.servlet.jsp.el.VariableResolvervoidvoidvoidvoidvoidinitialize(javax.servlet.Servlet servlet, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, String errorPageURL, boolean needsSession, int bufferSize, boolean autoFlush) javax.servlet.jsp.JspWriterpopBody()javax.servlet.jsp.tagext.BodyContentpushBody()javax.servlet.jsp.JspWritervoidrelease()voidremoveAttribute(String name) voidremoveAttribute(String name, int scope) resolveVariable(String pName) VariableResolver interfacevoidsetAttribute(String name, Object value) voidsetAttribute(String name, Object value, int scope) voidSynchronize variables before fragment invokationvoidSynchronize variables at begin of tag filevoidSynchronize variables at end of tag fileMethods inherited from class javax.servlet.jsp.PageContext
getErrorData
-
Constructor Details
-
JspContextWrapper
-
-
Method Details
-
initialize
public void initialize(javax.servlet.Servlet servlet, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, String errorPageURL, boolean needsSession, int bufferSize, boolean autoFlush) throws IOException, IllegalStateException, IllegalArgumentException - Specified by:
initializein classjavax.servlet.jsp.PageContext- Throws:
IOExceptionIllegalStateExceptionIllegalArgumentException
-
getAttribute
- Specified by:
getAttributein classjavax.servlet.jsp.JspContext
-
getAttribute
- Specified by:
getAttributein classjavax.servlet.jsp.JspContext
-
setAttribute
- Specified by:
setAttributein classjavax.servlet.jsp.JspContext
-
setAttribute
- Specified by:
setAttributein classjavax.servlet.jsp.JspContext
-
findAttribute
- Specified by:
findAttributein classjavax.servlet.jsp.JspContext
-
removeAttribute
- Specified by:
removeAttributein classjavax.servlet.jsp.JspContext
-
removeAttribute
- Specified by:
removeAttributein classjavax.servlet.jsp.JspContext
-
getAttributesScope
- Specified by:
getAttributesScopein classjavax.servlet.jsp.JspContext
-
getAttributeNamesInScope
- Specified by:
getAttributeNamesInScopein classjavax.servlet.jsp.JspContext
-
release
public void release()- Specified by:
releasein classjavax.servlet.jsp.PageContext
-
getOut
public javax.servlet.jsp.JspWriter getOut()- Specified by:
getOutin classjavax.servlet.jsp.JspContext
-
getSession
public javax.servlet.http.HttpSession getSession()- Specified by:
getSessionin classjavax.servlet.jsp.PageContext
-
getPage
- Specified by:
getPagein classjavax.servlet.jsp.PageContext
-
getRequest
public javax.servlet.ServletRequest getRequest()- Specified by:
getRequestin classjavax.servlet.jsp.PageContext
-
getResponse
public javax.servlet.ServletResponse getResponse()- Specified by:
getResponsein classjavax.servlet.jsp.PageContext
-
getException
- Specified by:
getExceptionin classjavax.servlet.jsp.PageContext
-
getServletConfig
public javax.servlet.ServletConfig getServletConfig()- Specified by:
getServletConfigin classjavax.servlet.jsp.PageContext
-
getServletContext
public javax.servlet.ServletContext getServletContext()- Specified by:
getServletContextin classjavax.servlet.jsp.PageContext
-
forward
- Specified by:
forwardin classjavax.servlet.jsp.PageContext- Throws:
javax.servlet.ServletExceptionIOException
-
include
- Specified by:
includein classjavax.servlet.jsp.PageContext- Throws:
javax.servlet.ServletExceptionIOException
-
include
public void include(String relativeUrlPath, boolean flush) throws javax.servlet.ServletException, IOException - Specified by:
includein classjavax.servlet.jsp.PageContext- Throws:
javax.servlet.ServletExceptionIOException
-
getVariableResolver
public javax.servlet.jsp.el.VariableResolver getVariableResolver()- Specified by:
getVariableResolverin classjavax.servlet.jsp.JspContext
-
pushBody
public javax.servlet.jsp.tagext.BodyContent pushBody()- Overrides:
pushBodyin classjavax.servlet.jsp.PageContext
-
pushBody
- Overrides:
pushBodyin classjavax.servlet.jsp.JspContext
-
popBody
public javax.servlet.jsp.JspWriter popBody()- Overrides:
popBodyin classjavax.servlet.jsp.JspContext
-
getExpressionEvaluator
public javax.servlet.jsp.el.ExpressionEvaluator getExpressionEvaluator()- Specified by:
getExpressionEvaluatorin classjavax.servlet.jsp.JspContext
-
handlePageException
- Specified by:
handlePageExceptionin classjavax.servlet.jsp.PageContext- Throws:
IOExceptionjavax.servlet.ServletException
-
handlePageException
- Specified by:
handlePageExceptionin classjavax.servlet.jsp.PageContext- Throws:
IOExceptionjavax.servlet.ServletException
-
resolveVariable
VariableResolver interface- Specified by:
resolveVariablein interfacejavax.servlet.jsp.el.VariableResolver- Throws:
javax.servlet.jsp.el.ELException
-
syncBeginTagFile
public void syncBeginTagFile()Synchronize variables at begin of tag file -
syncBeforeInvoke
public void syncBeforeInvoke()Synchronize variables before fragment invokation -
syncEndTagFile
public void syncEndTagFile()Synchronize variables at end of tag file -
getELContext
public javax.el.ELContext getELContext()- Specified by:
getELContextin classjavax.servlet.jsp.JspContext
-