Package org.eclipse.jetty.http
Class QuotedCSV
java.lang.Object
org.eclipse.jetty.http.QuotedCSVParser
org.eclipse.jetty.http.QuotedCSV
- Direct Known Subclasses:
QuotedQualityCSV
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
Modifier and TypeFieldDescriptionstatic final String
ABNF from RFC 2616, RFC 822, and RFC 6455 specified characters requiring quoting.Fields inherited from class org.eclipse.jetty.http.QuotedCSVParser
_keepQuotes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isEmpty()
iterator()
static String
Join a list into Quoted CSV stringstatic void
join
(StringBuilder builder, List<String> values) Join a list into Quoted CSV StringBuilderstatic String
Join a list into Quoted CSV stringprotected void
parsedValueAndParams
(StringBuffer buffer) Called when a value and it's parameters has been parsedint
size()
toString()
Methods inherited from class org.eclipse.jetty.http.QuotedCSVParser
addValue, parsedParam, parsedValue, unquote
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
ABNF_REQUIRED_QUOTING
ABNF from RFC 2616, RFC 822, and RFC 6455 specified characters requiring quoting.- See Also:
-
_values
-
-
Constructor Details
-
QuotedCSV
-
QuotedCSV
-
-
Method Details
-
join
Join a list into Quoted CSV string- Parameters:
values
- A list of values- Returns:
- A Quoted Comma Separated Value list
-
join
Join a list into Quoted CSV string- Parameters:
values
- A list of values- Returns:
- A Quoted Comma Separated Value list
-
join
Join a list into Quoted CSV StringBuilder- Parameters:
builder
- A builder to join the list intovalues
- A list of values
-
parsedValueAndParams
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
-
iterator
-
toString
-