Package com.cumulocity.sdk.client
Interface RestOperations
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
RestConnector
-
Method Summary
Modifier and TypeMethodDescriptionvoid
<T extends ResourceRepresentation>
Tget
(String path, CumulocityMediaType mediaType, Class<T> responseType) <T> T
jakarta.ws.rs.core.Response.Status
getStatus
(String path, CumulocityMediaType mediaType) <Result extends ResourceRepresentation,
Param extends ResourceRepresentation>
Resultpost
(String path, CumulocityMediaType contentType, CumulocityMediaType accept, Param representation, Class<Result> clazz) <T extends ResourceRepresentation>
T<T extends ResourceRepresentation>
FuturepostAsync
(String path, CumulocityMediaType mediaType, T representation) <T extends ResourceRepresentation>
TpostFile
(String path, T representation, byte[] bytes, jakarta.ws.rs.core.MediaType mediaType, Class<T> responseClass) <T extends ResourceRepresentation>
TDeprecated.<T extends ResourceRepresentation>
TpostFileAsStream
(String path, T representation, InputStream inputStream, jakarta.ws.rs.core.MediaType mediaType, Class<T> responseClass) <T extends ResourceRepresentation>
TpostFileAsStream
(String path, T representation, InputStream inputStream, Class<T> responseClass) Deprecated.<T extends ResourceRepresentation>
TpostStream
(String path, CumulocityMediaType mediaType, InputStream content, Class<T> responseClass) void
postStream
(String path, InputStream inputStream, jakarta.ws.rs.core.MediaType inputStreamMediaType) <T extends ResourceRepresentation>
T<T extends ResourceRepresentation>
voidpostWithoutResponse
(String path, jakarta.ws.rs.core.MediaType mediaType, T representation) <T extends ResourceRepresentationWithId>
T<T extends ResourceRepresentation>
FutureputAsync
(String path, CumulocityMediaType mediaType, T representation) <T extends ResourceRepresentation>
TputStream
(String path, jakarta.ws.rs.core.MediaType mediaType, InputStream content, Class<T> responseClass) <T extends ResourceRepresentation>
TputStream
(String path, String contentType, InputStream content, Class<T> responseClass) <T extends ResourceRepresentation>
TMethods inherited from interface java.lang.AutoCloseable
close
-
Method Details
-
get
<T extends ResourceRepresentation> T get(String path, CumulocityMediaType mediaType, Class<T> responseType) throws SDKException - Throws:
SDKException
-
get
<T> T get(String path, jakarta.ws.rs.core.MediaType mediaType, Class<T> responseType) throws SDKException - Throws:
SDKException
-
getStatus
jakarta.ws.rs.core.Response.Status getStatus(String path, CumulocityMediaType mediaType) throws SDKException - Throws:
SDKException
-
postStream
<T extends ResourceRepresentation> T postStream(String path, CumulocityMediaType mediaType, InputStream content, Class<T> responseClass) throws SDKException - Throws:
SDKException
-
postText
-
putText
-
putStream
<T extends ResourceRepresentation> T putStream(String path, String contentType, InputStream content, Class<T> responseClass) -
putStream
<T extends ResourceRepresentation> T putStream(String path, jakarta.ws.rs.core.MediaType mediaType, InputStream content, Class<T> responseClass) -
postStream
void postStream(String path, InputStream inputStream, jakarta.ws.rs.core.MediaType inputStreamMediaType) -
postFile
@Deprecated <T extends ResourceRepresentation> T postFile(String path, T representation, byte[] bytes, Class<T> responseClass) Deprecated. -
postFile
<T extends ResourceRepresentation> T postFile(String path, T representation, byte[] bytes, jakarta.ws.rs.core.MediaType mediaType, Class<T> responseClass) -
postFileAsStream
@Deprecated <T extends ResourceRepresentation> T postFileAsStream(String path, T representation, InputStream inputStream, Class<T> responseClass) Deprecated. -
postFileAsStream
<T extends ResourceRepresentation> T postFileAsStream(String path, T representation, InputStream inputStream, jakarta.ws.rs.core.MediaType mediaType, Class<T> responseClass) -
put
<T extends ResourceRepresentationWithId> T put(String path, jakarta.ws.rs.core.MediaType mediaType, T representation) throws SDKException - Throws:
SDKException
-
postAsync
<T extends ResourceRepresentation> Future postAsync(String path, CumulocityMediaType mediaType, T representation) throws SDKException - Throws:
SDKException
-
putAsync
<T extends ResourceRepresentation> Future putAsync(String path, CumulocityMediaType mediaType, T representation) throws SDKException - Throws:
SDKException
-
post
<T extends ResourceRepresentation> T post(String path, jakarta.ws.rs.core.MediaType mediaType, T representation) throws SDKException - Throws:
SDKException
-
post
<T extends ResourceRepresentationWithId> T post(String path, jakarta.ws.rs.core.MediaType mediaType, T representation) throws SDKException - Throws:
SDKException
-
postWithoutResponse
<T extends ResourceRepresentation> void postWithoutResponse(String path, jakarta.ws.rs.core.MediaType mediaType, T representation) throws SDKException - Throws:
SDKException
-
post
<Result extends ResourceRepresentation,Param extends ResourceRepresentation> Result post(String path, CumulocityMediaType contentType, CumulocityMediaType accept, Param representation, Class<Result> clazz) -
put
<T extends ResourceRepresentation> T put(String path, jakarta.ws.rs.core.MediaType mediaType, T representation) throws SDKException - Throws:
SDKException
-
delete
- Throws:
SDKException
-