public interface RestOperations extends AutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
delete(String path) |
<T extends ResourceRepresentation> |
get(String path,
CumulocityMediaType mediaType,
Class<T> responseType) |
<T> T |
get(String path,
javax.ws.rs.core.MediaType mediaType,
Class<T> responseType) |
javax.ws.rs.core.Response.Status |
getStatus(String path,
CumulocityMediaType mediaType) |
<Result extends ResourceRepresentation,Param extends ResourceRepresentation> |
post(String path,
CumulocityMediaType contentType,
CumulocityMediaType accept,
Param representation,
Class<Result> clazz) |
<T extends ResourceRepresentation> |
post(String path,
javax.ws.rs.core.MediaType mediaType,
T representation) |
<T extends ResourceRepresentationWithId> |
post(String path,
javax.ws.rs.core.MediaType mediaType,
T representation) |
<T extends ResourceRepresentation> |
postAsync(String path,
CumulocityMediaType mediaType,
T representation) |
<T extends ResourceRepresentation> |
postFile(String path,
T representation,
byte[] bytes,
Class<T> responseClass) |
<T extends ResourceRepresentation> |
postFileAsStream(String path,
T representation,
InputStream inputStream,
Class<T> responseClass) |
<T extends ResourceRepresentation> |
postStream(String path,
CumulocityMediaType mediaType,
InputStream content,
Class<T> responseClass) |
<T extends ResourceRepresentation> |
postText(String path,
String content,
Class<T> responseClass) |
<T extends ResourceRepresentation> |
postWithoutResponse(String path,
javax.ws.rs.core.MediaType mediaType,
T representation) |
<T extends ResourceRepresentation> |
put(String path,
javax.ws.rs.core.MediaType mediaType,
T representation) |
<T extends ResourceRepresentationWithId> |
put(String path,
javax.ws.rs.core.MediaType mediaType,
T representation) |
<T extends ResourceRepresentation> |
putAsync(String path,
CumulocityMediaType mediaType,
T representation) |
<T extends ResourceRepresentation> |
putStream(String path,
javax.ws.rs.core.MediaType mediaType,
InputStream content,
Class<T> responseClass) |
<T extends ResourceRepresentation> |
putStream(String path,
String contentType,
InputStream content,
Class<T> responseClass) |
<T extends ResourceRepresentation> |
putText(String path,
String content,
Class<T> responseClass) |
close
<T extends ResourceRepresentation> T get(String path, CumulocityMediaType mediaType, Class<T> responseType) throws SDKException
SDKException
<T> T get(String path, javax.ws.rs.core.MediaType mediaType, Class<T> responseType) throws SDKException
SDKException
javax.ws.rs.core.Response.Status getStatus(String path, CumulocityMediaType mediaType) throws SDKException
SDKException
<T extends ResourceRepresentation> T postStream(String path, CumulocityMediaType mediaType, InputStream content, Class<T> responseClass) throws SDKException
SDKException
<T extends ResourceRepresentation> T postText(String path, String content, Class<T> responseClass)
<T extends ResourceRepresentation> T putText(String path, String content, Class<T> responseClass)
<T extends ResourceRepresentation> T putStream(String path, String contentType, InputStream content, Class<T> responseClass)
<T extends ResourceRepresentation> T putStream(String path, javax.ws.rs.core.MediaType mediaType, InputStream content, Class<T> responseClass)
<T extends ResourceRepresentation> T postFile(String path, T representation, byte[] bytes, Class<T> responseClass)
<T extends ResourceRepresentation> T postFileAsStream(String path, T representation, InputStream inputStream, Class<T> responseClass)
<T extends ResourceRepresentationWithId> T put(String path, javax.ws.rs.core.MediaType mediaType, T representation) throws SDKException
SDKException
<T extends ResourceRepresentation> Future postAsync(String path, CumulocityMediaType mediaType, T representation) throws SDKException
SDKException
<T extends ResourceRepresentation> Future putAsync(String path, CumulocityMediaType mediaType, T representation) throws SDKException
SDKException
<T extends ResourceRepresentation> T post(String path, javax.ws.rs.core.MediaType mediaType, T representation) throws SDKException
SDKException
<T extends ResourceRepresentationWithId> T post(String path, javax.ws.rs.core.MediaType mediaType, T representation) throws SDKException
SDKException
<T extends ResourceRepresentation> void postWithoutResponse(String path, javax.ws.rs.core.MediaType mediaType, T representation) throws SDKException
SDKException
<Result extends ResourceRepresentation,Param extends ResourceRepresentation> Result post(String path, CumulocityMediaType contentType, CumulocityMediaType accept, Param representation, Class<Result> clazz)
<T extends ResourceRepresentation> T put(String path, javax.ws.rs.core.MediaType mediaType, T representation) throws SDKException
SDKException
void delete(String path) throws SDKException
SDKException
Copyright © 2020 (C) Cumulocity GmbH. All rights reserved.