Package com.sodius.oslc.app.dng.requests
Class DeleteWrapperResource
- java.lang.Object
-
- com.sodius.oslc.client.requests.AbstractResourceRequest<ResourceResponse<Void>>
-
- com.sodius.oslc.client.requests.DeleteResource
-
- com.sodius.oslc.app.dng.requests.DeleteWrapperResource
-
- All Implemented Interfaces:
ResourceRequest<ResourceResponse<Void>>
,Callable<ResourceResponse<Void>>
public class DeleteWrapperResource extends DeleteResource
A request to delete a wrapped resource containing a file and its wrapper resource associated A wrapper resource is a requirement which type is WrapperResource and can contain a wrapped resource such as a file.- Since:
- 1.2.0
-
-
Constructor Summary
Constructors Constructor Description DeleteWrapperResource(OslcClient client, DngRequirement requirement)
Creates a request to delete a wrapped resource and its wrapper resource associated
-
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
-
DeleteWrapperResource
public DeleteWrapperResource(OslcClient client, DngRequirement requirement)
Creates a request to delete a wrapped resource and its wrapper resource associated- Parameters:
client
- the OSLC client to connect to the application.requirement
- the wrapper resource requirement to delete. The configuration has to be present in the requirement about for configuration enabled projects
-
-
Method Detail
-
call
protected ClientResponse call(OslcResource resource)
- Overrides:
call
in classDeleteResource
-
createResponse
protected ResourceResponse<Void> createResponse(OslcResource resource, ClientResponse response)
- Overrides:
createResponse
in classDeleteResource
-
-