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

HTTP Headers for HTTPConnector in Script Based Value Set Provider

Hi everyone,

I saw this very good blog entry about using script based value set providers for querying remote resources
in javascript using the HTTPConnector:

http://jorgediazblog.wordpress.com/2012/06/27/work-item-customization-httpconector-and-oauth-in-rtc-4-0-for-oslc/

So the essence of this connector lies in the following class which can be found in the RTC SDK:
com.ibm.team.workitem.api.common.connectors.HttpConnectorParameters();

Inside the following parameters are defined:

//url: null,

    //xpath: null,

    //columnXpaths: null,

    //columnIds: null,

    //formBasedAuthenticationLoginURL: null,

    //formBasedAuthenticationUsernameInputName: null,

    //formBasedAuthenticationPasswordInputName: null,

    //credentialsId: null,

    //useBasicAuthentication: null,

    //useFormAuthentication: null,

    //useOAuth: null,

    //userName: null,

    //password: null,

    //ignoreInvalidCertificates: null,

    //log: null

Question: Where can I set HTTP headers?
This would be a very powerful feature. One example would be setting a content-type of "application/rdf+xml" and then just using the full capabilities the OSLC REST API gives you in terms of querying and selecting resources.

1

1 vote


Be the first one to answer this question!

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
× 10,938
× 516
× 479
× 152
× 34

Question asked: Dec 05 '13, 10:40 a.m.

Question was seen: 5,448 times

Last updated: Dec 05 '13, 10:41 a.m.

Confirmation Cancel Confirm