com.cumulocity.sdk.client
Class GenericResourceImpl<T extends BaseResourceRepresentation>

java.lang.Object
  extended by com.cumulocity.sdk.client.GenericResourceImpl<T>
All Implemented Interfaces:
GenericResource<T>
Direct Known Subclasses:
PagedCollectionResourceImpl

public abstract class GenericResourceImpl<T extends BaseResourceRepresentation>
extends Object
implements GenericResource<T>


Field Summary
protected  RestConnector restConnector
           
 String url
          Deprecated. 
 
Constructor Summary
GenericResourceImpl(RestConnector restConnector, String url)
           
 
Method Summary
 T get()
           
protected abstract  CumulocityMediaType getMediaType()
           
protected abstract  Class<T> getResponseClass()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

url

@Deprecated
public final String url
Deprecated. 

restConnector

protected final RestConnector restConnector
Constructor Detail

GenericResourceImpl

public GenericResourceImpl(RestConnector restConnector,
                           String url)
Method Detail

getMediaType

protected abstract CumulocityMediaType getMediaType()

getResponseClass

protected abstract Class<T> getResponseClass()

get

public T get()
                                         throws SDKException
Specified by:
get in interface GenericResource<T extends BaseResourceRepresentation>
Throws:
SDKException


Copyright © 2013 (C) Cumulocity GmbH. All Rights Reserved.