Class ReplacePathSlice

  • All Implemented Interfaces:
    com.artipie.http.Slice

    public final class ReplacePathSlice
    extends Object
    implements com.artipie.http.Slice
    Slice handles routing paths. It removes predefined routing path and passes the rest part to the underlying slice.
    Since:
    0.6
    • Constructor Detail

      • ReplacePathSlice

        public ReplacePathSlice​(String path,
                                com.artipie.http.Slice original)
        Ctor.
        Parameters:
        path - Routing path ("/" for ROOT context)
        original - Underlying slice
    • Method Detail

      • response

        public com.artipie.http.Response response​(String line,
                                                  Iterable<Map.Entry<String,​String>> headers,
                                                  org.reactivestreams.Publisher<ByteBuffer> body)
        Specified by:
        response in interface com.artipie.http.Slice