public final class CompressionNegotiator extends ServerStreamFeatureNegotiator<CompressionFeature>
Negotiates stream compression by advertising support for it and later compressing the stream.
| Constructor and Description |
|---|
CompressionNegotiator(TcpBinding connection,
java.lang.String... method)
Constructs the compression negotiator.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canProcess(java.lang.Object element) |
CompressionFeature |
createStreamFeature()
Creates a concrete stream feature for inclusion in the stream features element after sending the response stream header.
|
StreamNegotiationResult |
processNegotiation(java.lang.Object element)
Processes an element.
|
getFeatureClasspublic CompressionNegotiator(TcpBinding connection, java.lang.String... method)
Constructs the compression negotiator.
connection - The connection.method - The method.public final CompressionFeature createStreamFeature()
ServerStreamFeatureNegotiatorCreates a concrete stream feature for inclusion in the stream features element after sending the response stream header.
createStreamFeature in class ServerStreamFeatureNegotiator<CompressionFeature>public final StreamNegotiationResult processNegotiation(java.lang.Object element)
ServerStreamFeatureNegotiatorProcesses an element.
processNegotiation in interface StreamFeatureNegotiator<CompressionFeature>processNegotiation in class ServerStreamFeatureNegotiator<CompressionFeature>element - The element.public final boolean canProcess(java.lang.Object element)
Copyright © 2014–2018 XMPP.rocks. All rights reserved.