Package org.eclipse.jetty.http
Class CompressedContentFormat
- java.lang.Object
-
- org.eclipse.jetty.http.CompressedContentFormat
-
@Deprecated(since="2021-05-27") public class CompressedContentFormat extends Object
Deprecated.
-
-
Field Summary
Fields Modifier and Type Field Description static CompressedContentFormatBRDeprecated.static StringETAG_SEPARATORDeprecated.The separator within an etag used to indicate a compressed variant.static CompressedContentFormatGZIPDeprecated.static CompressedContentFormat[]NONEDeprecated.
-
Constructor Summary
Constructors Constructor Description CompressedContentFormat(String encoding, String extension)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object o)Deprecated.Stringetag(String etag)Deprecated.Get an etag with suffix that represents this compressed type.HttpFieldgetContentEncoding()Deprecated.StringgetEncoding()Deprecated.StringgetEtagSuffix()Deprecated.StringgetExtension()Deprecated.inthashCode()Deprecated.StringstripSuffixes(String etagsList)Deprecated.static booleantagEquals(String etag, String etagWithSuffix)Deprecated.Check etags for equality, accounting for quoting and compression suffixes.StringtoString()Deprecated.
-
-
-
Field Detail
-
ETAG_SEPARATOR
public static final String ETAG_SEPARATOR
Deprecated.The separator within an etag used to indicate a compressed variant. By default the separator is "--" So etag for compressed resource that normally has an etag ofW/"28c772d6"isW/"28c772d6--gzip". The separator may be changed by the "org.eclipse.jetty.http.CompressedContentFormat.ETAG_SEPARATOR" System property. If changed, it should be changed to a string that will not be found in a normal etag or at least is very unlikely to be a substring of a normal etag.
-
GZIP
public static final CompressedContentFormat GZIP
Deprecated.
-
BR
public static final CompressedContentFormat BR
Deprecated.
-
NONE
public static final CompressedContentFormat[] NONE
Deprecated.
-
-
Method Detail
-
getEncoding
public String getEncoding()
Deprecated.
-
getExtension
public String getExtension()
Deprecated.
-
getEtagSuffix
public String getEtagSuffix()
Deprecated.
-
getContentEncoding
public HttpField getContentEncoding()
Deprecated.
-
etag
public String etag(String etag)
Deprecated.Get an etag with suffix that represents this compressed type.- Parameters:
etag- An etag- Returns:
- An etag with compression suffix, or the etag itself if no suffix is configured.
-
tagEquals
public static boolean tagEquals(String etag, String etagWithSuffix)
Deprecated.Check etags for equality, accounting for quoting and compression suffixes.- Parameters:
etag- An etag without a compression suffixetagWithSuffix- An etag optionally with a compression suffix.- Returns:
- True if the tags are equal.
-
-