|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zk.au.http.HttpAuWriter
public class HttpAuWriter
The writer used to write the output back to the client.
| Field Summary | |
|---|---|
protected java.io.StringWriter |
_out
The writer used to generate the output to. |
| Constructor Summary | |
|---|---|
HttpAuWriter()
|
|
| Method Summary | |
|---|---|
void |
close(java.lang.Object request,
java.lang.Object response)
Closes the connection. |
protected void |
flush(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Flushes the bufferred output ( _out) to the client. |
java.lang.String |
getChannel()
Returns au to represent the response channel for AU requests. |
AuWriter |
open(java.lang.Object request,
java.lang.Object response,
int timeout)
Opens the connection. |
void |
write(AuResponse response)
Generates the specified the response to the output. |
void |
write(java.util.Collection responses)
Generates a list of responses to the output. |
void |
writeResponseId(int resId)
Generates the response ID to the output. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.io.StringWriter _out
| Constructor Detail |
|---|
public HttpAuWriter()
| Method Detail |
|---|
public java.lang.String getChannel()
getChannel in interface AuWriter
public AuWriter open(java.lang.Object request,
java.lang.Object response,
int timeout)
throws java.io.IOException
Default: it creates a StringWriter instance for _out
and then generate the XML header.
This implementation doesn't support the timeout argument.
open in interface AuWriterrequest - the request (HttpServletRequest if HTTP)response - the response (HttpServletResponse if HTTP)timeout - the elapsed time (milliseconds) before sending
a whitespace to the client to indicate the connection is alive.
Ignored if non-positive, or the implementation doesn't support
this feature.
java.io.IOException
public void close(java.lang.Object request,
java.lang.Object response)
throws java.io.IOException
close in interface AuWriterrequest - the request (HttpServletRequest if HTTP)response - the response (HttpServletResponse if HTTP)
java.io.IOException
protected void flush(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
_out) to the client.
It is called by close(java.lang.Object, java.lang.Object).
java.io.IOException
public void writeResponseId(int resId)
throws java.io.IOException
AuWriter
writeResponseId in interface AuWriterjava.io.IOExceptionDesktopCtrl.getResponseId(boolean)
public void write(AuResponse response)
throws java.io.IOException
AuWriter
write in interface AuWriterjava.io.IOException
public void write(java.util.Collection responses)
throws java.io.IOException
AuWriter
write in interface AuWriterjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||