Package com.artipie.npm.http
Class ReplacePathSlice
- java.lang.Object
-
- com.artipie.npm.http.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 Summary
Constructors Constructor Description ReplacePathSlice(String path, com.artipie.http.Slice original)
Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.artipie.http.Response
response(String line, Iterable<Map.Entry<String,String>> headers, org.reactivestreams.Publisher<ByteBuffer> body)
-
-
-
Constructor Detail
-
ReplacePathSlice
public ReplacePathSlice(String path, com.artipie.http.Slice original)
Ctor.- Parameters:
path
- Routing path ("/" for ROOT context)original
- Underlying slice
-
-