Method: ExistAPI#retrieve
- Defined in:
- lib/eXistAPI.rb
#retrieve(handle, pos) ⇒ Object
Retrieves a single result-fragment from the result-set referenced by resultId. The result-fragment is identified by its position in the result-set, which is passed in the parameter pos.
-
Args :
-
handle-> Reference to a result-set as returned by a previous call to executeQuery. -
pos-> The position of the item in the result-sequence, starting at 0. -
parameters-> A struct containing key=value pairs to configure the output.
-
-
Returns :
-
the result of call
-
-
Raises :
-
ExistException-> Failed to retrive resource
-
255 256 257 258 259 260 261 262 263 264 |
# File 'lib/eXistAPI.rb', line 255 def retrieve(handle, pos) begin res = @client.call("retrieve", handle, pos, @parameters) return res rescue XMLRPC::FaultException => e raise e rescue raise ExistException.new("Failed to retrive resource", 7), caller end end |