Record Class RewriteEncodingRule.Encoding
java.lang.Object
java.lang.Record
org.eclipse.jetty.rewrite.handler.RewriteEncodingRule.Encoding
- Enclosing class:
- RewriteEncodingRule
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontentEncodingFieldrecord component.encoding()Returns the value of theencodingrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theextensionrecord component.final inthashCode()Returns a hash code value for this object.static RewriteEncodingRule.Encodingfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Encoding
Creates an instance of aEncodingrecord class.- Parameters:
encoding- the value for theencodingrecord componentextension- the value for theextensionrecord componentcontentEncodingField- the value for thecontentEncodingFieldrecord component
-
-
Method Details
-
of
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
encoding
Returns the value of theencodingrecord component.- Returns:
- the value of the
encodingrecord component
-
extension
Returns the value of theextensionrecord component.- Returns:
- the value of the
extensionrecord component
-
contentEncodingField
Returns the value of thecontentEncodingFieldrecord component.- Returns:
- the value of the
contentEncodingFieldrecord component
-