org.apache.isis.viewer.restfulobjects.applib
Class RestfulClient

java.lang.Object
  extended by org.apache.isis.viewer.restfulobjects.applib.RestfulClient

public class RestfulClient
extends Object


Constructor Summary
RestfulClient(URI baseUri)
           
RestfulClient(URI baseUri, org.jboss.resteasy.client.ClientExecutor clientExecutor)
           
 
Method Summary
 RestfulRequest createRequest(HttpMethod httpMethod, String uriTemplate)
           
 RepresentationWalker createWalker(javax.ws.rs.core.Response response)
           
 RestfulResponse<JsonRepresentation> follow(LinkRepresentation link)
           
 RestfulResponse<JsonRepresentation> follow(LinkRepresentation link, JsonRepresentation requestArgs)
           
<T extends JsonRepresentation>
RestfulResponse<T>
followT(LinkRepresentation link)
           
<T extends JsonRepresentation>
RestfulResponse<T>
followT(LinkRepresentation link, JsonRepresentation requestArgs)
           
 org.jboss.resteasy.client.ClientRequestFactory getClientRequestFactory()
          exposed for testing purposes only.
 DomainObjectResource getDomainObjectResource()
           
 DomainServiceResource getDomainServiceResource()
           
 DomainTypeResource getDomainTypeResource()
           
 HomePageResource getHomePageResource()
           
 UserResource getUserResource()
           
 VersionResource getVersionResource()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestfulClient

public RestfulClient(URI baseUri)

RestfulClient

public RestfulClient(URI baseUri,
                     org.jboss.resteasy.client.ClientExecutor clientExecutor)
Method Detail

getHomePageResource

public HomePageResource getHomePageResource()

getUserResource

public UserResource getUserResource()

getVersionResource

public VersionResource getVersionResource()

getDomainTypeResource

public DomainTypeResource getDomainTypeResource()

getDomainObjectResource

public DomainObjectResource getDomainObjectResource()

getDomainServiceResource

public DomainServiceResource getDomainServiceResource()

createWalker

public RepresentationWalker createWalker(javax.ws.rs.core.Response response)

follow

public RestfulResponse<JsonRepresentation> follow(LinkRepresentation link)
                                           throws Exception
Throws:
Exception

followT

public <T extends JsonRepresentation> RestfulResponse<T> followT(LinkRepresentation link)
                                                      throws Exception
Throws:
Exception

follow

public RestfulResponse<JsonRepresentation> follow(LinkRepresentation link,
                                                  JsonRepresentation requestArgs)
                                           throws Exception
Throws:
Exception

followT

public <T extends JsonRepresentation> RestfulResponse<T> followT(LinkRepresentation link,
                                                                 JsonRepresentation requestArgs)
                                                      throws Exception
Throws:
Exception

createRequest

public RestfulRequest createRequest(HttpMethod httpMethod,
                                    String uriTemplate)

getClientRequestFactory

public org.jboss.resteasy.client.ClientRequestFactory getClientRequestFactory()
exposed for testing purposes only.



Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.