com.cumulocity.sdk.client
Class RestConnector

java.lang.Object
  extended by com.cumulocity.sdk.client.RestConnector

public class RestConnector
extends Object


Field Summary
static String X_CUMULOCITY_APPLICATION_KEY
           
 
Constructor Summary
  RestConnector(PlatformParameters platformParameters, ResponseParser responseParser)
           
protected RestConnector(PlatformParameters platformParameters, ResponseParser responseParser, com.sun.jersey.api.client.Client client)
           
 
Method Summary
 void delete(String path)
           
<T extends ResourceRepresentation>
T
get(String path, CumulocityMediaType mediaType, Class<T> responseType)
           
<T extends ResourceRepresentation>
T
post(String path, CumulocityMediaType mediaType, T representation)
           
<T extends ResourceRepresentationWithId>
T
post(String path, CumulocityMediaType mediaType, T representation)
           
<T extends ResourceRepresentation>
T
put(String path, CumulocityMediaType mediaType, T representation)
           
<T extends ResourceRepresentationWithId>
T
put(String path, CumulocityMediaType mediaType, T representation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

X_CUMULOCITY_APPLICATION_KEY

public static final String X_CUMULOCITY_APPLICATION_KEY
See Also:
Constant Field Values
Constructor Detail

RestConnector

public RestConnector(PlatformParameters platformParameters,
                     ResponseParser responseParser)

RestConnector

protected RestConnector(PlatformParameters platformParameters,
                        ResponseParser responseParser,
                        com.sun.jersey.api.client.Client client)
Method Detail

get

public <T extends ResourceRepresentation> T get(String path,
                                                CumulocityMediaType mediaType,
                                                Class<T> responseType)
                                     throws SDKException
Throws:
SDKException

post

public <T extends ResourceRepresentationWithId> T post(String path,
                                                       CumulocityMediaType mediaType,
                                                       T representation)
                                            throws SDKException
Throws:
SDKException

put

public <T extends ResourceRepresentationWithId> T put(String path,
                                                      CumulocityMediaType mediaType,
                                                      T representation)
                                           throws SDKException
Throws:
SDKException

post

public <T extends ResourceRepresentation> T post(String path,
                                                 CumulocityMediaType mediaType,
                                                 T representation)
                                      throws SDKException
Throws:
SDKException

put

public <T extends ResourceRepresentation> T put(String path,
                                                CumulocityMediaType mediaType,
                                                T representation)
                                     throws SDKException
Throws:
SDKException

delete

public void delete(String path)
            throws SDKException
Throws:
SDKException


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