Example usage for io.netty.handler.codec.http HttpContentCompressor subclass-usage

List of usage examples for io.netty.handler.codec.http HttpContentCompressor subclass-usage

Introduction

In this page you can find the example usage for io.netty.handler.codec.http HttpContentCompressor subclass-usage.

Usage

From source file io.advantageous.conekt.http.impl.HttpChunkContentCompressor.java

/**
 * @author <a href="mailto:nmaurer@redhat.com">Norman Maurer</a>
 */
final class HttpChunkContentCompressor extends HttpContentCompressor {

    @Override

From source file io.jsync.http.impl.HttpChunkContentCompressor.java

/**
 * @author <a href="mailto:nmaurer@redhat.com">Norman Maurer</a>
 */
final class HttpChunkContentCompressor extends HttpContentCompressor {

    @Override

From source file io.vertx.core.http.impl.HttpChunkContentCompressor.java

/**
 * @author <a href="mailto:nmaurer@redhat.com">Norman Maurer</a>
 */
final class HttpChunkContentCompressor extends HttpContentCompressor {

    @Override

From source file io.vertx.core.http.impl.WisdomHttpContentCompressor.java

/**
 * Extends the {@link HttpContentCompressor} to check whether or not the compression is disabled.
 * If so, it skip the compression step.
 *
 * @author <a href="http://escoffier.me">Clement Escoffier</a>
 */

From source file org.glowroot.local.ui.ConditionalHttpContentCompressor.java

class ConditionalHttpContentCompressor extends HttpContentCompressor {

    @Override
    protected @Nullable Result beginEncode(HttpResponse response, String acceptEncoding) throws Exception {
        String contentType = response.headers().get(CONTENT_TYPE);
        if (contentType != null && contentType.equals(MediaType.ZIP.toString())) {

From source file org.glowroot.ui.ConditionalHttpContentCompressor.java

class ConditionalHttpContentCompressor extends HttpContentCompressor {

    @Override
    protected @Nullable Result beginEncode(HttpResponse response, String acceptEncoding) throws Exception {
        String contentType = response.headers().getAsString(HttpHeaderNames.CONTENT_TYPE);
        if (contentType != null && contentType.equals(MediaType.ZIP.toString())) {

From source file org.restnext.server.CustomHttpContentCompressor.java

public class CustomHttpContentCompressor extends HttpContentCompressor {

    private final int compressionContentLength;
    private final MediaType[] compressibleTypes;

    private boolean skipCompression;

From source file org.vertx.java.core.http.impl.HttpChunkContentCompressor.java

/**
 * @author <a href="mailto:nmaurer@redhat.com">Norman Maurer</a>
 */
final class HttpChunkContentCompressor extends HttpContentCompressor {

    @Override

From source file org.vertx.java.core.http.impl.WisdomHttpContentCompressor.java

/**
 * Compresses an {@link HttpMessage} and an {@link HttpContent} in {@code gzip} or
 * {@code deflate} encoding while respecting the {@code "Accept-Encoding"} header.
 * If there is no matching encoding, no compression is done.  For more
 * information on how this handler modifies the message, please refer to
 * {@link HttpContentEncoder}.

From source file ratpack.file.internal.SmartHttpContentCompressor.java

/**
 * Adapted from https://github.com/scireum/sirius/blob/develop/web/src/sirius/web/http/SmartHttpContentCompressor.java
 *
 * Credit to Andreas Haufler (aha@scireum.de).
 */
public class SmartHttpContentCompressor extends HttpContentCompressor {