Package com.sodius.oslc.app.dng.requests
Class CreateModule
- java.lang.Object
-
- com.sodius.oslc.client.requests.AbstractResourceRequest<ResourceResponse<Void>>
-
- com.sodius.oslc.app.dng.requests.CreateModule
-
- All Implemented Interfaces:
ResourceRequest<ResourceResponse<Void>>
,Callable<ResourceResponse<Void>>
public class CreateModule extends AbstractResourceRequest<ResourceResponse<Void>>
A request to create a DOORS Next Module.- See Also:
GetModuleService
-
-
Constructor Summary
Constructors Constructor Description CreateModule(OslcClient client, URI creationFactory, Module module)
Creates a request to create a DOORS Next Module.
-
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
-
CreateModule
public CreateModule(OslcClient client, URI creationFactory, Module module)
Creates a request to create a DOORS Next Module.Here is the required information in the specified module:
- title: the module title.
- parentFolder: the folder in which the module is to create.
- instanceShape: the type of module to create. This type can be discovered using GetModuleService, which returns a creation factory per module type.
Here is the optional information the module may provide:
- description: the description to assign to the created module.
The URI of the created module can then be obtained through the "Location" header provided in the request response.
- Parameters:
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.- See Also:
GetModuleService
-
-
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>>
-
-