public class AllowedContentEncodings extends Object implements ConduitWrapper<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.
|
StreamSinkConduit |
wrap(ConduitFactory<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 StreamSinkConduit wrap(ConduitFactory<StreamSinkConduit> factory, HttpServerExchange exchange)
ConduitWrapper
null
. If no wrapping is desired, the original
conduit should be returned.wrap
in interface ConduitWrapper<StreamSinkConduit>
factory
- the original conduitexchange
- the in-flight HTTP exchangeCopyright © 2019 JBoss by Red Hat. All rights reserved.