java.lang.Object
org.joshy.webmail.Context
- public class Context
- extends java.lang.Object
This is the class which contains references to the request, response, session, and logger.
It should be passed to every function throughout the application. All methods should only
interact with the outside world through this class. This means there can't be any member
variables on any servlet classes. This is required to ensure that the entire application
is threadsafe.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
request
private javax.servlet.http.HttpServletRequest request
response
private javax.servlet.http.HttpServletResponse response
config
private javax.servlet.ServletConfig config
su
private org.joshy.su su
buf
private java.lang.StringBuffer buf
inline_buf
private java.lang.StringBuffer inline_buf
Context
public Context()
getWriter
public java.io.PrintWriter getWriter()
throws java.io.IOException
getRequest
public javax.servlet.http.HttpServletRequest getRequest()
getResponse
public javax.servlet.http.HttpServletResponse getResponse()
getSession
public javax.servlet.http.HttpSession getSession()
getsu
public org.joshy.su getsu()
getConfig
public javax.servlet.ServletConfig getConfig()
setRequest
public void setRequest(javax.servlet.http.HttpServletRequest request)
setResponse
public void setResponse(javax.servlet.http.HttpServletResponse response)
setsu
public void setsu(org.joshy.su su)
setConfig
public void setConfig(javax.servlet.ServletConfig conf)
getParameter
public java.lang.String getParameter(java.lang.String parameter_name)
getAttribute
public java.lang.Object getAttribute(java.lang.String attribute_name)
setAttribute
public void setAttribute(java.lang.String attribute_name,
java.lang.Object attribute)
getPrefs
public Prefs getPrefs()
getPager
public org.joshy.webmail.ui.Pager getPager()
p
public void p(java.lang.String s)
p
public void p(java.lang.Object[] array)
p
public void p(java.lang.Exception ex)
p
public void p(org.w3c.dom.Node node)
dp
public void dp(java.lang.String s)
getInitParameter
private java.lang.String getInitParameter(java.lang.String param)
getRealPath
public java.lang.String getRealPath(java.lang.String str)
transform
public void transform(org.w3c.dom.Document output,
java.lang.String xsl_path)
throws java.lang.Exception