|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--agonism.dovetail.site.http.HttpRequestContext
| Constructor Summary | |
HttpRequestContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.io.Writer writer)
|
|
| Method Summary | |
java.lang.String |
encodeURL(java.lang.String url)
Encode a URL with the SessionID. |
boolean |
equals(HttpRequestContext other)
|
boolean |
equals(java.lang.Object obj)
|
void |
forward(Page page)
Forward a request to a new Page. |
void |
freeConnection()
Free the database connection obtained from the getConnection() method. |
java.sql.Connection |
getConnection()
Get the database connection. |
java.lang.String |
getCookieValue(java.lang.String name)
Get the value of a browser cookie. |
java.util.Collection |
getErrors()
Get a Collection of all the errors that have occured in this request. |
protected java.lang.Object |
getKey()
|
agonism.dovetail.db.IParameterSource |
getParameterSource()
Get an object that implements IParameterSource |
java.lang.String |
getParameterValue(java.lang.String name)
Get the value of a request parameter. |
java.lang.String |
getReferer()
Get the URL that the request was sent from |
java.lang.Object |
getRequestValue(java.lang.String key)
Get a value that has been stored in the Request. |
java.lang.Object |
getSessionValue(java.lang.String key)
Get a value that has been stored in the Session. |
Site |
getSite()
Get the root Site object. |
java.io.PrintWriter |
getWriter()
Get the PrintWriter which is writing the response. |
boolean |
hasBeenRedirected()
|
int |
hashCode()
|
void |
include(Page page)
Inculde another page in the response for this page. |
void |
init(Site site)
Initialize the IRequestContext with a Site. |
void |
reportError(RequestError error)
Report a request processing error. |
void |
sendRedirect(Link link)
Redirect the request to a new Link. |
void |
sendRedirect(Page page)
Redirect the request to a new Page. |
void |
sendRedirect(java.lang.String urlString)
Redirect the request to a new URL. |
void |
setRequestValue(java.lang.String key,
java.lang.Object value)
Put a value into the Request state. |
void |
setSessionValue(java.lang.String key,
java.lang.Object value)
Put a value into the Session state. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HttpRequestContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.io.Writer writer)
| Method Detail |
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic boolean equals(HttpRequestContext other)
public void init(Site site)
IRequestContextSite.init in interface IRequestContextpublic java.sql.Connection getConnection()
IRequestContextIRequestContext.freeConnection() method.
Whenever you call this method, you must always pair it with a call to IRequestContext.freeConnection(), otherwise
the Connection will not be promptly returned to the connection pool. If you fail to
free connections, the ConnectionHelper.finalize() method will write diagnostic information to the WARN log.
getConnection in interface IRequestContextpublic void freeConnection()
IRequestContextIRequestContext.getConnection() method.
Whenever you call IRequestContext.getConnection(), you must always pair it with a call to IRequestContext.freeConnection(), otherwise
the Connection will not be promptly returned to the connection pool. If you fail to
free connections, the ConnectionHelper.finalize() method will write diagnostic information to the WARN log.
freeConnection in interface IRequestContextpublic java.lang.String encodeURL(java.lang.String url)
IRequestContextencodeURL in interface IRequestContextpublic void sendRedirect(Page page)
IRequestContextsendRedirect in interface IRequestContextpublic void sendRedirect(Link link)
IRequestContextsendRedirect in interface IRequestContextpublic void sendRedirect(java.lang.String urlString)
IRequestContextsendRedirect in interface IRequestContextpublic boolean hasBeenRedirected()
hasBeenRedirected in interface IRequestContextagonism.dovetail.site.IRequestContextsendRedirect method has been invoked on this request.public void forward(Page page)
IRequestContextforward in interface IRequestContextpublic void include(Page page)
IRequestContextinclude in interface IRequestContextpublic java.io.PrintWriter getWriter()
IRequestContextgetWriter in interface IRequestContextpublic Site getSite()
IRequestContextSite object.getSite in interface IRequestContextpublic agonism.dovetail.db.IParameterSource getParameterSource()
IRequestContextIParameterSourcegetParameterSource in interface IRequestContextpublic java.lang.String getParameterValue(java.lang.String name)
IRequestContextgetParameterValue in interface IRequestContextpublic java.lang.String getCookieValue(java.lang.String name)
IRequestContextgetCookieValue in interface IRequestContextpublic java.lang.Object getSessionValue(java.lang.String key)
IRequestContextgetSessionValue in interface IRequestContext
public void setSessionValue(java.lang.String key,
java.lang.Object value)
IRequestContextsetSessionValue in interface IRequestContextpublic java.lang.Object getRequestValue(java.lang.String key)
IRequestContextgetRequestValue in interface IRequestContext
public void setRequestValue(java.lang.String key,
java.lang.Object value)
IRequestContextsetRequestValue in interface IRequestContextpublic void reportError(RequestError error)
IRequestContextreportError in interface IRequestContextpublic java.util.Collection getErrors()
IRequestContextgetErrors in interface IRequestContextagonism.dovetail.site.IRequestContextRequestError objects.public java.lang.String getReferer()
IRequestContextgetReferer in interface IRequestContextprotected java.lang.Object getKey()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||