Package com.cumulocity.sdk.client
Interface RestOperations
-
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
RestConnector
public interface RestOperations extends AutoCloseable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
delete(String path)
<T extends ResourceRepresentation>
Tget(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>
Resultpost(String path, CumulocityMediaType contentType, CumulocityMediaType accept, Param representation, Class<Result> clazz)
<T extends ResourceRepresentation>
Tpost(String path, javax.ws.rs.core.MediaType mediaType, T representation)
<T extends ResourceRepresentation>
FuturepostAsync(String path, CumulocityMediaType mediaType, T representation)
<T extends ResourceRepresentation>
TpostFile(String path, T representation, byte[] bytes, Class<T> responseClass)
Deprecated.<T extends ResourceRepresentation>
TpostFile(String path, T representation, byte[] bytes, javax.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>
TpostFileAsStream(String path, T representation, InputStream inputStream, javax.ws.rs.core.MediaType mediaType, Class<T> responseClass)
<T extends ResourceRepresentation>
TpostStream(String path, CumulocityMediaType mediaType, InputStream content, Class<T> responseClass)
void
postStream(String path, InputStream inputStream, javax.ws.rs.core.MediaType inputStreamMediaType)
<T extends ResourceRepresentation>
TpostText(String path, String content, Class<T> responseClass)
<T extends ResourceRepresentation>
voidpostWithoutResponse(String path, javax.ws.rs.core.MediaType mediaType, T representation)
<T extends ResourceRepresentationWithId>
Tput(String path, javax.ws.rs.core.MediaType mediaType, T representation)
<T extends ResourceRepresentation>
FutureputAsync(String path, CumulocityMediaType mediaType, T representation)
<T extends ResourceRepresentation>
TputStream(String path, String contentType, InputStream content, Class<T> responseClass)
<T extends ResourceRepresentation>
TputStream(String path, javax.ws.rs.core.MediaType mediaType, InputStream content, Class<T> responseClass)
<T extends ResourceRepresentation>
TputText(String path, String content, Class<T> responseClass)
-
Methods inherited from interface java.lang.AutoCloseable
close
-
-
-
-
Method Detail
-
get
<T extends ResourceRepresentation> T get(String path, CumulocityMediaType mediaType, Class<T> responseType) throws SDKException
- Throws:
SDKException
-
get
<T> T get(String path, javax.ws.rs.core.MediaType mediaType, Class<T> responseType) throws SDKException
- Throws:
SDKException
-
getStatus
javax.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
<T extends ResourceRepresentation> T postText(String path, String content, Class<T> responseClass)
-
putText
<T extends ResourceRepresentation> T putText(String path, String content, Class<T> responseClass)
-
putStream
<T extends ResourceRepresentation> T putStream(String path, String contentType, InputStream content, Class<T> responseClass)
-
putStream
<T extends ResourceRepresentation> T putStream(String path, javax.ws.rs.core.MediaType mediaType, InputStream content, Class<T> responseClass)
-
postStream
void postStream(String path, InputStream inputStream, javax.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, javax.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, javax.ws.rs.core.MediaType mediaType, Class<T> responseClass)
-
put
<T extends ResourceRepresentationWithId> T put(String path, javax.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, javax.ws.rs.core.MediaType mediaType, T representation) throws SDKException
- Throws:
SDKException
-
post
<T extends ResourceRepresentationWithId> T post(String path, javax.ws.rs.core.MediaType mediaType, T representation) throws SDKException
- Throws:
SDKException
-
postWithoutResponse
<T extends ResourceRepresentation> void postWithoutResponse(String path, javax.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, javax.ws.rs.core.MediaType mediaType, T representation) throws SDKException
- Throws:
SDKException
-
delete
void delete(String path) throws SDKException
- Throws:
SDKException
-
-