[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [lyo-dev] DoorsOauthSample and processAsJavaObjects

One of the most commonly supported  response format is RDF/XML. If the response is in this format, it is recommended that you use an RDF parser instead of parsing XML directly to avoid having to deal with an RDF statement that can be expressed in multiple ways using XML. If the GET request supports a JSON response format, then by all means access it as a JSON object.



Clyde Icuspit

Technology Analysis and Strategy
Open Technology & Cloud Performance
IBM Corporation

From:        Robert Kerr <rakerr@xxxxxxxxxx>
To:        <lyo-dev@xxxxxxxxxxx>
Date:        06/01/2015 05:17 PM
Subject:        [lyo-dev] DoorsOauthSample and processAsJavaObjects
Sent by:        lyo-dev-bounces@xxxxxxxxxxx

I'm working through the code in DoorOauthSample, and find that the code
to de-serialize an OslcQueryResult as a Java Objects is commented-out:

if (response != null) {
                //De-serialize it as a Java object
                if (asJavaObjects) {
                   //Requirement req = response.getEntity(Requirement.class);
                   //printRequirementInfo(req);   //print a few attributes
                } else {
                  //Just print the raw RDF/XML (or process the XML as desired)

Are we not able to convert OSLC entities into regular objects?  What
hinders us from doing so?



[Perl] combines all the worst aspects of C and Lisp: a billion different
sublanguages in one monolithic executable. It combines the power of C with
the readability of PostScript."  - Jamie Zawinski
*      Robert Kerr  SSPS Developer and CUBIT Support Manager         *
*      rakerr@xxxxxxxxxx          |    PO Box 5800,  MS 0125         *
*      Phone: (505) 844-8606      |    Sandia National Labs          *
*       Fax: (505) 844-2018       |  Albuquerque, NM 87185-0125      *

lyo-dev mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit