org.jclouds.openstack.swift.functions
Class ParseObjectInfoFromHeaders

java.lang.Object
  extended by org.jclouds.openstack.swift.functions.ParseObjectInfoFromHeaders
All Implemented Interfaces:
com.google.common.base.Function<HttpResponse,MutableObjectInfoWithMetadata>, InvocationContext<ParseObjectInfoFromHeaders>

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

This parses @{link MutableObjectInfoWithMetadata from HTTP headers.

Author:
Adrian Cole

Constructor Summary
ParseObjectInfoFromHeaders(ParseSystemAndUserMetadataFromHeaders blobMetadataParser, ResourceToObjectInfo blobToObjectInfo)
           
 
Method Summary
 MutableObjectInfoWithMetadata apply(HttpResponse from)
          parses the http response headers to create a new MutableObjectInfoWithMetadata object.
 ParseObjectInfoFromHeaders 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

ParseObjectInfoFromHeaders

@Inject
public ParseObjectInfoFromHeaders(ParseSystemAndUserMetadataFromHeaders blobMetadataParser,
                                         ResourceToObjectInfo blobToObjectInfo)
Method Detail

apply

public MutableObjectInfoWithMetadata apply(HttpResponse from)
parses the http response headers to create a new MutableObjectInfoWithMetadata object.

Specified by:
apply in interface com.google.common.base.Function<HttpResponse,MutableObjectInfoWithMetadata>

setContext

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


Copyright © 2009-2012 jclouds. All Rights Reserved.