org.jclouds.azureblob.functions
Class ParseBlobFromHeadersAndHttpContent

java.lang.Object
  extended by org.jclouds.azureblob.functions.ParseBlobFromHeadersAndHttpContent
All Implemented Interfaces:
com.google.common.base.Function<HttpResponse,AzureBlob>, InvocationContext<ParseBlobFromHeadersAndHttpContent>

@Singleton
public class ParseBlobFromHeadersAndHttpContent
extends Object
implements com.google.common.base.Function<HttpResponse,AzureBlob>, InvocationContext<ParseBlobFromHeadersAndHttpContent>

Parses response headers and creates a new AzureBlob from them and the HTTP content.

Author:
Adrian Cole
See Also:
ParseMetadataFromHeaders

Constructor Summary
ParseBlobFromHeadersAndHttpContent(ParseBlobPropertiesFromHeaders metadataParser, AzureBlob.Factory blobFactory)
           
 
Method Summary
 AzureBlob apply(HttpResponse from)
           
 ParseBlobFromHeadersAndHttpContent 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

ParseBlobFromHeadersAndHttpContent

@Inject
public ParseBlobFromHeadersAndHttpContent(ParseBlobPropertiesFromHeaders metadataParser,
                                                 AzureBlob.Factory blobFactory)
Method Detail

apply

public AzureBlob apply(HttpResponse from)
Specified by:
apply in interface com.google.common.base.Function<HttpResponse,AzureBlob>

setContext

public ParseBlobFromHeadersAndHttpContent setContext(HttpRequest request)
Specified by:
setContext in interface InvocationContext<ParseBlobFromHeadersAndHttpContent>


Copyright © 2009-2011 jclouds. All Rights Reserved.