Module org.eclipse.jetty.rewrite
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 TypeMethodDescriptionorg.eclipse.jetty.http.HttpFieldReturns 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
protected Encoding(String encoding, String extension, org.eclipse.jetty.http.HttpField contentEncodingField) 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
-
hashCode
-
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
public org.eclipse.jetty.http.HttpField contentEncodingField()Returns the value of thecontentEncodingFieldrecord component.- Returns:
- the value of the
contentEncodingFieldrecord component
-