com.createsend.util.jersey
Class AuthorisedResourceFactory

java.lang.Object
  extended by com.createsend.util.jersey.ResourceFactory
      extended by com.createsend.util.jersey.AuthorisedResourceFactory

public class AuthorisedResourceFactory
extends ResourceFactory


Constructor Summary
AuthorisedResourceFactory(java.lang.String accessToken)
           
AuthorisedResourceFactory(java.lang.String username, java.lang.String password)
           
 
Method Summary
 com.sun.jersey.api.client.WebResource getResource(com.sun.jersey.api.client.Client client, java.lang.String... pathElements)
           
 
Methods inherited from class com.createsend.util.jersey.ResourceFactory
getResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthorisedResourceFactory

public AuthorisedResourceFactory(java.lang.String accessToken)

AuthorisedResourceFactory

public AuthorisedResourceFactory(java.lang.String username,
                                 java.lang.String password)
Method Detail

getResource

public com.sun.jersey.api.client.WebResource getResource(com.sun.jersey.api.client.Client client,
                                                         java.lang.String... pathElements)
Overrides:
getResource in class ResourceFactory