Class DummyHttpServerResponse

  • All Implemented Interfaces:
    io.vertx.core.http.HttpServerResponse, io.vertx.core.streams.StreamBase, io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>, FastFailHttpServerResponse

    public class DummyHttpServerResponse
    extends Object
    implements FastFailHttpServerResponse
    Dummy class implementing HttpServerResponse. Override this class for your needs.
    Author:
    https://github.com/mcweba [Marc-Andre Weber]
    • Constructor Detail

      • DummyHttpServerResponse

        public DummyHttpServerResponse()
    • Method Detail

      • getResultBuffer

        public String getResultBuffer()
      • getStatusCode

        public int getStatusCode()
        Specified by:
        getStatusCode in interface FastFailHttpServerResponse
        Specified by:
        getStatusCode in interface io.vertx.core.http.HttpServerResponse
      • setStatusCode

        public io.vertx.core.http.HttpServerResponse setStatusCode​(int statusCode)
        Specified by:
        setStatusCode in interface FastFailHttpServerResponse
        Specified by:
        setStatusCode in interface io.vertx.core.http.HttpServerResponse
      • setStatusMessage

        public io.vertx.core.http.HttpServerResponse setStatusMessage​(String statusMessage)
        Specified by:
        setStatusMessage in interface FastFailHttpServerResponse
        Specified by:
        setStatusMessage in interface io.vertx.core.http.HttpServerResponse
      • headers

        public io.vertx.core.MultiMap headers()
        Specified by:
        headers in interface FastFailHttpServerResponse
        Specified by:
        headers in interface io.vertx.core.http.HttpServerResponse
      • putHeader

        public io.vertx.core.http.HttpServerResponse putHeader​(String name,
                                                               String value)
        Specified by:
        putHeader in interface FastFailHttpServerResponse
        Specified by:
        putHeader in interface io.vertx.core.http.HttpServerResponse
      • end

        public io.vertx.core.Future<Void> end​(String chunk)
        Specified by:
        end in interface io.vertx.core.http.HttpServerResponse
      • end

        public io.vertx.core.Future<Void> end​(io.vertx.core.buffer.Buffer chunk)
        Specified by:
        end in interface io.vertx.core.http.HttpServerResponse
        Specified by:
        end in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
      • end

        public io.vertx.core.Future<Void> end()
        Specified by:
        end in interface io.vertx.core.http.HttpServerResponse
        Specified by:
        end in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
      • ended

        public boolean ended()
        Specified by:
        ended in interface FastFailHttpServerResponse
        Specified by:
        ended in interface io.vertx.core.http.HttpServerResponse
      • closed

        public boolean closed()
        Specified by:
        closed in interface FastFailHttpServerResponse
        Specified by:
        closed in interface io.vertx.core.http.HttpServerResponse