Class PathSegmentCodec
java.lang.Object
org.apache.hc.core5.net.PathSegmentCodec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringformatSegments(Iterable<String> segments, Charset charset) Returns a string consisting of joint encoded path segments.static StringformatSegments(String... segments) Returns a string consisting of joint encoded path segments.static voidformatSegments(StringBuilder buf, Iterable<String> segments, Charset charset) Copies encoded path segments into the given content buffer.optimizePathSegments(List<String> segments) Optimizes path segments.Returns a list of URI path segments.parsePathSegments(CharSequence s, Charset charset) Returns a list of URI path segments.Splits URI path into a list of segments without decoding the segments.
-
Constructor Details
-
PathSegmentCodec
public PathSegmentCodec()
-
-
Method Details
-
splitPath
Splits URI path into a list of segments without decoding the segments.- Parameters:
s- URI path component.- Returns:
- list of segments.
-
parsePathSegments
Returns a list of URI path segments.- Parameters:
s- URI path component.charset- parameter charset.- Returns:
- list of segments.
-
parsePathSegments
Returns a list of URI path segments.- Parameters:
s- URI path component.- Returns:
- list of segments.
-
optimizePathSegments
-
formatSegments
-
formatSegments
Copies encoded path segments into the given content buffer.- Parameters:
buf- content buffer.segments- the segments.charset- parameter charset.
-
formatSegments
-