org.qi4j.library.rest.client.api
Class ContextResourceClient
java.lang.Object
org.qi4j.library.rest.client.api.ContextResourceClient
public class ContextResourceClient
- extends java.lang.Object
Client-side context resources
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ContextResourceClient
public ContextResourceClient()
onError
public ContextResourceClient onError(ResponseHandler handler)
onResource
public <T> ContextResourceClient onResource(ResultHandler<T> handler)
onQuery
public ContextResourceClient onQuery(java.lang.String relation,
ResponseHandler handler)
onQuery
public <T> ContextResourceClient onQuery(java.lang.String relation,
ResultHandler<T> handler)
onCommand
public ContextResourceClient onCommand(java.lang.String relation,
ResponseHandler handler)
onCommand
public <T> ContextResourceClient onCommand(java.lang.String relation,
ResultHandler<T> handler)
onProcessingError
public ContextResourceClient onProcessingError(java.lang.String relation,
ResponseHandler handler)
onProcessingError
public <T> ContextResourceClient onProcessingError(java.lang.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(java.lang.String relativePath)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object