org.qi4j.library.eventsourcing.domain.rest.server

## Class DomainEventSourceResource

- java.lang.Object
- - org.restlet.Restlet
  - - org.qi4j.library.eventsourcing.domain.rest.server.DomainEventSourceResource

- All Implemented Interfaces:
    org.restlet.Uniform

      public class DomainEventSourceResource
      extends org.restlet.Restlet

  Get events in various formats.

  The feed is paged, with one current set page, one working set page, and the rest being archive pages that never change. The links "next", "previous", "first" and "last" are used as expected per the Atom spec.

       / = current set of most recent events (event range: count-pagesize to count)
       /n,m = events from index n to index m. These are archive pages.
       /n = working set page, where n is the first event index to be presented

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DomainEventSourceResource(EventSource source)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `handle(org.restlet.Request request, org.restlet.Response response)`

    - ### Methods inherited from class org.restlet.Restlet

      `finalize, getApplication, getAuthor, getContext, getDescription, getLogger, getName, getOwner, isStarted, isStopped, setAuthor, setContext, setDescription, setName, setOwner, start, stop`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DomainEventSourceResource

          public DomainEventSourceResource(@Service
                                   EventSource source)

  - ### Method Detail

    - #### handle

          public void handle(org.restlet.Request request,
                    org.restlet.Response response)

      Specified by:
        `handle` in interface `org.restlet.Uniform`
      Overrides:
        `handle` in class `org.restlet.Restlet`