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

Getting Configuration XML in a REST Service...

I have a class that I created that reads and/or modifies a part of the configuration xml, this is called from the RCP U/I. stubbed below:

// Initialize Model from previous configuration
public class My_RCP_UI_Class extends ProcessAspectEditor2
{
public void init(IProcessAspectEditorSite site, ProcessAspect inputAspect)
{
super.init(site, inputAspect);
manager = new AFEffortEstimationManager(); //class variable

// Initialize Model from previous configuration
ModelElement configElement = getAspect().getConfigurationElement();
manager.read(configElement); //Initialize Model from Configuration XML
}

The manager class is passed the ModelElement and is used to read the configuration xml into a Map. This can then be used to get and set data in the Map and subsequently write the data back to the comfigfuration xml.

I now need to be able to call this same read(xxx) method from a REST service to read the configuration xml into the map. I do not need to set data into the map and save it back to the configuration xml I only need to get data from the map. How do I call my manager.read(xxx) method from the REST service.

Thanks in Advance O. Frank

0 votes


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,948

Question asked: May 21 '09, 1:44 p.m.

Question was seen: 3,394 times

Last updated: May 21 '09, 1:44 p.m.

Confirmation Cancel Confirm