Class PreferParser
java.lang.Object
org.apache.olingo.server.core.prefer.PreferParser
Parses the values of Prefer HTTP header fields.
See RFC 7240 for details; there the following grammar is defined:
Prefer = "Prefer" ":" 1#preference preference = token [ BWS "=" BWS word ] *( OWS ";" [ OWS parameter ] ) parameter = token [ BWS "=" BWS word ] token = 1*tchar tchar = "!" / "#" / "$" / "%" / "&" / "'" / "*" / "+" / "-" / "." / "^" / "_" / "`" / "|" / "~" / DIGIT / ALPHA word = token / quoted-string quoted-string = DQUOTE *( qdtext / quoted-pair ) DQUOTE qdtext = HTAB / SP / %x21 / %x23-5B / %x5D-7E / %x80-FF quoted-pair = "\" ( HTAB / SP / %x21-7E / %x80-FF ) OWS = *( SP / HTAB ) ; optional whitespace BWS = OWS ; "bad" whitespace
Values with illegal syntax do not contribute to the result but no exception is thrown.
-
Method Summary
Modifier and TypeMethodDescriptionprotected static Map<String,Preferences.Preference> parse(Collection<String> values)
-
Method Details
-
parse
-