@Path(value="/push")
public class PushEndpoint
extends java.lang.Object
Constructor and Description |
---|
PushEndpoint() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
pushToDevice(java.lang.String userId,
java.lang.String data) |
javax.ws.rs.core.Response |
register(Session session,
EncryptedEntity.Reader entity) |
javax.ws.rs.core.Response |
unregister(Session session) |
@POST @Consumes(value="application/json") public javax.ws.rs.core.Response register(@Context Session session, EncryptedEntity.Reader entity)
@DELETE public javax.ws.rs.core.Response unregister(@Context Session session)
@GET @Path(value="/test/{email}/{data}") @Produces(value="text/html") public javax.ws.rs.core.Response pushToDevice(@PathParam(value="email") java.lang.String userId, @PathParam(value="data") java.lang.String data)