Package org.eclipse.jetty.http
Class QuotedCSV
- java.lang.Object
-
- org.eclipse.jetty.http.QuotedCSVParser
-
- org.eclipse.jetty.http.QuotedCSV
-
- All Implemented Interfaces:
java.lang.Iterable<java.lang.String>
- Direct Known Subclasses:
QuotedQualityCSV
public class QuotedCSV extends QuotedCSVParser implements java.lang.Iterable<java.lang.String>
Implements a quoted comma separated list of values in accordance with RFC7230. OWS is removed and quoted characters ignored for parsing.- See Also:
- "https://tools.ietf.org/html/rfc7230#section-3.2.6", "https://tools.ietf.org/html/rfc7230#section-7"
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<java.lang.String>
_values
-
Fields inherited from class org.eclipse.jetty.http.QuotedCSVParser
_keepQuotes
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
getValues()
boolean
isEmpty()
java.util.Iterator<java.lang.String>
iterator()
protected void
parsedValueAndParams(java.lang.StringBuffer buffer)
Called when a value and it's parameters has been parsedint
size()
java.lang.String
toString()
-
Methods inherited from class org.eclipse.jetty.http.QuotedCSVParser
addValue, parsedParam, parsedValue, unquote
-
-
-
-
Method Detail
-
parsedValueAndParams
protected void parsedValueAndParams(java.lang.StringBuffer buffer)
Description copied from class:QuotedCSVParser
Called when a value and it's parameters has been parsed- Overrides:
parsedValueAndParams
in classQuotedCSVParser
- Parameters:
buffer
- Containing the trimmed value and parameters
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
getValues
public java.util.List<java.lang.String> getValues()
-
iterator
public java.util.Iterator<java.lang.String> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<java.lang.String>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-