org.qi4j.library.rest.client.requestwriter

## Class ValueCompositeRequestWriter

- java.lang.Object
- - org.qi4j.library.rest.client.requestwriter.ValueCompositeRequestWriter

- All Implemented Interfaces:
    RequestWriter

      public class ValueCompositeRequestWriter
      extends Object
      implements RequestWriter

  Request writer for ValueComposites. Transfers value state to request reference as query parameters or JSON entity

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ValueCompositeRequestWriter()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `writeRequest(Object requestObject, org.restlet.Request request)` Write the given request object to the request.

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

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

- - ### Constructor Detail

    - #### ValueCompositeRequestWriter

          public ValueCompositeRequestWriter()

  - ### Method Detail

    - #### writeRequest

          public boolean writeRequest(Object requestObject,
                             org.restlet.Request request)
                               throws org.restlet.resource.ResourceException

      Description copied from interface: `RequestWriter`
      Write the given request object to the request.
      Specified by:
        `writeRequest` in interface `RequestWriter`
      Parameters:
        `requestObject` - The object to be written.
        `request` - The Request destination of the requestObject
      Returns:
        true if the object was written to the Request instance, false if handler can not write the object.
      Throws:
        `org.restlet.resource.ResourceException`