org.qi4j.library.rest.server.restlet

## Class RequestReaderDelegator

- java.lang.Object
- - org.qi4j.library.rest.server.restlet.RequestReaderDelegator

- All Implemented Interfaces:
    RequestReader

      public class RequestReaderDelegator
      extends Object
      implements RequestReader

  Delegates to a list of potential readers. Register readers on startup.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `RequestReaderDelegator()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `init(Iterable<ServiceReference<RequestReader>> requestReaderReferences)`
    `Object[]` | `readRequest(org.restlet.Request request, Method method)`
    `void` | `registerRequestReader(RequestReader reader)`

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

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

- - ### Constructor Detail

    - #### RequestReaderDelegator

          public RequestReaderDelegator()

  - ### Method Detail

    - #### init

          public void init(@Service
                  Iterable<ServiceReference<RequestReader>> requestReaderReferences)
                    throws InitializationException

      Throws:
        `InitializationException`

    - #### registerRequestReader

          public void registerRequestReader(RequestReader reader)

    - #### readRequest

          public Object[] readRequest(org.restlet.Request request,
                             Method method)

      Specified by:
        `readRequest` in interface `RequestReader`