com.basho.riak.client.response
Interface StreamHandler
public interface StreamHandler
Used with RiakClient.stream() to process the HTTP responses for fetch
requests as a stream.
|
Method Summary |
boolean |
process(java.lang.String bucket,
java.lang.String key,
int status,
java.util.Map<java.lang.String,java.lang.String> headers,
java.io.InputStream in,
org.apache.commons.httpclient.HttpMethod httpMethod)
Process the HTTP response whose value is given as a stream. |
process
boolean process(java.lang.String bucket,
java.lang.String key,
int status,
java.util.Map<java.lang.String,java.lang.String> headers,
java.io.InputStream in,
org.apache.commons.httpclient.HttpMethod httpMethod)
- Process the HTTP response whose value is given as a stream.
- Parameters:
bucket - The object's bucketkey - The object's keystatus - The HTTP status code returned for the requestheaders - The HTTP headers returned in the responsein - InputStream of the object's value (body)httpMethod - The original HttpMethod 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 © 2010. All Rights Reserved.