Class ContextJsonEndpoint

java.lang.Object
org.apache.unomi.rest.endpoints.ContextJsonEndpoint

@Consumes("application/json") @Path("/") public class ContextJsonEndpoint extends Object
  • 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()