Interface UserServiceGetResponse

    • Method Detail

      • setContentType

        void setContentType​(String aType)
        Sets the MIME type of the response being sent to the client. This method must be called before getOutputStream().
        Parameters:
        aType - the MIME type.
      • setHeader

        void setHeader​(String aName,
                       String aValue)
        Sets a response header with the given name and value. If the header had already been set, the new value overwrites the previous one. This method must be called before getOutputStream().
        Parameters:
        aName - the name of the header
        aValue - the header value. If it contains octet string, it should be encoded according to RFC 2047.
      • getOutputStream

        OutputStream getOutputStream()
        Returns a OutputStream suitable for writing binary data in the response.
        Returns:
        the output stream. Never null.