@Internal @Contract(threading=STATELESS) public final class ContentCodecRegistry extends Object
Entries are wired once at class-load time and exposed via an unmodifiable map. Built-in gzip/deflate are always available. Additional codecs are discovered reflectively:
Accept-Encoding unless an encoder is also
registered.| Modifier and Type | Method and Description |
|---|---|
static UnaryOperator<HttpEntity> |
decoder(ContentCoding coding) |
static UnaryOperator<HttpEntity> |
encoder(ContentCoding coding) |
static HttpEntity |
unwrap(ContentCoding c,
HttpEntity src) |
static HttpEntity |
wrap(ContentCoding c,
HttpEntity src) |
public static HttpEntity wrap(ContentCoding c, HttpEntity src)
public static HttpEntity unwrap(ContentCoding c, HttpEntity src)
public static UnaryOperator<HttpEntity> decoder(ContentCoding coding)
public static UnaryOperator<HttpEntity> encoder(ContentCoding coding)
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.