|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tapestry.web.ServletWebResponse
Adapts HttpServletResponse
as
WebResponse
.
Constructor Summary | |
ServletWebResponse(javax.servlet.http.HttpServletResponse response)
|
Method Summary | |
java.lang.String |
encodeURL(java.lang.String url)
Encodes a URL, which adds information to the URL needed to ensure that the request triggered by the URL will be associated with the current session (if any). |
java.lang.String |
getNamespace()
Returns a value to be prefixed or suffixed with any client-side JavaScript elements (variables and function names) to ensure that they are unique with the context of the entire page. |
java.io.OutputStream |
getOutputStream(ContentType contentType)
Returns a output stream to which output should be sent. |
java.io.PrintWriter |
getPrintWriter(ContentType contentType)
Returns a PrintWriter to which output should be sent. |
void |
reset()
Resets any buffered content. |
void |
setContentLength(int length)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ServletWebResponse(javax.servlet.http.HttpServletResponse response)
Method Detail |
public java.io.OutputStream getOutputStream(ContentType contentType)
WebResponse
getOutputStream
in interface WebResponse
public java.io.PrintWriter getPrintWriter(ContentType contentType) throws java.io.IOException
WebResponse
PrintWriter
to which output should be sent. This method should be invoked
once on a response. A second call is expected to be so that an exception page can be
rendered, and the underlying request data is reset.
getPrintWriter
in interface WebResponse
java.io.IOException
public java.lang.String encodeURL(java.lang.String url)
WebResponse
encodeURL
in interface WebResponse
public void reset()
WebResponse
reset
in interface WebResponse
public void setContentLength(int length)
setContentLength
in interface WebResponse
public java.lang.String getNamespace()
WebResponse
getNamespace
in interface WebResponse
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |