NAME
RDF::Sesame::Response - A response of a Sesame server to a command
DESCRIPTION
This class is mostly used internally, but it's documented here in case others find use for it. This object contains information about the response from the Sesame server and provides useful ways to access the information. After one executes RDF::Sesame::Connection::command or RDF::Sesame::Repository::command, one should check the response object to determine if the command was completed successfully.
Just to say it one more time, most users won't need this class. Use the methods provided by RDF::Sesame::Repository instead.
METHODS
success
Returns 1 if the response from the server indicates that the command was completed successfully, otherwise it returns the empty string.
errstr
Returns the error message provided by the Sesame server. If there was no error message, returns the empty string.
xml
Returns the raw XML returned by the Sesame server. This value will only be available if the response actually included XML. If it didn't, the empty string will be returned.
parsed_xml
Returns a hashref representation of the XML returned by the Sesame server. If no XML is available, returns an empty hashref. XML::Simple is used to parse the XML.
http_response
Returns the HTTP::Response object representing the original HTTP response from the server. This allows one access to the lower-level details about the response.
AUTHOR
Michael Hendricks <michael@palmcluster.org>