public class ParseObjectFromHeadersAndHttpContent extends Object implements com.google.common.base.Function<HttpResponse,AtmosObject>, InvocationContext<ParseObjectFromHeadersAndHttpContent>
ParseMetadataFromHeaders
Constructor and Description |
---|
ParseObjectFromHeadersAndHttpContent(ParseSystemMetadataFromHeaders systemMetadataParser,
ParseUserMetadataFromHeaders userMetadataParser,
AtmosObject.Factory objectProvider) |
Modifier and Type | Method and Description |
---|---|
AtmosObject |
apply(HttpResponse from)
First, calls
ParseSystemAndUserMetadataFromHeaders . |
ParseObjectFromHeadersAndHttpContent |
setContext(HttpRequest request) |
@Inject public ParseObjectFromHeadersAndHttpContent(ParseSystemMetadataFromHeaders systemMetadataParser, ParseUserMetadataFromHeaders userMetadataParser, AtmosObject.Factory objectProvider)
public AtmosObject apply(HttpResponse from)
ParseSystemAndUserMetadataFromHeaders
.
Then, sets the object size based on the Content-Length header and adds the content to the
AtmosObject
result.apply
in interface com.google.common.base.Function<HttpResponse,AtmosObject>
HttpException
public ParseObjectFromHeadersAndHttpContent setContext(HttpRequest request)
setContext
in interface InvocationContext<ParseObjectFromHeadersAndHttpContent>
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.