org.jclouds.s3.functions
Class ParseObjectFromHeadersAndHttpContent

java.lang.Object
  extended by org.jclouds.s3.functions.ParseObjectFromHeadersAndHttpContent
All Implemented Interfaces:
com.google.common.base.Function<HttpResponse,S3Object>, InvocationContext<ParseObjectFromHeadersAndHttpContent>

public class ParseObjectFromHeadersAndHttpContent
extends Object
implements com.google.common.base.Function<HttpResponse,S3Object>, InvocationContext<ParseObjectFromHeadersAndHttpContent>

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

Author:
Adrian Cole
See Also:
ParseMetadataFromHeaders

Constructor Summary
ParseObjectFromHeadersAndHttpContent(ParseObjectMetadataFromHeaders metadataParser, S3Object.Factory objectProvider)
           
 
Method Summary
 S3Object apply(HttpResponse from)
           
 ParseObjectFromHeadersAndHttpContent 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

ParseObjectFromHeadersAndHttpContent

@Inject
public ParseObjectFromHeadersAndHttpContent(ParseObjectMetadataFromHeaders metadataParser,
                                                   S3Object.Factory objectProvider)
Method Detail

apply

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

setContext

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


Copyright © 2009-2011 jclouds. All Rights Reserved.