com.sugestio.client.call
Class Call

java.lang.Object
  extended by com.sugestio.client.call.Call
Direct Known Subclasses:
DeleteCall, DeleteRecommendationCall, GetAnalyticsCall, GetConsumptionCall, GetConsumptionHistoryCall, GetItemCall, GetRecommendationsCall, PostCall

public abstract class Call
extends java.lang.Object


Field Summary
protected  SugestioConfig config
           
protected  java.lang.String consumptionId
           
protected  java.lang.String itemId
           
protected  com.sun.jersey.api.client.Client jClient
           
protected  SugestioClient.ResourceType resourceType
           
protected  java.lang.String userId
           
 
Constructor Summary
protected Call(com.sun.jersey.api.client.Client jClient, SugestioConfig config, SugestioClient.ResourceType resourceType)
           
protected Call(com.sun.jersey.api.client.Client jClient, SugestioConfig config, SugestioClient.ResourceType resourceType, java.lang.String userId, java.lang.String itemId, java.lang.String consumptionId)
           
 
Method Summary
protected  com.sun.jersey.oauth.client.OAuthClientFilter getOauthFilter()
           
protected  java.lang.String getUri(SugestioClient.Verb verb, SugestioClient.ResourceType resourceType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jClient

protected com.sun.jersey.api.client.Client jClient

config

protected SugestioConfig config

resourceType

protected SugestioClient.ResourceType resourceType

userId

protected java.lang.String userId

itemId

protected java.lang.String itemId

consumptionId

protected java.lang.String consumptionId
Constructor Detail

Call

protected Call(com.sun.jersey.api.client.Client jClient,
               SugestioConfig config,
               SugestioClient.ResourceType resourceType)

Call

protected Call(com.sun.jersey.api.client.Client jClient,
               SugestioConfig config,
               SugestioClient.ResourceType resourceType,
               java.lang.String userId,
               java.lang.String itemId,
               java.lang.String consumptionId)
Method Detail

getUri

protected java.lang.String getUri(SugestioClient.Verb verb,
                                  SugestioClient.ResourceType resourceType)

getOauthFilter

protected com.sun.jersey.oauth.client.OAuthClientFilter getOauthFilter()