|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AuWriter
Represents a writer that is used to send the output back to the client,
when processing AuRequest
.
To use the writer, open(java.lang.Object, java.lang.Object, int)
must be called first.
And, close(java.lang.Object, java.lang.Object)
after all responses are written.
AuWriters.setImplementationClass(java.lang.Class)
Method Summary | |
---|---|
void |
close(java.lang.Object request,
java.lang.Object response)
Closes the writer and flush the result to client. |
AuWriter |
open(java.lang.Object request,
java.lang.Object response,
int timeout)
Initializes the writer. |
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. |
Method Detail |
---|
void setCompress(boolean compress)
Default: true.
AuWriter open(java.lang.Object request, java.lang.Object response, int timeout) throws java.io.IOException
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
void close(java.lang.Object request, java.lang.Object response) throws java.io.IOException
request
- the request (HttpServletRequest if HTTP)response
- the response (HttpServletResponse if HTTP)
java.io.IOException
void writeResponseId(int resId) throws java.io.IOException
java.io.IOException
DesktopCtrl.getResponseId(boolean)
void write(AuResponse response) throws java.io.IOException
java.io.IOException
void write(java.util.Collection responses) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |