Package org.apache.unomi.rest.endpoints
Class ContextJsonEndpoint
- java.lang.Object
-
- org.apache.unomi.rest.endpoints.ContextJsonEndpoint
-
@Consumes("application/json") @Path("/") public class ContextJsonEndpoint extends Object
-
-
Constructor Summary
Constructors Constructor Description ContextJsonEndpoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsecontextJSAsGet(ContextRequest contextRequest, String personaId, String sessionId, Long timestampAsLong, boolean invalidateProfile, boolean invalidateSession)javax.ws.rs.core.ResponsecontextJSAsOptions()javax.ws.rs.core.ResponsecontextJSAsPost(ContextRequest contextRequest, String personaId, String sessionId, Long timestampAsLong, boolean invalidateProfile, boolean invalidateSession)ContextResponsecontextJSONAsGet(ContextRequest contextRequest, String personaId, String sessionId, Long timestampAsLong, boolean invalidateProfile, boolean invalidateSession)javax.ws.rs.core.ResponsecontextJSONAsOptions()ContextResponsecontextJSONAsPost(ContextRequest contextRequest, String personaId, String sessionId, Long timestampAsLong, boolean invalidateProfile, boolean invalidateSession)voiddestroy()
-
-
-
Method Detail
-
contextJSAsOptions
@OPTIONS @Path("/context.js") public javax.ws.rs.core.Response contextJSAsOptions()
-
contextJSONAsOptions
@OPTIONS @Path("/context.json") public javax.ws.rs.core.Response contextJSONAsOptions()
-
contextJSAsPost
@POST @Produces("text/plain") @Path("/context.js") public javax.ws.rs.core.Response contextJSAsPost(ContextRequest contextRequest, @QueryParam("personaId") String personaId, @QueryParam("sessionId") String sessionId, @QueryParam("timestamp") Long timestampAsLong, @QueryParam("invalidateProfile") boolean invalidateProfile, @QueryParam("invalidateSession") boolean invalidateSession) throws com.fasterxml.jackson.core.JsonProcessingException- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
contextJSAsGet
@GET @Produces("text/plain") @Path("/context.js") public javax.ws.rs.core.Response contextJSAsGet(@QueryParam("payload") ContextRequest contextRequest, @QueryParam("personaId") String personaId, @QueryParam("sessionId") String sessionId, @QueryParam("timestamp") Long timestampAsLong, @QueryParam("invalidateProfile") boolean invalidateProfile, @QueryParam("invalidateSession") boolean invalidateSession) throws com.fasterxml.jackson.core.JsonProcessingException- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
contextJSONAsGet
@GET @Produces("application/json;charset=UTF-8") @Path("/context.json") public ContextResponse contextJSONAsGet(@QueryParam("payload") ContextRequest contextRequest, @QueryParam("personaId") String personaId, @QueryParam("sessionId") String sessionId, @QueryParam("timestamp") Long timestampAsLong, @QueryParam("invalidateProfile") boolean invalidateProfile, @QueryParam("invalidateSession") boolean invalidateSession)
-
contextJSONAsPost
@POST @Produces("application/json;charset=UTF-8") @Path("/context.json") public ContextResponse contextJSONAsPost(ContextRequest contextRequest, @QueryParam("personaId") String personaId, @QueryParam("sessionId") String sessionId, @QueryParam("timestamp") Long timestampAsLong, @QueryParam("invalidateProfile") boolean invalidateProfile, @QueryParam("invalidateSession") boolean invalidateSession)
-
destroy
public void destroy()
-
-