org.qi4j.library.rest.client.api

## Class ContextResourceClientFactory

- java.lang.Object
- - org.qi4j.library.rest.client.api.ContextResourceClientFactory

-     public class ContextResourceClientFactory
      extends Object

  Builder for UsecaseClient

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ContextResourceClientFactory()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `org.restlet.data.Form` | `getCustomRequestHeaders()`
    `ResponseHandler` | `getErrorHandler()`
    `org.restlet.data.ClientInfo` | `getInfo()`
    `ContextResourceClient` | `newClient(org.restlet.data.Reference reference)`
    `<T> T` | `readResponse(org.restlet.Response response, Class<T> queryResult)`
    `void` | `registerRequestWriter(RequestWriter writer)`
    `void` | `registerResponseReader(ResponseReader reader)`
    `void` | `setAcceptedLanguages(org.restlet.data.Language... acceptedLanguages)`
    `void` | `setAcceptedMediaTypes(org.restlet.data.MediaType... acceptedMediaTypes)`
    `void` | `setAgent(String agent)`
    `void` | `setErrorHandler(ResponseHandler errorHandler)`
    `void` | `writeRequest(org.restlet.Request request, Object queryRequest)`

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

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

- - ### Constructor Detail

    - #### ContextResourceClientFactory

          public ContextResourceClientFactory()

  - ### Method Detail

    - #### newClient

          public ContextResourceClient newClient(org.restlet.data.Reference reference)

    - #### setAgent

          public void setAgent(String agent)

    - #### getCustomRequestHeaders

          public org.restlet.data.Form getCustomRequestHeaders()

    - #### setAcceptedLanguages

          public void setAcceptedLanguages(org.restlet.data.Language... acceptedLanguages)

    - #### setAcceptedMediaTypes

          public void setAcceptedMediaTypes(org.restlet.data.MediaType... acceptedMediaTypes)

    - #### getInfo

          public org.restlet.data.ClientInfo getInfo()

    - #### setErrorHandler

          public void setErrorHandler(ResponseHandler errorHandler)

    - #### getErrorHandler

          public ResponseHandler getErrorHandler()

    - #### readResponse

          public <T> T readResponse(org.restlet.Response response,
                           Class<T> queryResult)

    - #### writeRequest

          public void writeRequest(org.restlet.Request request,
                          Object queryRequest)

    - #### registerResponseReader

          public void registerResponseReader(ResponseReader reader)

    - #### registerRequestWriter

          public void registerRequestWriter(RequestWriter writer)