Module io.inverno.mod.web.server
Package io.inverno.mod.web.server
Interface WebResponseBody.SseEncoder.Event<A>
- Type Parameters:
A- the type of data to encode
- All Superinterfaces:
OutboundData<A>,OutboundDataEncoder<A>,ResponseBody.Sse.Event<A>
- Enclosing interface:
WebResponseBody.SseEncoder<A>
public static interface WebResponseBody.SseEncoder.Event<A>
extends ResponseBody.Sse.Event<A>, OutboundDataEncoder<A>
A server-sent event with data encoding support.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
-
Method Summary
Modifier and TypeMethodDescriptionSets the event comment.Sets the type of event.Sets the event id.Methods inherited from interface io.inverno.mod.http.base.OutboundData
stream, valueMethods inherited from interface io.inverno.mod.web.base.OutboundDataEncoder
many, many, one, one
-
Method Details
-
id
Description copied from interface:ResponseBody.Sse.EventSets the event id.
- Specified by:
idin interfaceResponseBody.Sse.Event<A>- Parameters:
id- an id- Returns:
- the event
-
comment
Description copied from interface:ResponseBody.Sse.EventSets the event comment.
- Specified by:
commentin interfaceResponseBody.Sse.Event<A>- Parameters:
comment- a comment- Returns:
- the event
-
event
Description copied from interface:ResponseBody.Sse.EventSets the type of event.
- Specified by:
eventin interfaceResponseBody.Sse.Event<A>- Parameters:
event- an event type- Returns:
- the event
-