Class CompressionConfig
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.compression.server.CompressionConfig
- All Implemented Interfaces:
org.eclipse.jetty.util.component.LifeCycle
@ManagedObject("Compression Configuration")
public class CompressionConfig
extends org.eclipse.jetty.util.component.AbstractLifeCycle
Configuration for a specific compression behavior per matching path from the CompressionHandler.
Configuration is split between compression (of responses) and decompression (of requests).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe builder ofCompressionConfigimmutable instances.Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener, org.eclipse.jetty.util.component.AbstractLifeCycle.StopExceptionNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
org.eclipse.jetty.util.component.LifeCycle.Listener -
Field Summary
Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
FAILED, STARTED, STARTING, STOPPED, STOPPING -
Method Summary
Modifier and TypeMethodDescriptionstatic CompressionConfig.Builderbuilder()booleanisCompressMethodSupported(String method) booleanisCompressMimeTypeSupported(String mimeType) booleanisDecompressMethodSupported(String method) booleanisDecompressMimeTypeSupported(String mimeType) Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addEventListener, doStart, doStop, getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, setEventListeners, start, stop, toString
-
Method Details
-
builder
- Returns:
- a new
CompressionConfig.Builderto configure aCompressionConfiginstance
-
getCompressExcludeEncodings
-
getCompressExcludeMethods
-
getCompressExcludeMimeTypes
-
getCompressExcludePaths
-
getCompressIncludeEncodings
-
getCompressIncludeMethods
-
getCompressIncludeMimeTypes
-
getCompressIncludePaths
-
getCompressPreferredEncodings
-
getDecompressExcludeMethods
-
getDecompressExcludePaths
-
getDecompressIncludeMethods
-
getDecompressIncludePaths
-
isCompressMethodSupported
-
isCompressMimeTypeSupported
-
isDecompressMethodSupported
-
isDecompressMimeTypeSupported
-