public static final class Uri.Path$.Segment extends Uri.Path implements scala.Product, java.io.Serializable
Constructor and Description |
---|
Segment(java.lang.String head,
org.apache.pekko.http.scaladsl.model.Uri.Path.SlashOrEmpty tail) |
Modifier and Type | Method and Description |
---|---|
int |
charCount() |
Uri.Path |
dropChars(int count) |
java.lang.String |
head() |
boolean |
isEmpty() |
int |
length() |
Uri.Path |
reverseAndPrependTo(Uri.Path prefix) |
boolean |
startsWith(Uri.Path that) |
boolean |
startsWithSegment() |
boolean |
startsWithSlash() |
org.apache.pekko.http.scaladsl.model.Uri.Path.SlashOrEmpty |
tail() |
endsWith, endsWithSlash, reverse, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public Segment(java.lang.String head, org.apache.pekko.http.scaladsl.model.Uri.Path.SlashOrEmpty tail)
public java.lang.String head()
public org.apache.pekko.http.scaladsl.model.Uri.Path.SlashOrEmpty tail()
public boolean startsWithSlash()
startsWithSlash
in class Uri.Path
public boolean startsWithSegment()
startsWithSegment
in class Uri.Path
public Uri.Path reverseAndPrependTo(Uri.Path prefix)
reverseAndPrependTo
in class Uri.Path
public boolean startsWith(Uri.Path that)
startsWith
in class Uri.Path