Package com.basho.riak.client.http

Examples of com.basho.riak.client.http.RiakObject$LinkBuilder


                        partBucket = locationParts[locationParts.length - 2];
                        partKey = locationParts[locationParts.length - 1];
                    }
                }

                RiakObject o = new RiakObject(riak, partBucket, partKey, part.getBody(),
                                              headers.get(Constants.HDR_CONTENT_TYPE), links, usermeta, vclock,
                                              headers.get(Constants.HDR_LAST_MODIFIED), headers.get(Constants.HDR_ETAG),
                                              indexes);
                objects.add(o);
            }
View Full Code Here


                siblings = ClientUtils.parseMultipart(riak, r.getBucket(), r.getKey(), headers, r.getBody());
            }

            object = siblings.iterator().next();
        } else if (r.isSuccess()) {
            object = new RiakObject(riak, r.getBucket(), r.getKey(), r.getBody(),
                                    headers.get(Constants.HDR_CONTENT_TYPE), links, usermeta,
                                    headers.get(Constants.HDR_VCLOCK), headers.get(Constants.HDR_LAST_MODIFIED),
                                    headers.get(Constants.HDR_ETAG), indexes);

            Long contentLength = null;
View Full Code Here

                    partBucket = locationParts[locationParts.length - 2];
                    partKey = locationParts[locationParts.length - 1];
                }
            }

            RiakObject o = new RiakObject(riak, partBucket, partKey, null, headers.get(Constants.HDR_CONTENT_TYPE),
                                 links, usermeta, vclock, headers.get(Constants.HDR_LAST_MODIFIED),
                                 headers.get(Constants.HDR_ETAG), indexes);
            o.setValueStream(part.getStream());
            cache(o);
            return true;
        }

        return false;
View Full Code Here

                        partBucket = locationParts[locationParts.length - 2];
                        partKey = urlDecode(locationParts[locationParts.length - 1]);
                    }
                }

                RiakObject o = new RiakObject(riak, partBucket, partKey, part.getBody(),
                                              headers.get(Constants.HDR_CONTENT_TYPE), links, usermeta, vclock,
                                              headers.get(Constants.HDR_LAST_MODIFIED), headers.get(Constants.HDR_ETAG),
                                              indexes);
                objects.add(o);
            }
View Full Code Here

                headers.put(Constants.HDR_DELETED, "true");
                body = new byte[0]; // otherwise this will be "not found"
            }
           
           
            object = new RiakObject(riak, r.getBucket(), r.getKey(), body,
                                    headers.get(Constants.HDR_CONTENT_TYPE), links, usermeta,
                                    headers.get(Constants.HDR_VCLOCK), headers.get(Constants.HDR_LAST_MODIFIED),
                                    headers.get(Constants.HDR_ETAG), indexes,
                                    headers.get(Constants.HDR_DELETED) != null ? true : false);
View Full Code Here

                    partBucket = locationParts[locationParts.length - 2];
                    partKey = locationParts[locationParts.length - 1];
                }
            }

            RiakObject o = new RiakObject(riak, partBucket, partKey, null, headers.get(Constants.HDR_CONTENT_TYPE),
                                 links, usermeta, vclock, headers.get(Constants.HDR_LAST_MODIFIED),
                                 headers.get(Constants.HDR_ETAG), indexes,
                                 headers.get(Constants.HDR_DELETED) != null ? true : false);
            o.setValueStream(part.getStream());
            cache(o);
            return true;
        }

        return false;
View Full Code Here

                        partBucket = locationParts[locationParts.length - 2];
                        partKey = urlDecode(locationParts[locationParts.length - 1]);
                    }
                }

                RiakObject o = new RiakObject(riak, partBucket, partKey, part.getBody(),
                                              headers.get(Constants.HDR_CONTENT_TYPE), links, usermeta, vclock,
                                              headers.get(Constants.HDR_LAST_MODIFIED), headers.get(Constants.HDR_ETAG),
                                              indexes, headers.get(Constants.HDR_DELETED) != null ? true : false);
                objects.add(o);
            }
View Full Code Here

                        partBucket = locationParts[locationParts.length - 2];
                        partKey = urlDecode(locationParts[locationParts.length - 1]);
                    }
                }

                RiakObject o = new RiakObject(riak, partBucket, partKey, part.getBody(),
                                              headers.get(Constants.HDR_CONTENT_TYPE), links, usermeta, vclock,
                                              headers.get(Constants.HDR_LAST_MODIFIED), headers.get(Constants.HDR_ETAG),
                                              indexes);
                objects.add(o);
            }
View Full Code Here

                        partBucket = locationParts[locationParts.length - 2];
                        partKey = urlDecode(locationParts[locationParts.length - 1]);
                    }
                }

                RiakObject o = new RiakObject(riak, partBucket, partKey, part.getBody(),
                                              headers.get(Constants.HDR_CONTENT_TYPE), links, usermeta, vclock,
                                              headers.get(Constants.HDR_LAST_MODIFIED), headers.get(Constants.HDR_ETAG),
                                              indexes);
                objects.add(o);
            }
View Full Code Here

                siblings = ClientUtils.parseMultipart(riak, r.getBucket(), r.getKey(), headers, r.getBody());
            }

            object = siblings.iterator().next();
        } else if (r.isSuccess()) {
            object = new RiakObject(riak, r.getBucket(), r.getKey(), r.getBody(),
                                    headers.get(Constants.HDR_CONTENT_TYPE), links, usermeta,
                                    headers.get(Constants.HDR_VCLOCK), headers.get(Constants.HDR_LAST_MODIFIED),
                                    headers.get(Constants.HDR_ETAG), indexes);

            Long contentLength = null;
View Full Code Here

TOP

Related Classes of com.basho.riak.client.http.RiakObject$LinkBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.