Class EventServiceEndpoint


  • @Produces("application/json")
    @Path("/events")
    public class EventServiceEndpoint
    extends Object
    A JAX-RS endpoint to access information about the context server's events.
    • Constructor Detail

      • EventServiceEndpoint

        public EventServiceEndpoint()
    • Method Detail

      • setEventService

        public void setEventService​(EventService eventService)
      • searchEvents

        @POST
        @Path("/search")
        public PartialList<Event> searchEvents​(Query query)
        Allows to search events using a query.
        Parameters:
        query - the query object to use to search for events. You can specify offset and limits along with a condition tree.
        Returns:
        a partial list containing the events that match the query.
      • getEvents

        @GET
        @Path("/{id}")
        public Event getEvents​(@PathParam("id")
                               String id)
        Allows to retrieve event by id.
        Parameters:
        id - the event id.
        Returns:
        Event with the provided id.
      • getEventTypeNames

        @GET
        @Path("types")
        public Set<String> getEventTypeNames()
        Retrieves the list of event types identifiers that the server has processed.
        Returns:
        a Set of strings that contain event type identifiers.