com.bigllc.retsiq.simpleclient
Interface ObjectResponseHandler

All Known Implementing Classes:
DefaultObjectHandler, FileWriterObjectHandler

public interface ObjectResponseHandler

Interface for handling objects. This interface can be used to do custom handling of objects returned by the getObjects call.

Author:
Marc G. Smith

Method Summary
 java.lang.String object(java.lang.String contentType, java.lang.String contentId, java.lang.String objectId, java.io.InputStream in)
          This method is called by the getObject method for each object.
 

Method Detail

object

java.lang.String object(java.lang.String contentType,
                        java.lang.String contentId,
                        java.lang.String objectId,
                        java.io.InputStream in)
                        throws RETSClientException
This method is called by the getObject method for each object. The handler implementation is responsible for writing the object.

Parameters:
contentType - the content type for the object
objectId - the object id of the object
contentId - the content id of the object
in - the input stream of the object
Returns:
The uri of the persisted object
Throws:
RETSClientException