Package org.apache.unomi.rest.endpoints
Class ContextJsonEndpoint
java.lang.Object
org.apache.unomi.rest.endpoints.ContextJsonEndpoint
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponsecontextJSAsGet(ContextRequest contextRequest, String personaId, String sessionId, Long timestampAsLong, boolean invalidateProfile, boolean invalidateSession) javax.ws.rs.core.Responsejavax.ws.rs.core.ResponsecontextJSAsPost(ContextRequest contextRequest, String personaId, String sessionId, Long timestampAsLong, boolean invalidateProfile, boolean invalidateSession) contextJSONAsGet(ContextRequest contextRequest, String personaId, String sessionId, Long timestampAsLong, boolean invalidateProfile, boolean invalidateSession) javax.ws.rs.core.ResponsecontextJSONAsPost(ContextRequest contextRequest, String personaId, String sessionId, Long timestampAsLong, boolean invalidateProfile, boolean invalidateSession) voiddestroy()
-
Constructor Details
-
ContextJsonEndpoint
public ContextJsonEndpoint()
-
-
Method Details
-
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()
-