|
||||||||||
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.
Constructor Summary | |
---|---|
HttpAuWriter()
|
Method Summary | |
---|---|
void |
close(java.lang.Object request,
java.lang.Object response)
Closes the connection. |
protected java.lang.String |
getResult()
Returns the result of responses that will be sent to client (never null). |
boolean |
isCompress()
Returns whether to compress the output. |
AuWriter |
open(java.lang.Object request,
java.lang.Object response,
int timeout)
Opens the connection. |
void |
setCompress(boolean compress)
Sets whether to compress the output with GZIP. |
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 |
Constructor Detail |
---|
public HttpAuWriter()
Method Detail |
---|
public boolean isCompress()
public void setCompress(boolean compress)
AuWriter
Default: true.
setCompress
in interface AuWriter
public AuWriter open(java.lang.Object request, java.lang.Object response, int timeout) throws java.io.IOException
Default: it creates an object to store the responses.
This implementation doesn't support the timeout argument.
open
in interface AuWriter
request
- 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 AuWriter
request
- the request (HttpServletRequest if HTTP)response
- the response (HttpServletResponse if HTTP)
java.io.IOException
protected java.lang.String getResult()
close(java.lang.Object, java.lang.Object)
to retrieve the output.
After invocation, the writer is reset.
public void writeResponseId(int resId) throws java.io.IOException
AuWriter
writeResponseId
in interface AuWriter
java.io.IOException
DesktopCtrl.getResponseId(boolean)
public void write(AuResponse response) throws java.io.IOException
AuWriter
write
in interface AuWriter
java.io.IOException
public void write(java.util.Collection responses) throws java.io.IOException
AuWriter
write
in interface AuWriter
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |