Package com.sodius.oslc.app.dng.requests
Class UploadWrapperResource
- java.lang.Object
-
- com.sodius.oslc.client.requests.AbstractResourceRequest<ResourceResponse<Void>>
-
- com.sodius.oslc.app.dng.requests.UploadWrapperResource
-
- All Implemented Interfaces:
ResourceRequest<ResourceResponse<Void>>
,Callable<ResourceResponse<Void>>
public class UploadWrapperResource extends AbstractResourceRequest<ResourceResponse<Void>>
A request to upload a file into a wrapped resource. A wrapped resource such as a file.- Since:
- 1.2.0
-
-
Constructor Summary
Constructors Constructor Description UploadWrapperResource(OslcClient client, DngRequirement requirement, File file)
Creates a request to update a wrapped resource.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ClientResponse
call(OslcResource resource)
protected ResourceResponse<Void>
createResponse(OslcResource resource, ClientResponse response)
-
Methods inherited from class com.sodius.oslc.client.requests.AbstractResourceRequest
call, createErrorResponse, createResourceResponse, getClient, getUri
-
-
-
-
Constructor Detail
-
UploadWrapperResource
public UploadWrapperResource(OslcClient client, DngRequirement requirement, File file)
Creates a request to update a wrapped resource.- Parameters:
client
- the OSLC client to connect to the application.requirement
- the wrapper resource requirement to update with the new file. The configuration has to be present in the requirement about for configuration enabled projectsfile
- the file to update.
-
-
Method Detail
-
call
protected ClientResponse call(OslcResource resource)
- Specified by:
call
in classAbstractResourceRequest<ResourceResponse<Void>>
-
createResponse
protected ResourceResponse<Void> createResponse(OslcResource resource, ClientResponse response)
- Specified by:
createResponse
in classAbstractResourceRequest<ResourceResponse<Void>>
-
-