Class GsonJerseyProvider
- java.lang.Object
-
- org.apache.streampipes.rest.shared.serializer.JsonJerseyProvider
-
- org.apache.streampipes.rest.shared.serializer.GsonJerseyProvider
-
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<Object>,javax.ws.rs.ext.MessageBodyWriter<Object>
- Direct Known Subclasses:
GsonClientModelProvider,GsonWithIdProvider,GsonWithoutIdProvider
public abstract class GsonJerseyProvider extends JsonJerseyProvider
-
-
Constructor Summary
Constructors Constructor Description GsonJerseyProvider()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected Objectdeserialize(InputStreamReader reader, Type type)protected abstract com.google.gson.GsongetGsonSerializer()protected voidserialize(Object t, Type type, Writer writer)-
Methods inherited from class org.apache.streampipes.rest.shared.serializer.JsonJerseyProvider
getSize, isReadable, isWriteable, jsonSerialized, readFrom, requiredAnnotationsPresent, writeTo
-
-
-
-
Method Detail
-
getGsonSerializer
protected abstract com.google.gson.Gson getGsonSerializer()
-
serialize
protected void serialize(Object t, Type type, Writer writer)
- Specified by:
serializein classJsonJerseyProvider
-
deserialize
protected Object deserialize(InputStreamReader reader, Type type)
- Specified by:
deserializein classJsonJerseyProvider
-
-