Class VertxSliceServer

    • Constructor Detail

      • VertxSliceServer

        public VertxSliceServer​(io.vertx.reactivex.core.Vertx vertx,
                                com.artipie.http.Slice served)
        Ctor.
        Parameters:
        vertx - The vertx.
        served - The slice to be served.
      • VertxSliceServer

        public VertxSliceServer​(com.artipie.http.Slice served,
                                Integer port)
        Ctor.
        Parameters:
        served - The slice to be served.
        port - The port.
      • VertxSliceServer

        public VertxSliceServer​(io.vertx.reactivex.core.Vertx vertx,
                                com.artipie.http.Slice served,
                                Integer port)
        Ctor.
        Parameters:
        vertx - The vertx.
        served - The slice to be served.
        port - The port.
    • Method Detail

      • start

        public int start()
        Start the server.
        Returns:
        Port the server is listening on.
      • stop

        public void stop()
        Stop the server.