Package com.blackrook.small.jetty
Class DefaultSmallJettyConfiguration.GZipConfigurationBuilder
java.lang.Object
com.blackrook.small.jetty.DefaultSmallJettyConfiguration.GZipConfigurationBuilder
- All Implemented Interfaces:
SmallJettyConfiguration.GZipConfiguration
- Enclosing class:
- DefaultSmallJettyConfiguration
public static class DefaultSmallJettyConfiguration.GZipConfigurationBuilder extends Object implements SmallJettyConfiguration.GZipConfiguration
-
Method Summary
-
Method Details
-
gzip
-
getBufferSize
public int getBufferSize()- Specified by:
getBufferSize
in interfaceSmallJettyConfiguration.GZipConfiguration
- Returns:
- the GZip buffer size in bytes.
-
getCompressionLevel
public int getCompressionLevel()- Specified by:
getCompressionLevel
in interfaceSmallJettyConfiguration.GZipConfiguration
- Returns:
- the GZip compression level.
-
getMinGzipSize
public int getMinGzipSize()- Specified by:
getMinGzipSize
in interfaceSmallJettyConfiguration.GZipConfiguration
- Returns:
- the minimum size in bytes that a response needs to be before compression is considered.
-
getExcludedAgentPatterns
- Specified by:
getExcludedAgentPatterns
in interfaceSmallJettyConfiguration.GZipConfiguration
- Returns:
- the list of incoming agent patterns excluded from compression.
-
getExcludedHTTPMethods
- Specified by:
getExcludedHTTPMethods
in interfaceSmallJettyConfiguration.GZipConfiguration
- Returns:
- the list of HTTP methods excluded from compression.
-
getExcludedMimeTypes
- Specified by:
getExcludedMimeTypes
in interfaceSmallJettyConfiguration.GZipConfiguration
- Returns:
- the list of MIME-Types excluded from compression.
-
getExcludedPaths
- Specified by:
getExcludedPaths
in interfaceSmallJettyConfiguration.GZipConfiguration
- Returns:
- the list of excluded URI path patterns from compression.
-
getIncludedAgentPatterns
- Specified by:
getIncludedAgentPatterns
in interfaceSmallJettyConfiguration.GZipConfiguration
- Returns:
- the list of incoming agent patterns included from compression.
-
getIncludedHTTPMethods
- Specified by:
getIncludedHTTPMethods
in interfaceSmallJettyConfiguration.GZipConfiguration
- Returns:
- the list of HTTP methods included from compression.
-
getIncludedMimeTypes
- Specified by:
getIncludedMimeTypes
in interfaceSmallJettyConfiguration.GZipConfiguration
- Returns:
- the list of MIME-Types included from compression.
-
getIncludedPaths
- Specified by:
getIncludedPaths
in interfaceSmallJettyConfiguration.GZipConfiguration
- Returns:
- the list of included URI path patterns from compression.
-
setBufferSize
- Parameters:
value
- the value to set.- Returns:
- this builder, for chaining.
- See Also:
getBufferSize()
-
setCompressionLevel
- Parameters:
value
- the value to set.- Returns:
- this builder, for chaining.
- See Also:
getCompressionLevel()
-
setMinGzipSize
- Parameters:
value
- the value to set.- Returns:
- this builder, for chaining.
- See Also:
getMinGzipSize()
-
setExcludedAgentPatterns
public DefaultSmallJettyConfiguration.GZipConfigurationBuilder setExcludedAgentPatterns(String... value)- Parameters:
value
- the value to set.- Returns:
- this builder, for chaining.
- See Also:
getExcludedAgentPatterns()
-
setExcludedHTTPMethods
public DefaultSmallJettyConfiguration.GZipConfigurationBuilder setExcludedHTTPMethods(String... value)- Parameters:
value
- the value to set.- Returns:
- this builder, for chaining.
- See Also:
getExcludedHTTPMethods()
-
setExcludedMimeTypes
public DefaultSmallJettyConfiguration.GZipConfigurationBuilder setExcludedMimeTypes(String... value)- Parameters:
value
- the value to set.- Returns:
- this builder, for chaining.
- See Also:
getExcludedMimeTypes()
-
setExcludedPaths
- Parameters:
value
- the value to set.- Returns:
- this builder, for chaining.
- See Also:
getExcludedPaths()
-
setIncludedAgentPatterns
public DefaultSmallJettyConfiguration.GZipConfigurationBuilder setIncludedAgentPatterns(String... value)- Parameters:
value
- the value to set.- Returns:
- this builder, for chaining.
- See Also:
getIncludedAgentPatterns()
-
setIncludedHTTPMethods
public DefaultSmallJettyConfiguration.GZipConfigurationBuilder setIncludedHTTPMethods(String... value)- Parameters:
value
- the value to set.- Returns:
- this builder, for chaining.
- See Also:
getIncludedHTTPMethods()
-
setIncludedMimeTypes
public DefaultSmallJettyConfiguration.GZipConfigurationBuilder setIncludedMimeTypes(String... value)- Parameters:
value
- the value to set.- Returns:
- this builder, for chaining.
- See Also:
getIncludedMimeTypes()
-
setIncludedPaths
- Parameters:
value
- the value to set.- Returns:
- this builder, for chaining.
- See Also:
getIncludedPaths()
-