Package org.jclouds.azureblob.functions
Class ParseBlobPropertiesFromHeaders
- java.lang.Object
-
- org.jclouds.azureblob.functions.ParseBlobPropertiesFromHeaders
-
- All Implemented Interfaces:
com.google.common.base.Function<HttpResponse,MutableBlobProperties>
,Function<HttpResponse,MutableBlobProperties>
,InvocationContext<ParseBlobPropertiesFromHeaders>
public class ParseBlobPropertiesFromHeaders extends Object implements com.google.common.base.Function<HttpResponse,MutableBlobProperties>, InvocationContext<ParseBlobPropertiesFromHeaders>
This parses @{linkBlobProperties
from HTTP headers.
-
-
Constructor Summary
Constructors Constructor Description ParseBlobPropertiesFromHeaders(ParseSystemAndUserMetadataFromHeaders blobMetadataParser, BlobMetadataToBlobProperties blobToBlobProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MutableBlobProperties
apply(HttpResponse from)
parses the http response headers to create a newMutableBlobProperties
object.ParseBlobPropertiesFromHeaders
setContext(HttpRequest request)
-
-
-
Constructor Detail
-
ParseBlobPropertiesFromHeaders
@Inject public ParseBlobPropertiesFromHeaders(ParseSystemAndUserMetadataFromHeaders blobMetadataParser, BlobMetadataToBlobProperties blobToBlobProperties)
-
-
Method Detail
-
apply
public MutableBlobProperties apply(HttpResponse from)
parses the http response headers to create a newMutableBlobProperties
object.- Specified by:
apply
in interfacecom.google.common.base.Function<HttpResponse,MutableBlobProperties>
- Specified by:
apply
in interfaceFunction<HttpResponse,MutableBlobProperties>
-
setContext
public ParseBlobPropertiesFromHeaders setContext(HttpRequest request)
- Specified by:
setContext
in interfaceInvocationContext<ParseBlobPropertiesFromHeaders>
-
-