Class QuotedQualityCSV
java.lang.Object
org.eclipse.jetty.http.QuotedCSVParser
org.eclipse.jetty.http.QuotedCSV
org.eclipse.jetty.http.QuotedQualityCSV
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassA quality value, that is a value with an associated weight parameter, as defined in RFC 9110. - 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic ToIntFunction<String> Lambda to apply a most specific MIME encoding secondary ordering.Fields inherited from class QuotedCSVParser
_keepQuotes, DELIMITERS, LIST_TOKENIZER - 
Constructor Summary
ConstructorsConstructorDescriptionSorts values with equal quality according to the length of the value String.QuotedQualityCSV(String[] preferredOrder) Sorts values with equal quality according to given order.QuotedQualityCSV(ToIntFunction<String> secondaryOrdering) Orders values with equal quality with the given function.QuotedQualityCSV(List<String> preferredOrder) Sorts values with equal quality according to given order. - 
Method Summary
Modifier and TypeMethodDescriptioniterator()protected voidparsedParam(StringBuilder buffer, int valueLength, int paramName, int paramValue) Called when a parameter has been parsedprotected voidparsedValue(StringBuilder buffer) Called when a value has been parsed (prior to any parameters)protected voidparsedValueAndParams(StringBuilder buffer) Called when a value and it's parameters has been parsedprotected voidsort()Methods inherited from class QuotedCSVParser
addValue, onComplianceViolation, quote, quoteIfNeeded, unquoteMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator 
- 
Field Details
- 
MOST_SPECIFIC_MIME_ORDERING
Lambda to apply a most specific MIME encoding secondary ordering.- See Also:
 
 
 - 
 - 
Constructor Details
- 
QuotedQualityCSV
public QuotedQualityCSV()Sorts values with equal quality according to the length of the value String. - 
QuotedQualityCSV
Sorts values with equal quality according to given order.- Parameters:
 preferredOrder- Array indicating the preferred order of known values
 - 
QuotedQualityCSV
 - 
QuotedQualityCSV
Orders values with equal quality with the given function.- Parameters:
 secondaryOrdering- Function to apply an ordering other than specified by quality, highest values are sorted first.
 
 - 
 - 
Method Details
- 
parsedValueAndParams
Description copied from class:QuotedCSVParserCalled when a value and it's parameters has been parsed- Overrides:
 parsedValueAndParamsin classQuotedCSV- Parameters:
 buffer- Containing the trimmed value and parameters
 - 
parsedValue
Description copied from class:QuotedCSVParserCalled when a value has been parsed (prior to any parameters)- Overrides:
 parsedValuein classQuotedCSVParser- Parameters:
 buffer- Containing the trimmed value, which may be mutated
 - 
parsedParam
Description copied from class:QuotedCSVParserCalled when a parameter has been parsed- Overrides:
 parsedParamin classQuotedCSV- Parameters:
 buffer- Containing the trimmed value and all parameters, which may be mutatedvalueLength- The length of the valueparamName- The index of the start of the parameter just parsedparamValue- The index of the start of the parameter value just parsed, or -1
 - 
getValues
 - 
iterator
 - 
sort
protected void sort() - 
getQualityValues
 
 -