public class ListOfEventsWriter extends BasicMessageBodyWriter<ListOfEvents>
| Constructor and Description |
|---|
ListOfEventsWriter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isWriteable(java.lang.Class<?> aClass,
java.lang.reflect.Type type,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
java.lang.String |
toJson(com.xebialabs.xltest.domain.Event event) |
protected void |
writeJson(com.xebialabs.xltest.domain.Event event,
org.codehaus.jettison.json.JSONWriter writer) |
protected void |
writeJson(ListOfEvents events,
org.codehaus.jettison.json.JSONWriter writer) |
getSize, writeTopublic final boolean isWriteable(java.lang.Class<?> aClass,
java.lang.reflect.Type type,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<ListOfEvents>isWriteable in class BasicMessageBodyWriter<ListOfEvents>protected void writeJson(ListOfEvents events, org.codehaus.jettison.json.JSONWriter writer) throws org.codehaus.jettison.json.JSONException
writeJson in class BasicMessageBodyWriter<ListOfEvents>org.codehaus.jettison.json.JSONExceptionprotected void writeJson(com.xebialabs.xltest.domain.Event event,
org.codehaus.jettison.json.JSONWriter writer)
throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONExceptionpublic java.lang.String toJson(com.xebialabs.xltest.domain.Event event)
throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONException