Interface AuWriter

All Known Implementing Classes:
HttpAuWriter

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) must be called first. And, close(java.lang.Object, java.lang.Object) after all responses are written.

Since:
3.0.1
Author:
tomyeh
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    close(Object request, Object response)
    Closes the writer and flush the result to client.
    Indicates the writing has been completed.
    open(Object request, Object response)
    Initializes the writer.
    void
    resend(Object prevContent)
    Resend the content of the previous request returned by complete().
    void
    setCompress(boolean compress)
    Sets whether to compress the output with GZIP.
    void
    Generates a list of responses to the output.
    void
    write(AuResponse response)
    Generates the specified the response to the output.
    void
    writeResponseId(int resId)
    Generates the response ID to the output.