|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.servlet.jsp.JspContext
javax.servlet.jsp.PageContext
org.japano.AbstractContext
org.japano.Context
public class Context
The PageContext used by japano pages.
| 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 | |
|---|---|
Context(JapanoConfig japanoConfig)
Creates a new instance of Context |
|
| 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)
|
javax.servlet.jsp.ErrorData |
getErrorData()
|
java.lang.Exception |
getException()
|
javax.servlet.jsp.el.ExpressionEvaluator |
getExpressionEvaluator()
This method returns always null because japano resolves Expressions only at JSP compile time |
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()
|
static int |
getScopeFromName(java.lang.String scope)
|
javax.servlet.ServletConfig |
getServletConfig()
|
javax.servlet.ServletContext |
getServletContext()
|
javax.servlet.http.HttpSession |
getSession()
|
javax.servlet.jsp.el.VariableResolver |
getVariableResolver()
This method returns always null because japano resolves Expressions only at JSP compile time |
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)
|
javax.servlet.jsp.JspWriter |
popBody()
|
javax.servlet.jsp.tagext.BodyContent |
pushBody()
|
javax.servlet.jsp.JspWriter |
pushBody(java.io.Writer writer)
|
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 |
setContext(Page page,
Buffer out,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Initializes the page context with the actual context. |
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 org.japano.AbstractContext |
|---|
getCookie |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Context(JapanoConfig japanoConfig)
| Method Detail |
|---|
public javax.servlet.ServletContext getServletContext()
getServletContext in class javax.servlet.jsp.PageContextpublic javax.servlet.http.HttpSession getSession()
getSession in class javax.servlet.jsp.PageContextpublic javax.servlet.ServletRequest getRequest()
getRequest in class javax.servlet.jsp.PageContextpublic javax.servlet.ServletResponse getResponse()
getResponse in class javax.servlet.jsp.PageContext
public void setContext(Page page,
Buffer out,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
AbstractContext
public java.lang.Object findAttribute(java.lang.String str)
findAttribute in class javax.servlet.jsp.JspContext
public void forward(java.lang.String str)
throws javax.servlet.ServletException,
java.io.IOException
forward in class javax.servlet.jsp.PageContextjavax.servlet.ServletException
java.io.IOExceptionpublic java.lang.Object getAttribute(java.lang.String str)
getAttribute in class javax.servlet.jsp.JspContext
public java.lang.Object getAttribute(java.lang.String str,
int scope)
getAttribute in class javax.servlet.jsp.JspContextpublic java.util.Enumeration getAttributeNamesInScope(int scope)
getAttributeNamesInScope in class javax.servlet.jsp.JspContextpublic int getAttributesScope(java.lang.String str)
getAttributesScope in class javax.servlet.jsp.JspContextpublic java.lang.Exception getException()
getException in class javax.servlet.jsp.PageContextpublic javax.servlet.jsp.JspWriter getOut()
getOut in class javax.servlet.jsp.JspContextpublic void setOut(javax.servlet.jsp.JspWriter out)
AbstractContext
setOut in class AbstractContextout - JspWriter (or Buffer)public java.lang.Object getPage()
getPage in class javax.servlet.jsp.PageContextpublic javax.servlet.ServletConfig getServletConfig()
getServletConfig in class javax.servlet.jsp.PageContext
public void handlePageException(java.lang.Throwable throwable)
throws javax.servlet.ServletException,
java.io.IOException
handlePageException in class javax.servlet.jsp.PageContextjavax.servlet.ServletException
java.io.IOException
public void handlePageException(java.lang.Exception exception)
throws javax.servlet.ServletException,
java.io.IOException
handlePageException in class javax.servlet.jsp.PageContextjavax.servlet.ServletException
java.io.IOException
public void include(java.lang.String str)
throws javax.servlet.ServletException,
java.io.IOException
include in class javax.servlet.jsp.PageContextjavax.servlet.ServletException
java.io.IOException
public void include(java.lang.String str,
boolean param)
throws javax.servlet.ServletException,
java.io.IOException
include in class javax.servlet.jsp.PageContextjavax.servlet.ServletException
java.io.IOException
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
initialize in class javax.servlet.jsp.PageContextjava.io.IOException
java.lang.IllegalStateException
java.lang.IllegalArgumentExceptionpublic void release()
release in class javax.servlet.jsp.PageContextpublic void removeAttribute(java.lang.String str)
removeAttribute in class javax.servlet.jsp.JspContext
public void removeAttribute(java.lang.String str,
int scope)
removeAttribute in class javax.servlet.jsp.JspContext
public void setAttribute(java.lang.String str,
java.lang.Object obj)
setAttribute in class javax.servlet.jsp.JspContext
public void setAttribute(java.lang.String str,
java.lang.Object obj,
int scope)
setAttribute in class javax.servlet.jsp.JspContextpublic javax.servlet.jsp.el.ExpressionEvaluator getExpressionEvaluator()
AbstractContextnull because japano resolves Expressions only at JSP compile time
getExpressionEvaluator in class AbstractContextnullpublic javax.servlet.jsp.el.VariableResolver getVariableResolver()
AbstractContextnull because japano resolves Expressions only at JSP compile time
getVariableResolver in class AbstractContextnullpublic JapanoConfig getJapanoConfig()
AbstractContext
getJapanoConfig in class AbstractContextpublic javax.servlet.jsp.ErrorData getErrorData()
getErrorData in class javax.servlet.jsp.PageContextpublic void clearPageScope()
AbstractContext
clearPageScope in class AbstractContextpublic static int getScopeFromName(java.lang.String scope)
public javax.servlet.jsp.tagext.BodyContent pushBody()
pushBody in class javax.servlet.jsp.PageContextpublic javax.servlet.jsp.JspWriter pushBody(java.io.Writer writer)
pushBody in class javax.servlet.jsp.JspContextpublic javax.servlet.jsp.JspWriter popBody()
popBody in class javax.servlet.jsp.JspContext
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||