Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes


Accepted answer

Permanent link

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

0 votes


One other answer

Permanent link

 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.

0 votes

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Jul 27 '18, 6:07 a.m.

Question was seen: 1,582 times

Last updated: Aug 30 '18, 10:40 a.m.

Confirmation Cancel Confirm