Package one.nio.http
Class HttpClient.EventImpl
java.lang.Object
one.nio.http.HttpClient.EventImpl
- All Implemented Interfaces:
EventSource.Event<String>
- Enclosing class:
HttpClient
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
id
-
name
-
data
-
comment
-
-
Constructor Details
-
EventImpl
EventImpl()
-
-
Method Details
-
name
Description copied from interface:EventSource.Eventan SSE event name- Specified by:
namein interfaceEventSource.Event<String>- Returns:
- the event name
-
id
Description copied from interface:EventSource.Eventan SSE event id. this can be used to request events starting from specified- Specified by:
idin interfaceEventSource.Event<String>- Returns:
- the event id
- See Also:
-
data
Description copied from interface:EventSource.Eventan SSE "data" line.- Specified by:
datain interfaceEventSource.Event<String>- Returns:
- the event data
-
comment
Description copied from interface:EventSource.Eventan SSE comment concatenated- Specified by:
commentin interfaceEventSource.Event<String>- Returns:
- the event comment
-
with
-
isEmpty
public boolean isEmpty()Description copied from interface:EventSource.EventNo name, id and data in event ( only comment )- Specified by:
isEmptyin interfaceEventSource.Event<String>- Returns:
- true, if the event has no name, id and data. false, otherwise
-
toString
-