org.japano
Class TagFileContext
java.lang.Object
javax.servlet.jsp.JspContext
javax.servlet.jsp.PageContext
org.japano.AbstractContext
org.japano.TagFileContext
public class TagFileContext
- extends AbstractContext
Tag File specific context wrapper.
Delegates all method invocations to a wrapped context but provides
an independent Page scope.
- Version:
- $Id: TagFileContext.java,v 1.5 2005/10/02 21:34:49 fforw Exp $
- Author:
- Sven Helmberger ( sven dot helmberger at gmx dot de )
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 |
Method Summary |
void |
clearPageScope()
Removes all attributes of the page scope. |
java.lang.Object |
findAttribute(java.lang.String str)
|
void |
forward(java.lang.String str)
|
java.lang.Object |
getAttribute(java.lang.String str)
|
java.lang.Object |
getAttribute(java.lang.String str,
int scope)
|
java.util.Enumeration |
getAttributeNamesInScope(int scope)
|
int |
getAttributesScope(java.lang.String str)
|
java.lang.Exception |
getException()
|
JapanoConfig |
getJapanoConfig()
Returns the japano configuration for the japano website this context is in. |
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()
|
void |
handlePageException(java.lang.Exception exception)
|
void |
handlePageException(java.lang.Throwable throwable)
|
void |
include(java.lang.String str)
|
void |
include(java.lang.String str,
boolean param)
|
void |
initialize(javax.servlet.Servlet servlet,
javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
java.lang.String errorPageURL,
boolean needsSession,
int bufferSize,
boolean autoflush)
|
void |
release()
|
void |
removeAttribute(java.lang.String str)
|
void |
removeAttribute(java.lang.String str,
int scope)
|
void |
setAttribute(java.lang.String str,
java.lang.Object obj)
|
void |
setAttribute(java.lang.String str,
java.lang.Object obj,
int scope)
|
void |
setOriginal(AbstractContext orig)
|
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 |
getErrorData, pushBody |
Methods inherited from class javax.servlet.jsp.JspContext |
popBody, pushBody |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TagFileContext
public TagFileContext()
setOriginal
public void setOriginal(AbstractContext orig)
setOut
public void setOut(javax.servlet.jsp.JspWriter out)
- Description copied from class:
AbstractContext
- Sets the JspWriter (Buffer) to use for the next complete or partial page generation.
- Specified by:
setOut
in class AbstractContext
- Parameters:
out
- JspWriter (or Buffer)
handlePageException
public void handlePageException(java.lang.Exception exception)
throws javax.servlet.ServletException,
java.io.IOException
- Specified by:
handlePageException
in class javax.servlet.jsp.PageContext
- Throws:
javax.servlet.ServletException
java.io.IOException
initialize
public void initialize(javax.servlet.Servlet servlet,
javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
java.lang.String errorPageURL,
boolean needsSession,
int bufferSize,
boolean autoflush)
throws java.io.IOException,
java.lang.IllegalStateException,
java.lang.IllegalArgumentException
- Specified by:
initialize
in class javax.servlet.jsp.PageContext
- Throws:
java.io.IOException
java.lang.IllegalStateException
java.lang.IllegalArgumentException
handlePageException
public void handlePageException(java.lang.Throwable throwable)
throws javax.servlet.ServletException,
java.io.IOException
- Specified by:
handlePageException
in class javax.servlet.jsp.PageContext
- Throws:
javax.servlet.ServletException
java.io.IOException
forward
public void forward(java.lang.String str)
throws javax.servlet.ServletException,
java.io.IOException
- Specified by:
forward
in class javax.servlet.jsp.PageContext
- Throws:
javax.servlet.ServletException
java.io.IOException
include
public void include(java.lang.String str)
throws javax.servlet.ServletException,
java.io.IOException
- Specified by:
include
in class javax.servlet.jsp.PageContext
- Throws:
javax.servlet.ServletException
java.io.IOException
include
public void include(java.lang.String str,
boolean param)
throws javax.servlet.ServletException,
java.io.IOException
- Specified by:
include
in class javax.servlet.jsp.PageContext
- Throws:
javax.servlet.ServletException
java.io.IOException
getResponse
public javax.servlet.ServletResponse getResponse()
- Specified by:
getResponse
in class javax.servlet.jsp.PageContext
getRequest
public javax.servlet.ServletRequest getRequest()
- Specified by:
getRequest
in class javax.servlet.jsp.PageContext
getPage
public java.lang.Object getPage()
- Specified by:
getPage
in class javax.servlet.jsp.PageContext
getOut
public javax.servlet.jsp.JspWriter getOut()
- Specified by:
getOut
in class javax.servlet.jsp.JspContext
getJapanoConfig
public JapanoConfig getJapanoConfig()
- Description copied from class:
AbstractContext
- Returns the japano configuration for the japano website this context is in.
- Specified by:
getJapanoConfig
in class AbstractContext
- Returns:
- japano configuration
getException
public java.lang.Exception getException()
- Specified by:
getException
in class javax.servlet.jsp.PageContext
getServletConfig
public javax.servlet.ServletConfig getServletConfig()
- Specified by:
getServletConfig
in class javax.servlet.jsp.PageContext
getServletContext
public javax.servlet.ServletContext getServletContext()
- Specified by:
getServletContext
in class javax.servlet.jsp.PageContext
getSession
public javax.servlet.http.HttpSession getSession()
- Specified by:
getSession
in class javax.servlet.jsp.PageContext
release
public void release()
- Specified by:
release
in class javax.servlet.jsp.PageContext
getAttributesScope
public int getAttributesScope(java.lang.String str)
- Specified by:
getAttributesScope
in class javax.servlet.jsp.JspContext
getAttribute
public java.lang.Object getAttribute(java.lang.String str)
- Specified by:
getAttribute
in class javax.servlet.jsp.JspContext
findAttribute
public java.lang.Object findAttribute(java.lang.String str)
- Specified by:
findAttribute
in class javax.servlet.jsp.JspContext
removeAttribute
public void removeAttribute(java.lang.String str)
- Specified by:
removeAttribute
in class javax.servlet.jsp.JspContext
getAttributeNamesInScope
public java.util.Enumeration getAttributeNamesInScope(int scope)
- Specified by:
getAttributeNamesInScope
in class javax.servlet.jsp.JspContext
setAttribute
public void setAttribute(java.lang.String str,
java.lang.Object obj)
- Specified by:
setAttribute
in class javax.servlet.jsp.JspContext
setAttribute
public void setAttribute(java.lang.String str,
java.lang.Object obj,
int scope)
- Specified by:
setAttribute
in class javax.servlet.jsp.JspContext
getAttribute
public java.lang.Object getAttribute(java.lang.String str,
int scope)
- Specified by:
getAttribute
in class javax.servlet.jsp.JspContext
removeAttribute
public void removeAttribute(java.lang.String str,
int scope)
- Specified by:
removeAttribute
in class javax.servlet.jsp.JspContext
clearPageScope
public void clearPageScope()
- Description copied from class:
AbstractContext
- Removes all attributes of the page scope.
- Specified by:
clearPageScope
in class AbstractContext