public class SetRequirementHeading extends AbstractResourceRequest<ResourceResponse<Void>>
ModuleContextBinding.isHeading()
Constructor and Description |
---|
SetRequirementHeading(OslcClient client,
URI uri,
String eTag,
boolean isHeading)
Creates a request to update the heading display of an existing DOORS Next Generation requirement.
|
Modifier and Type | Method and Description |
---|---|
protected ClientResponse |
call(OslcResource resource) |
protected ResourceResponse<Void> |
createResponse(OslcResource resource,
ClientResponse response) |
call, createResourceResponse, getClient, getUri
public SetRequirementHeading(OslcClient client, URI uri, String eTag, boolean isHeading)
client
- the OSLC client to connect to the application.uri
- the URI of a DOORS Next Generation 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.ResourceResponse.getETag()
protected ClientResponse call(OslcResource resource)
call
in class AbstractResourceRequest<ResourceResponse<Void>>
protected ResourceResponse<Void> createResponse(OslcResource resource, ClientResponse response)
createResponse
in class AbstractResourceRequest<ResourceResponse<Void>>