Class CompressedContentFormat


  • @Deprecated(since="2021-05-27")
    public class CompressedContentFormat
    extends java.lang.Object
    Deprecated.
    • Field Detail

      • ETAG_SEPARATOR

        public static final java.lang.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 of W/"28c772d6" is W/"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.
    • Constructor Detail

      • CompressedContentFormat

        public CompressedContentFormat​(java.lang.String encoding,
                                       java.lang.String extension)
        Deprecated.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Deprecated.
        Overrides:
        equals in class java.lang.Object
      • getEncoding

        public java.lang.String getEncoding()
        Deprecated.
      • getExtension

        public java.lang.String getExtension()
        Deprecated.
      • getEtagSuffix

        public java.lang.String getEtagSuffix()
        Deprecated.
      • getContentEncoding

        public HttpField getContentEncoding()
        Deprecated.
      • etag

        public java.lang.String etag​(java.lang.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.
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class java.lang.Object
      • tagEquals

        public static boolean tagEquals​(java.lang.String etag,
                                        java.lang.String etagWithSuffix)
        Deprecated.
        Check etags for equality, accounting for quoting and compression suffixes.
        Parameters:
        etag - An etag without a compression suffix
        etagWithSuffix - An etag optionally with a compression suffix.
        Returns:
        True if the tags are equal.
      • stripSuffixes

        public java.lang.String stripSuffixes​(java.lang.String etagsList)
        Deprecated.
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object