@Component @Provider public class EventReader extends BasicMessageBodyReader<com.xebialabs.xltest.domain.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) |
com.xebialabs.xltest.domain.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<com.xebialabs.xltest.domain.Event>isReadable in class BasicMessageBodyReader<com.xebialabs.xltest.domain.Event>public com.xebialabs.xltest.domain.Event readJson(java.lang.String json)
throws org.codehaus.jettison.json.JSONException
readJson in class BasicMessageBodyReader<com.xebialabs.xltest.domain.Event>org.codehaus.jettison.json.JSONException