Class ByteArrayResponse


  • public class ByteArrayResponse
    extends ServiceResponse<byte[]>
    Author:
    Andrea Di Cesare
    • Method Detail

      • init

        public static ByteArrayResponse init​(io.undertow.server.HttpServerExchange exchange)
      • of

        public static ByteArrayResponse of​(io.undertow.server.HttpServerExchange exchange)
      • readContent

        public String readContent()
        Description copied from class: ServiceResponse
        Reads the content as a String. This method is used by ResponseSender to generate the response content to send to the client.
        Specified by:
        readContent in class ServiceResponse<byte[]>
        Returns:
        the content as string