org.jclouds.azureblob.functions
Class ParseContainerPropertiesFromHeaders
java.lang.Object
org.jclouds.azureblob.functions.ParseContainerPropertiesFromHeaders
- All Implemented Interfaces:
- com.google.common.base.Function<HttpResponse,ContainerProperties>, InvocationContext<ParseContainerPropertiesFromHeaders>
public class ParseContainerPropertiesFromHeaders
- extends Object
- implements com.google.common.base.Function<HttpResponse,ContainerProperties>, InvocationContext<ParseContainerPropertiesFromHeaders>
This parses @{link org.jclouds.azureblob.domain.ListableContainerProperties
from
HTTP headers.
- Author:
- Adrian Cole
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.google.common.base.Function |
equals |
ParseContainerPropertiesFromHeaders
@Inject
public ParseContainerPropertiesFromHeaders(DateService dateParser,
@Named(value="jclouds.blobstore.metaprefix")
String metadataPrefix)
apply
public ContainerProperties apply(HttpResponse from)
- Specified by:
apply
in interface com.google.common.base.Function<HttpResponse,ContainerProperties>
addETagTo
protected void addETagTo(HttpResponse from,
MutableContainerPropertiesWithMetadata metadata)
setContext
public ParseContainerPropertiesFromHeaders setContext(HttpRequest request)
- Specified by:
setContext
in interface InvocationContext<ParseContainerPropertiesFromHeaders>
Copyright © 2009-2012 jclouds. All Rights Reserved.