org.jclouds.azureblob.functions
Class ParseContainerPropertiesFromHeaders

java.lang.Object
  extended by 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

Constructor Summary
ParseContainerPropertiesFromHeaders(DateService dateParser, String metadataPrefix)
           
 
Method Summary
protected  void addETagTo(HttpResponse from, MutableContainerPropertiesWithMetadata metadata)
           
 ContainerProperties apply(HttpResponse from)
           
 ParseContainerPropertiesFromHeaders setContext(HttpRequest request)
           
 
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
 

Constructor Detail

ParseContainerPropertiesFromHeaders

@Inject
public ParseContainerPropertiesFromHeaders(DateService dateParser,
                                                  @Named(value="jclouds.blobstore.metaprefix")
                                                  String metadataPrefix)
Method Detail

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-2011 jclouds. All Rights Reserved.