public class CreateModule extends AbstractResourceRequest<ResourceResponse<Void>>
GetModuleService
Constructor and Description |
---|
CreateModule(OslcClient client,
URI creationFactory,
Module module)
Creates a request to create a DOORS Next Generation Module.
|
Modifier and Type | Method and Description |
---|---|
protected ClientResponse |
call(OslcResource resource) |
protected ResourceResponse<Void> |
createResponse(OslcResource resource,
ClientResponse response) |
call, createResourceResponse, getClient, getUri
public CreateModule(OslcClient client, URI creationFactory, Module module)
Here is the required information in the specified module:
Here is the optional information the module may provide:
The URI of the created module can then be obtained through the "Location" header provided in the request response.
client
- the OSLC client to connect to the application.creationFactory
- the URI of the creation factory, as provided by the service in GetModuleService. A oslc_config.context parameter can be added to
this URI for using a specific configuration.module
- the module to create.GetModuleService
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>>