public class BindMetadataToHeaders extends Object implements Binder
>> X-Account-Meta-MyDelete1: foo >> X-Account-Meta-MyDelete2: barresults in:
<< X-Account-Meta-Mydelete1: foo << X-Account-Meta-Mydelete2: bar
Modifier and Type | Class and Description |
---|---|
static class |
BindMetadataToHeaders.BindAccountMetadataToHeaders |
static class |
BindMetadataToHeaders.BindContainerMetadataToHeaders |
static class |
BindMetadataToHeaders.BindObjectMetadataToHeaders |
static class |
BindMetadataToHeaders.BindRemoveAccountMetadataToHeaders |
static class |
BindMetadataToHeaders.BindRemoveContainerMetadataToHeaders |
static class |
BindMetadataToHeaders.BindRemoveObjectMetadataToHeaders |
static class |
BindMetadataToHeaders.ForRemoval |
Constructor and Description |
---|
BindMetadataToHeaders(String metadataPrefix) |
Modifier and Type | Method and Description |
---|---|
<R extends HttpRequest> |
bindToRequest(R request,
Object input) |
protected void |
putMetadata(com.google.common.collect.ImmutableMultimap.Builder<String,String> headers,
String key,
String value) |
com.google.common.collect.ImmutableMultimap<String,String> |
toHeaders(Map<String,String> metadata) |
public BindMetadataToHeaders(String metadataPrefix)
public <R extends HttpRequest> R bindToRequest(R request, Object input)
bindToRequest
in interface Binder
protected void putMetadata(com.google.common.collect.ImmutableMultimap.Builder<String,String> headers, String key, String value)
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.