Class LoggingCorsHttpServer.LoggedResponse

    • Field Detail

      • logBody_

        private final boolean logBody_
      • headText_

        private final java.lang.String headText_
      • bodyText_

        private java.lang.String bodyText_
    • Constructor Detail

      • LoggedResponse

        LoggedResponse​(HttpServer.Response base,
                       int iseq,
                       boolean logBody)
        Constructor.
        Parameters:
        base - response on which this one is based
        iseq - sequence number of request that this is a response to
        logBody - true iff the body of the response is to be logged
    • Method Detail

      • writeBody

        public void writeBody​(java.io.OutputStream out)
                       throws java.io.IOException
        Description copied from class: HttpServer.Response
        Implemented to generate the bytes in the body of the response.
        Specified by:
        writeBody in class HttpServer.Response
        Parameters:
        out - destination stream for body bytes
        Throws:
        java.io.IOException