jrun.jsp.runtime
Class JRunPageContext

jrun.jsp.runtime.JRunPageContext
Direct Known Subclasses:
JSTPageContext

public class JRunPageContext

This contains our implementation of the JRunPageContext object


Field Summary
protected  javax.servlet.ServletContext application
           
protected  javax.servlet.jsp.JspWriter jspWriter
           
protected  java.lang.String pagePath
           
protected  java.util.Hashtable pageScope
           
protected  javax.servlet.http.HttpServletRequest request
           
protected  javax.servlet.http.HttpServletResponse response
           
protected  javax.servlet.http.HttpSession session
           
 
Constructor Summary
JRunPageContext()
           
 
Method Summary
protected  void addIfNotNull(java.lang.String name, java.util.Hashtable h)
           
 java.lang.Object findAttribute(java.lang.String name)
           
 void forward(java.lang.String uri)
           
 java.lang.Object getAttribute(java.lang.String name)
           
 java.lang.Object getAttribute(java.lang.String name, int scope)
           
 java.util.Enumeration getAttributeNamesInScope(int scope)
           
 int getAttributesScope(java.lang.String name)
           
 java.lang.Exception getException()
           
 javax.servlet.jsp.JspWriter getOut()
           
 java.lang.Object getPage()
           
 javax.servlet.ServletRequest getRequest()
           
 javax.servlet.ServletResponse getResponse()
           
 javax.servlet.ServletConfig getServletConfig()
           
 javax.servlet.ServletContext getServletContext()
           
 javax.servlet.http.HttpSession getSession()
           
 java.lang.Object getTagHandlerInstance(int slot, java.lang.Class cls)
           
 void handlePageException(java.lang.Exception e)
           
 void handlePageException(java.lang.Throwable t)
           
 void include(java.lang.String uri)
           
 void initialize(javax.servlet.Servlet s, javax.servlet.ServletRequest req, javax.servlet.ServletResponse resp, java.lang.String errorPageURL, boolean needsSession, int buffer, boolean autoFlush)
           
protected  void initWriter(int buffer, boolean autoFlush)
           
 javax.servlet.jsp.JspWriter popBody()
           
 javax.servlet.jsp.tagext.BodyContent pushBody()
           
 void release()
           
 void removeAttribute(java.lang.String name)
           
 void removeAttribute(java.lang.String name, int scope)
           
protected  void resetWriter()
           
 void setAttribute(java.lang.String name, java.lang.Object o)
           
 void setAttribute(java.lang.String name, java.lang.Object o, int scope)
           
 

Field Detail

pageScope

protected java.util.Hashtable pageScope

pagePath

protected java.lang.String pagePath

jspWriter

protected javax.servlet.jsp.JspWriter jspWriter

request

protected javax.servlet.http.HttpServletRequest request

response

protected javax.servlet.http.HttpServletResponse response

session

protected javax.servlet.http.HttpSession session

application

protected javax.servlet.ServletContext application
Constructor Detail

JRunPageContext

public JRunPageContext()
Method Detail

initialize

public void initialize(javax.servlet.Servlet s,
                       javax.servlet.ServletRequest req,
                       javax.servlet.ServletResponse resp,
                       java.lang.String errorPageURL,
                       boolean needsSession,
                       int buffer,
                       boolean autoFlush)
                throws java.io.IOException

release

public void release()

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.Object o)

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.Object o,
                         int scope)

getAttribute

public java.lang.Object getAttribute(java.lang.String name)

getAttribute

public java.lang.Object getAttribute(java.lang.String name,
                                     int scope)

findAttribute

public java.lang.Object findAttribute(java.lang.String name)

removeAttribute

public void removeAttribute(java.lang.String name)

removeAttribute

public void removeAttribute(java.lang.String name,
                            int scope)

getAttributesScope

public int getAttributesScope(java.lang.String name)

getAttributeNamesInScope

public java.util.Enumeration getAttributeNamesInScope(int scope)

addIfNotNull

protected void addIfNotNull(java.lang.String name,
                            java.util.Hashtable h)

getOut

public javax.servlet.jsp.JspWriter getOut()

getSession

public javax.servlet.http.HttpSession getSession()

getPage

public java.lang.Object getPage()

getRequest

public javax.servlet.ServletRequest getRequest()

getResponse

public javax.servlet.ServletResponse getResponse()

getException

public java.lang.Exception getException()

getServletConfig

public javax.servlet.ServletConfig getServletConfig()

getServletContext

public javax.servlet.ServletContext getServletContext()

forward

public void forward(java.lang.String uri)
             throws javax.servlet.ServletException,
                    java.io.IOException

include

public void include(java.lang.String uri)
             throws javax.servlet.ServletException,
                    java.io.IOException

handlePageException

public void handlePageException(java.lang.Exception e)
                         throws javax.servlet.ServletException,
                                java.io.IOException

handlePageException

public void handlePageException(java.lang.Throwable t)
                         throws javax.servlet.ServletException,
                                java.io.IOException

pushBody

public javax.servlet.jsp.tagext.BodyContent pushBody()

popBody

public javax.servlet.jsp.JspWriter popBody()

initWriter

protected void initWriter(int buffer,
                          boolean autoFlush)
                   throws java.io.IOException

resetWriter

protected void resetWriter()

getTagHandlerInstance

public java.lang.Object getTagHandlerInstance(int slot,
                                              java.lang.Class cls)
                                       throws javax.servlet.ServletException,
                                              java.lang.ClassNotFoundException,
                                              java.io.IOException,
                                              java.lang.InstantiationException,
                                              java.lang.IllegalAccessException


Copyright � 2002 Macromedia Corporation. All Rights Reserved.