Package com.sodius.oslc.app.dng.requests
Class SetRequirementHeading
- java.lang.Object
-
- com.sodius.oslc.client.requests.AbstractResourceRequest<ResourceResponse<Void>>
-
- com.sodius.oslc.app.dng.requests.SetRequirementHeading
-
- All Implemented Interfaces:
ResourceRequest<ResourceResponse<Void>>
,Callable<ResourceResponse<Void>>
public class SetRequirementHeading extends AbstractResourceRequest<ResourceResponse<Void>>
Updates the heading display of an existing DOORS Next requirement.- See Also:
ModuleContextBinding.isHeading()
-
-
Constructor Summary
Constructors Constructor Description SetRequirementHeading(OslcClient client, URI uri, String eTag, boolean isHeading)
Creates a request to update the heading display of an existing DOORS Next requirement.
-
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
-
SetRequirementHeading
public SetRequirementHeading(OslcClient client, URI uri, String eTag, boolean isHeading)
Creates a request to update the heading display of an existing DOORS Next requirement.- Parameters:
client
- the OSLC client to connect to the application.uri
- the URI of a DOORS Next requirement. A oslc_config.context parameter can be added to this URI for using a specific configuration.eTag
- the ETag header of the existing requirement, as provided in the response of the requirement reading.isHeading
-true
if the requirement must be displayed as a heading,false
otherwise.- See Also:
ResourceResponse.getETag()
-
-
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>>
-
-