Class GsonWithIdProvider
- java.lang.Object
-
- org.apache.streampipes.rest.shared.serializer.JsonJerseyProvider
-
- org.apache.streampipes.rest.shared.serializer.GsonJerseyProvider
-
- org.apache.streampipes.rest.shared.serializer.GsonWithIdProvider
-
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<Object>,javax.ws.rs.ext.MessageBodyWriter<Object>
@Provider @Priority(5) @Produces("application/json") @Consumes("application/json") public class GsonWithIdProvider extends GsonJerseyProvider
-
-
Constructor Summary
Constructors Constructor Description GsonWithIdProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.google.gson.GsongetGsonSerializer()protected booleanrequiredAnnotationsPresent(Annotation[] annotations)-
Methods inherited from class org.apache.streampipes.rest.shared.serializer.GsonJerseyProvider
deserialize, serialize
-
Methods inherited from class org.apache.streampipes.rest.shared.serializer.JsonJerseyProvider
getSize, isReadable, isWriteable, jsonSerialized, readFrom, writeTo
-
-
-
-
Method Detail
-
getGsonSerializer
protected com.google.gson.Gson getGsonSerializer()
- Specified by:
getGsonSerializerin classGsonJerseyProvider
-
requiredAnnotationsPresent
protected boolean requiredAnnotationsPresent(Annotation[] annotations)
- Specified by:
requiredAnnotationsPresentin classJsonJerseyProvider
-
-