public class GfSseInboundEvent extends Object
| Modifier and Type | Method and Description |
|---|---|
String |
getData()
Get event data as
String. |
<T> T |
getData(Class<T> messageType)
Get event data.
|
<T> T |
getData(Class<T> messageType,
javax.ws.rs.core.MediaType mediaType)
Get event data.
|
String |
getName()
Get the event name.
|
String |
toString() |
public String getName()
null if it is not present.public <T> T getData(Class<T> messageType) throws IOException
messageType - type of stored data content. Will be used for MessageBodyReader lookup.IOException - when provided type can't be read.public <T> T getData(Class<T> messageType, javax.ws.rs.core.MediaType mediaType) throws IOException
messageType - type of stored data content. Will be used for MessageBodyReader lookup.mediaType - MediaType of incoming data. Will be used for MessageBodyReader lookup.IOException - when provided type can't be read.public String getData() throws IOException
String.IOException - when provided type can't be read.Copyright © 2013. All Rights Reserved.