Package org.eclipse.jetty.util
Class Fields.Field
java.lang.Object
org.eclipse.jetty.util.Fields.Field
- Enclosing class:
Fields
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 -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.boolean
equals
(Fields.Field that, boolean caseSensitive) Deprecated.getName()
Deprecated.getValue()
Deprecated.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.Deprecated.int
hashCode()
Deprecated.boolean
Deprecated.toString()
Deprecated.
-
Constructor Details
-
Field
Deprecated.
-
-
Method Details
-
equals
Deprecated. -
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
getName
Deprecated.- Returns:
- the field's name
-
getValue
Deprecated.- Returns:
- the first field's value
-
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:
NumberFormatException
- if the conversion fails
-
getValues
Deprecated.- Returns:
- the field's values
-
hasMultipleValues
public boolean hasMultipleValues()Deprecated.- Returns:
- whether the field has multiple values
-
toString
Deprecated.
-