Package org.jclouds.azureblob.functions
Class ParseContainerPropertiesFromHeaders
- java.lang.Object
-
- org.jclouds.azureblob.functions.ParseContainerPropertiesFromHeaders
-
- All Implemented Interfaces:
com.google.common.base.Function<HttpResponse,ContainerProperties>
,Function<HttpResponse,ContainerProperties>
,InvocationContext<ParseContainerPropertiesFromHeaders>
public class ParseContainerPropertiesFromHeaders extends Object implements com.google.common.base.Function<HttpResponse,ContainerProperties>, InvocationContext<ParseContainerPropertiesFromHeaders>
This parses @{linkorg.jclouds.azureblob.domain.ListableContainerProperties
from HTTP headers.
-
-
Constructor Summary
Constructors Constructor Description ParseContainerPropertiesFromHeaders(DateService dateParser, String metadataPrefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addETagTo(HttpResponse from, MutableContainerPropertiesWithMetadata metadata)
ContainerProperties
apply(HttpResponse from)
ParseContainerPropertiesFromHeaders
setContext(HttpRequest request)
-
-
-
Constructor Detail
-
ParseContainerPropertiesFromHeaders
@Inject public ParseContainerPropertiesFromHeaders(DateService dateParser, @Named("jclouds.blobstore.metaprefix") String metadataPrefix)
-
-
Method Detail
-
apply
public ContainerProperties apply(HttpResponse from)
- Specified by:
apply
in interfacecom.google.common.base.Function<HttpResponse,ContainerProperties>
- Specified by:
apply
in interfaceFunction<HttpResponse,ContainerProperties>
-
addETagTo
protected void addETagTo(HttpResponse from, MutableContainerPropertiesWithMetadata metadata)
-
setContext
public ParseContainerPropertiesFromHeaders setContext(HttpRequest request)
- Specified by:
setContext
in interfaceInvocationContext<ParseContainerPropertiesFromHeaders>
-
-