Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.yammer.dropwizard.config;
 
 
 import java.util.Set;
 
import static com.google.common.base.Preconditions.checkNotNull;
@SuppressWarnings("UnusedDeclaration")
public class GzipConfiguration {
    private boolean enabled = true;
    @NotNull
    private Size minimumEntitySize = Size.bytes(256);
    private Size bufferSize = Size.kilobytes(8);
    private ImmutableSet<StringexcludedUserAgents = ImmutableSet.of();
    private ImmutableSet<StringcompressedMimeTypes = ImmutableSet.of();
    public boolean isEnabled() {
        return ;
    }
    public void setEnabled(boolean enabled) {
        this. = enabled;
    }
    public Size getMinimumEntitySize() {
        return ;
    }
    public void setMinimumEntitySize(Size size) {
        this. = checkNotNull(size);
    }
    public Size getBufferSize() {
        return ;
    }
    public void setBufferSize(Size size) {
        this. = checkNotNull(size);
    }
        return ;
    }
    public void setExcludedUserAgents(Set<StringuserAgents) {
        this. = ImmutableSet.copyOf(userAgents);
    }
        return ;
    }
    public void setCompressedMimeTypes(Set<StringmimeTypes) {
        this. = ImmutableSet.copyOf(mimeTypes);
    }
New to GrepCode? Check out our FAQ X