Used on the client side, when accepting incoming Server-sent events.
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if current instance does not contain any data, false otherwise.Check if the event is empty (i.e. does not contain any data). |
| public String | |
| public <T> T | |
| public <T> T | Returns: event data de-serialized as an instance of a given type.generic type to be used for event data de-serialization. type)Read event data as a given generic type. |
| public <T> T | Returns: event data de-serialized as an instance of a given type.Java type to be used for event data de-serialization. messageType, MediaType media type to be used for event data de-serialization.Read event data as a given Java type. |
| public <T> T | Returns: event data de-serialized as an instance of a given type.generic type to be used for event data de-serialization. type, MediaType media type to be used for event data de-serialization.Read event data as a given generic type. |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Check if the event is empty (i.e. does not contain any data).
| |
| readData | back to summary |
|---|---|
| public String readData() Get the original event data as
| |
| readData | back to summary |
|---|---|
| public <T> T readData(Class<T> type) Read event data as a given Java type.
| |
| readData | back to summary |
|---|---|
| public <T> T readData(GenericType<T> type) Read event data as a given generic type.
| |
| readData | back to summary |
|---|---|
| public <T> T readData(Class<T> messageType, MediaType mediaType) Read event data as a given Java type.
| |
| readData | back to summary |
|---|---|
| public <T> T readData(GenericType<T> type, MediaType mediaType) Read event data as a given generic type.
| |