OSLC Create artefact in different component
Hello,
I'm using Eclipse LYO, i want to create an artefact in a specific component into my project area
How are you doing this?
Thanks
|
Accepted answer
The eclipse/Lyo OSLC4J java client does not yet support OSLC configuration management. However, you may be able to specify the Configuration-Context to use for creating resources using a receptor to set the header. Try something like this:
Header header = new BasicHeader("Configuration-Context", "https://some-context-uri");
List<Header> headers = new ArrayList<Header>();
headers.add(header);
RequestDefaultHeaders defaultHeaders = new RequestDefaultHeaders(headers);
((DefaultHttpClient)client.getHttpClient()).addRequestInterceptor(defaultHeaders);
BENANNOUNE Yacine selected this answer as the correct answer
|
One other answer
Thanks, it's working.
I had to update the HttpClient, i was using the version 2.1 of EclipseLyo with HttpClient4.
you need 4.3 and above.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.