org.qi4j.library.rest.client.api

## Class ContextResourceClient

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

-     public class ContextResourceClient
      extends Object

  Client-side context resources

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ContextResourceClient()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `HandlerCommand` | `delete(ResponseHandler responseHandler, ResponseHandler processingErrorHandler)`
    `ContextResourceClientFactory` | `getContextResourceClientFactory()`
    `org.restlet.data.Reference` | `getReference()`
    `Resource` | `getResource()`
    `ContextResourceClient` | `newClient(Link link)`
    `ContextResourceClient` | `newClient(String relativePath)`
    `ContextResourceClient` | `onCommand(String relation, ResponseHandler handler)`
    `<T> ContextResourceClient` | `onCommand(String relation, ResultHandler<T> handler)`
    `ContextResourceClient` | `onDelete(ResponseHandler handler)`
    `ContextResourceClient` | `onError(ResponseHandler handler)`
    `ContextResourceClient` | `onProcessingError(String relation, ResponseHandler handler)`
    `<T> ContextResourceClient` | `onProcessingError(String relation, ResultHandler<T> handler)`
    `ContextResourceClient` | `onQuery(String relation, ResponseHandler handler)`
    `<T> ContextResourceClient` | `onQuery(String relation, ResultHandler<T> handler)`
    `<T> ContextResourceClient` | `onResource(ResultHandler<T> handler)`
    `void` | `start()`
    `String` | `toString()`

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

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

- - ### Constructor Detail

    - #### ContextResourceClient

          public ContextResourceClient()

  - ### Method Detail

    - #### onError

          public ContextResourceClient onError(ResponseHandler handler)

    - #### onResource

          public <T> ContextResourceClient onResource(ResultHandler<T> handler)

    - #### onQuery

          public ContextResourceClient onQuery(String relation,
                                      ResponseHandler handler)

    - #### onQuery

          public <T> ContextResourceClient onQuery(String relation,
                                          ResultHandler<T> handler)

    - #### onCommand

          public ContextResourceClient onCommand(String relation,
                                        ResponseHandler handler)

    - #### onCommand

          public <T> ContextResourceClient onCommand(String relation,
                                            ResultHandler<T> handler)

    - #### onProcessingError

          public ContextResourceClient onProcessingError(String relation,
                                                ResponseHandler handler)

    - #### onProcessingError

          public <T> ContextResourceClient onProcessingError(String relation,
                                                    ResultHandler<T> handler)

    - #### onDelete

          public ContextResourceClient onDelete(ResponseHandler handler)

    - #### getContextResourceClientFactory

          public ContextResourceClientFactory getContextResourceClientFactory()

    - #### getReference

          public org.restlet.data.Reference getReference()

    - #### getResource

          public Resource getResource()

    - #### start

          public void start()

    - #### delete

          public HandlerCommand delete(ResponseHandler responseHandler,
                              ResponseHandler processingErrorHandler)
                                throws org.restlet.resource.ResourceException

      Throws:
        `org.restlet.resource.ResourceException`

    - #### newClient

          public ContextResourceClient newClient(Link link)

    - #### newClient

          public ContextResourceClient newClient(String relativePath)

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`