Interface AuWriter

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void close​(java.lang.Object request, java.lang.Object response)
      Closes the writer and flush the result to client.
      java.lang.Object complete()
      Indicates the writing has been completed.
      AuWriter open​(java.lang.Object request, java.lang.Object response)
      Initializes the writer.
      void resend​(java.lang.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 write​(java.util.Collection<AuResponse> responses)
      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.
    • Method Detail

      • setCompress

        void setCompress​(boolean compress)
        Sets whether to compress the output with GZIP.

        Default: true.

        Since:
        3.6.3
      • open

        AuWriter open​(java.lang.Object request,
                      java.lang.Object response)
               throws java.io.IOException
        Initializes the writer.
        Parameters:
        request - the request (HttpServletRequest if HTTP)
        response - the response (HttpServletResponse if HTTP)
        Returns:
        this object
        Throws:
        java.io.IOException
        Since:
        6.0.0 (the signature is simplified)
      • close

        void close​(java.lang.Object request,
                   java.lang.Object response)
            throws java.io.IOException
        Closes the writer and flush the result to client.
        Parameters:
        request - the request (HttpServletRequest if HTTP)
        response - the response (HttpServletResponse if HTTP)
        Throws:
        java.io.IOException
      • writeResponseId

        void writeResponseId​(int resId)
                      throws java.io.IOException
        Generates the response ID to the output.
        Throws:
        java.io.IOException
        Since:
        3.5.0
        See Also:
        DesktopCtrl.getResponseId(boolean)
      • write

        void write​(AuResponse response)
            throws java.io.IOException
        Generates the specified the response to the output.
        Throws:
        java.io.IOException
      • write

        void write​(java.util.Collection<AuResponse> responses)
            throws java.io.IOException
        Generates a list of responses to the output.
        Throws:
        java.io.IOException