public class AllowedContentEncodings extends Object implements ConduitWrapper<org.xnio.conduits.StreamSinkConduit>
Modifier and Type | Field and Description |
---|---|
static AttachmentKey<AllowedContentEncodings> | ATTACHMENT_KEY |
Constructor and Description |
---|
AllowedContentEncodings(HttpServerExchange exchange, List<io.undertow.server.handlers.encoding.EncodingMapping> encodings) |
Modifier and Type | Method and Description |
---|---|
String | getCurrentContentEncoding() |
io.undertow.server.handlers.encoding.EncodingMapping | getEncoding() |
boolean | isIdentity() |
boolean | isNoEncodingsAllowed() If the list of allowed encodings was empty then it means that no encodings were allowed, and identity was explicitly prohibited with a q value of 0. |
org.xnio.conduits.StreamSinkConduit | wrap(ConduitFactory<org.xnio.conduits.StreamSinkConduit> factory, HttpServerExchange exchange) Wrap the conduit. |
public static final AttachmentKey<AllowedContentEncodings> ATTACHMENT_KEY
public AllowedContentEncodings(HttpServerExchange exchange, List<io.undertow.server.handlers.encoding.EncodingMapping> encodings)
public String getCurrentContentEncoding()
public io.undertow.server.handlers.encoding.EncodingMapping getEncoding()
public boolean isIdentity()
public boolean isNoEncodingsAllowed()
public org.xnio.conduits.StreamSinkConduit wrap(ConduitFactory<org.xnio.conduits.StreamSinkConduit> factory, HttpServerExchange exchange)
ConduitWrapper
null
. If no wrapping is desired, the original conduit should be returned.wrap
in interface ConduitWrapper<org.xnio.conduits.StreamSinkConduit>
factory
- the original conduitexchange
- the in-flight HTTP exchangeCopyright © 2020 JBoss by Red Hat. All rights reserved.