Package akka.http.scaladsl.model
Class Uri.Path$.Segment
- java.lang.Object
-
- akka.http.scaladsl.model.Uri.Path
-
- akka.http.scaladsl.model.Uri.Path$.Segment
-
- All Implemented Interfaces:
java.io.Serializable,scala.Equals,scala.Product
- Enclosing class:
- Uri.Path$
public static final class Uri.Path$.Segment extends Uri.Path implements scala.Product, java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Segment(java.lang.String head, akka.http.scaladsl.model.Uri.Path.SlashOrEmpty tail)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcharCount()Uri.PathdropChars(int count)java.lang.Stringhead()booleanisEmpty()intlength()Uri.PathreverseAndPrependTo(Uri.Path prefix)booleanstartsWith(Uri.Path that)booleanstartsWithSegment()booleanstartsWithSlash()akka.http.scaladsl.model.Uri.Path.SlashOrEmptytail()-
Methods inherited from class akka.http.scaladsl.model.Uri.Path
endsWith, endsWithSlash, reverse, toString
-
-
-
-
Method Detail
-
head
public java.lang.String head()
-
tail
public akka.http.scaladsl.model.Uri.Path.SlashOrEmpty tail()
-
startsWithSlash
public boolean startsWithSlash()
- Specified by:
startsWithSlashin classUri.Path
-
startsWithSegment
public boolean startsWithSegment()
- Specified by:
startsWithSegmentin classUri.Path
-
reverseAndPrependTo
public Uri.Path reverseAndPrependTo(Uri.Path prefix)
- Specified by:
reverseAndPrependToin classUri.Path
-
startsWith
public boolean startsWith(Uri.Path that)
- Specified by:
startsWithin classUri.Path
-
-