Skip to main content

[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.

Sincerely,

_________________________________________________________

Clyde Icuspit

Technology Analysis and Strategy
Open Technology & Cloud Performance
IBM Corporation
617-693-7417




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




Hi,
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)
                processRawResponse(response);
                }
}|


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


Thanks

--
-bob

[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
lyo-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/lyo-dev



Back to the top