com.basho.riak.client.response
Interface StreamHandler


Deprecated. with the addition of a protocol buffers client in 0.14 all the existing REST client code should be in client.http.* this class has therefore been moved. Please use com.basho.riak.client.http.response.StreamHandler instead.

WARNING: This class will be REMOVED in the next version.

@Deprecated
public interface StreamHandler

Used with RiakClient.stream() to process the HTTP responses for fetch requests as a stream.

See Also:
StreamHandler

Method Summary
 boolean process(String bucket, String key, int status, Map<String,String> headers, InputStream in, org.apache.http.HttpResponse httpMethod)
          Deprecated. Process the HTTP response whose value is given as a stream.
 

Method Detail

process

boolean process(String bucket,
                String key,
                int status,
                Map<String,String> headers,
                InputStream in,
                org.apache.http.HttpResponse httpMethod)
Deprecated. 
Process the HTTP response whose value is given as a stream.

Parameters:
bucket - The object's bucket
key - The object's key
status - The HTTP status code returned for the request
headers - The HTTP headers returned in the response
in - InputStream of the object's value (body)
httpMethod - The original HttpResponse used to make the request. Its connection is still open and will be closed by the caller on return.
Returns:
true if the object was processed; false otherwise


Copyright © 2012. All Rights Reserved.