Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [lyo-dev] New reply to Re: How to set "priority" for my work item with OSLC? by Michael Fiedler

Take a look at the processRawResponse() method in RTCFormSample in the org.eclipse.lyo.samples.java project.   It prints out the raw http response.  

InputStream is = clientResponse.getEntity(InputStream.class);

Basically, you could use the input stream in other ways (input to Jena model creation for RDF processing, input to XPathFactory for XPath queries, etc.)

Regards,
Mike


On Mon, May 27, 2013 at 2:15 PM, Pietro Marella <pietro.marella@xxxxxxxxx> wrote:
>>Hi, There's currently no Java resource in OSLC4J to represent that RTC-specific Literal resource.   You could either

>>- create one that matches the predicates in Literal and have OSLC4J de-serialize to Java for you
>>- Use the OSLC client to do a get and don't de-serialize to java - just process the raw xml yourself (or with an RDF lib like Jena)

>>Regards,
>>Mike

Thank you, Michael

Can you provide me some samples I can use to use both the way or point me to some doc?
In the org.eclipse.lyo.client.oslc.OSLCClient class I can see only the "getResource" method that in turns, invoke the GET operation,
but not sure how to manage the ClientResponse object it returns back :

            ClientResponse response = oslc_client.getResource("https://x.xx.xxx.xx:9443/ccm/oslc/enumerations/_ryl8MLbfEeK8JbTtKcHtwA/pid",OSLCConstants.CT_RDF);
           
thanks in advance
piero m.


2013/5/24 <webmaster@xxxxxxxxxxx>
Subject: Re: How to set "priority" for my work item with OSLC? Author: Michael Fiedler Date: Fri, 24 May 2013 14:40
This is being discussed in the lyo-dev workgroup.

See: http://dev.eclipse.org/mhonarc/lists/lyo-dev/msg00369.html
[ Reply ][ Quote ][ View Topic/Message ][ Unsubscribe from this topic ]


_______________________________________________
lyo-dev mailing list
lyo-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/lyo-dev



Back to the top