Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.joshy.webmail
Class Context  view Context download Context.java

java.lang.Object
  extended byorg.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.


Field Summary
private  java.lang.StringBuffer buf
           
private  javax.servlet.ServletConfig config
           
private  java.lang.StringBuffer inline_buf
           
private  javax.servlet.http.HttpServletRequest request
           
private  javax.servlet.http.HttpServletResponse response
           
private  org.joshy.su su
           
 
Constructor Summary
Context()
           
 
Method Summary
 void dp(java.lang.String s)
           
 java.lang.Object getAttribute(java.lang.String attribute_name)
           
 javax.servlet.ServletConfig getConfig()
           
private  java.lang.String getInitParameter(java.lang.String param)
           
 org.joshy.webmail.ui.Pager getPager()
           
 java.lang.String getParameter(java.lang.String parameter_name)
           
 Prefs getPrefs()
           
 java.lang.String getRealPath(java.lang.String str)
           
 javax.servlet.http.HttpServletRequest getRequest()
           
 javax.servlet.http.HttpServletResponse getResponse()
           
 javax.servlet.http.HttpSession getSession()
           
 org.joshy.su getsu()
           
 java.io.PrintWriter getWriter()
           
 void p(java.lang.Exception ex)
           
 void p(org.w3c.dom.Node node)
           
 void p(java.lang.Object[] array)
           
 void p(java.lang.String s)
           
 void setAttribute(java.lang.String attribute_name, java.lang.Object attribute)
           
 void setConfig(javax.servlet.ServletConfig conf)
           
 void setRequest(javax.servlet.http.HttpServletRequest request)
           
 void setResponse(javax.servlet.http.HttpServletResponse response)
           
 void setsu(org.joshy.su su)
           
 void transform(org.w3c.dom.Document output, java.lang.String xsl_path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Context

public Context()
Method Detail

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