@Component @Provider public class EventReader extends BasicMessageBodyReader<Event>
| Constructor and Description |
|---|
EventReader() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isReadable(java.lang.Class<?> aClass,
java.lang.reflect.Type type,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
Event |
readJson(java.lang.String json) |
readFrompublic boolean isReadable(java.lang.Class<?> aClass,
java.lang.reflect.Type type,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
isReadable in interface javax.ws.rs.ext.MessageBodyReader<Event>isReadable in class BasicMessageBodyReader<Event>public Event readJson(java.lang.String json) throws org.codehaus.jettison.json.JSONException
readJson in class BasicMessageBodyReader<Event>org.codehaus.jettison.json.JSONException