Package org.eclipse.jetty.util
Class Fields.Field
- java.lang.Object
-
- org.eclipse.jetty.util.Fields.Field
-
- Enclosing class:
- Fields
@Deprecated(since="2021-05-27") public static class Fields.Field extends java.lang.Object
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.A named list of string values.
The name is case-sensitive and there must be at least one value.
-
-
Constructor Summary
Constructors Constructor Description Field(java.lang.String name, java.lang.String value)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Deprecated.boolean
equals(Fields.Field that, boolean caseSensitive)
Deprecated.java.lang.String
getName()
Deprecated.java.lang.String
getValue()
Deprecated.java.lang.Integer
getValueAsInt()
Deprecated.Attempts to convert the result ofgetValue()
to an integer, returning it if the conversion is successful; returns null if the result ofgetValue()
is null.java.util.List<java.lang.String>
getValues()
Deprecated.int
hashCode()
Deprecated.boolean
hasMultipleValues()
Deprecated.java.lang.String
toString()
Deprecated.
-
-
-
Method Detail
-
equals
public boolean equals(Fields.Field that, boolean caseSensitive)
Deprecated.
-
equals
public boolean equals(java.lang.Object obj)
Deprecated.- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCode
in classjava.lang.Object
-
getName
public java.lang.String getName()
Deprecated.- Returns:
- the field's name
-
getValue
public java.lang.String getValue()
Deprecated.- Returns:
- the first field's value
-
getValueAsInt
public java.lang.Integer getValueAsInt()
Deprecated.Attempts to convert the result of
getValue()
to an integer, returning it if the conversion is successful; returns null if the result ofgetValue()
is null.- Returns:
- the result of
getValue()
converted to an integer, or null - Throws:
java.lang.NumberFormatException
- if the conversion fails
-
getValues
public java.util.List<java.lang.String> getValues()
Deprecated.- Returns:
- the field's values
-
hasMultipleValues
public boolean hasMultipleValues()
Deprecated.- Returns:
- whether the field has multiple values
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
-