com.cumulocity.sdk.client
Class RestConnector
java.lang.Object
com.cumulocity.sdk.client.RestConnector
public class RestConnector
- extends Object
Method Summary |
void |
delete(String path)
|
|
get(String path,
CumulocityMediaType mediaType,
Class<T> responseType)
|
|
post(String path,
CumulocityMediaType mediaType,
T representation)
|
|
post(String path,
CumulocityMediaType mediaType,
T representation)
|
|
put(String path,
CumulocityMediaType mediaType,
T representation)
|
|
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 |
X_CUMULOCITY_APPLICATION_KEY
public static final String X_CUMULOCITY_APPLICATION_KEY
- See Also:
- Constant Field Values
RestConnector
public RestConnector(PlatformParameters platformParameters,
ResponseParser responseParser)
RestConnector
protected RestConnector(PlatformParameters platformParameters,
ResponseParser responseParser,
com.sun.jersey.api.client.Client client)
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.