Package akka.http.javadsl.model.headers
Class LastEventId
- java.lang.Object
-
- akka.http.javadsl.model.HttpHeader
-
- akka.http.scaladsl.model.HttpHeader
-
- akka.http.javadsl.model.headers.LastEventId
-
- All Implemented Interfaces:
Renderable
,ToStringRenderable
- Direct Known Subclasses:
Last$minusEvent$minusID
public abstract class LastEventId extends HttpHeader
The Last-Event-ID header is sent by a client to the server to signal the ID of the last sever-sent event received.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class akka.http.scaladsl.model.HttpHeader
HttpHeader.ParsingResult, HttpHeader.ParsingResult$
-
-
Constructor Summary
Constructors Constructor Description LastEventId()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static LastEventId
create(java.lang.String id)
Creates a Last-Event-ID header.abstract java.lang.String
id()
-
Methods inherited from class akka.http.scaladsl.model.HttpHeader
fastFind, is, isNot, lowercaseName, name, parse, unapply, unsafeToString, value
-
Methods inherited from class akka.http.javadsl.model.HttpHeader
parse, renderInRequests, renderInResponses
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface akka.http.impl.util.Renderable
render
-
Methods inherited from interface akka.http.impl.util.ToStringRenderable
toString
-
-
-
-
Method Detail
-
create
public static LastEventId create(java.lang.String id)
Creates a Last-Event-ID header.- Parameters:
id
- ID of the last event, encoded as UTF-8 string- See Also:
ServerSentEvent
-
id
public abstract java.lang.String id()
-
-