Class Syntax
java.lang.Object
org.eclipse.jetty.http.Syntax
Collection of Syntax validation methods.
Use in a similar way as you would Objects.requireNonNull(Object)
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic voidrequireValidRFC2616Token(String value, String msg) Per RFC2616: Section 2.2, a token follows these syntax rulesstatic voidPer RFC6265, Cookie.value follows these syntax rules 
- 
Constructor Details
- 
Syntax
public Syntax() 
 - 
 - 
Method Details
- 
requireValidRFC2616Token
Per RFC2616: Section 2.2, a token follows these syntax rulestoken = 1*<any CHAR except CTLs or separators> CHAR = <any US-ASCII character (octets 0 - 127)> CTL = <any US-ASCII control character (octets 0 - 31) and DEL (127)> separators = "(" | ")" | "<" | ">" | "@" | "," | ";" | ":" | "\" | <"> | "/" | "[" | "]" | "?" | "=" | "{" | "}" | SP | HT- Parameters:
 value- the value to testmsg- the message to be prefixed if anIllegalArgumentExceptionis thrown.- Throws:
 IllegalArgumentException- if the value is invalid per spec
 - 
requireValidRFC6265CookieValue
Per RFC6265, Cookie.value follows these syntax rulescookie-value = *cookie-octet / ( DQUOTE *cookie-octet DQUOTE ) cookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E ; US-ASCII characters excluding CTLs, ; whitespace DQUOTE, comma, semicolon, ; and backslash- Parameters:
 value- the value to test- Throws:
 IllegalArgumentException- if the value is invalid per spec
 
 -