public class DeflateDecompressingEntity extends DecompressingEntity
HttpEntityWrapper负责处理放气内容编码响应。
在RFC2616术语中, deflate是指zlib中定义的zlib流。
一些服务器实现误解了RFC2616,这意味着应该使用deflate中定义的deflate流(或者也许这样做,因为这是IE的行为?)。
这是令人困惑的是deflate在HTTP 1.1意味着zlib流,而不是deflate流。
我们在这里处理这两种类型,因为这是互联网上看到的。
道德 - 喜欢gzip !
GzipDecompressingEntity
wrappedEntity| Constructor and Description |
|---|
DeflateDecompressingEntity(HttpEntity entity)
创建一个新的 DeflateDecompressingEntity ,它将包装指定的HttpEntity 。
|
getContent, getContentEncoding, getContentLength, writeToconsumeContent, getContentType, isChunked, isRepeatable, isStreamingpublic DeflateDecompressingEntity(HttpEntity entity)
DeflateDecompressingEntity ,它将包装指定的HttpEntity 。
entity - a non-null
HttpEntity to be wrapped
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.