org.jclouds.openstack.swift.functions
Class ParseObjectInfoFromHeaders
java.lang.Object
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
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 |
ParseObjectInfoFromHeaders
@Inject
public ParseObjectInfoFromHeaders(ParseSystemAndUserMetadataFromHeaders blobMetadataParser,
ResourceToObjectInfo blobToObjectInfo)
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.