Top Description Inners Fields Constructors Methods
org.eclipse.jetty.http

public Class RFC6265SetCookieParser

extends Object
implements SetCookieParser
Class Inheritance
All Implemented Interfaces
org.eclipse.jetty.http.SetCookieParser
Imports
org.slf4j.Logger, .LoggerFactory

A parser for Set-Cookie header values following RFC 6265.

White spaces around cookie name and value, and around attribute name and value, are permitted but stripped. Cookie values and attribute values may be quoted with double-quotes.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static enum

Field Summary

Modifier and TypeField and Description
private static final Logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static boolean
isWhitespace(char ch)

public HttpCookie
parse(String
the Set-Cookie value to parse
setCookieValue
)

Implements org.eclipse.jetty.http.SetCookieParser.parse.

Returns an HttpCookie obtained by parsing the given Set-Cookie value.

private boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LOGback to summary
private static final Logger LOG

Constructor Detail

RFC6265SetCookieParserback to summary
public RFC6265SetCookieParser()

Method Detail

isWhitespaceback to summary
private static boolean isWhitespace(char ch)
parseback to summary
public HttpCookie parse(String setCookieValue)

Implements org.eclipse.jetty.http.SetCookieParser.parse.

Doc from org.eclipse.jetty.http.SetCookieParser.parse.

Returns an HttpCookie obtained by parsing the given Set-Cookie value.

Returns null if the Set-Cookie value cannot be parsed due to syntax errors.

Parameters
setCookieValue:String

the Set-Cookie value to parse

Returns:HttpCookie

the parse HttpCookie or null

Annotations
@Override
setAttributeback to summary
private boolean setAttribute(HttpCookie.Builder cookie, String name, String value)
org.eclipse.jetty.http back to summary

private final Enum RFC6265SetCookieParser.State

extends Enum<RFC6265SetCookieParser.State>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final RFC6265SetCookieParser.State
public static final RFC6265SetCookieParser.State
public static final RFC6265SetCookieParser.State
public static final RFC6265SetCookieParser.State
public static final RFC6265SetCookieParser.State
public static final RFC6265SetCookieParser.State
public static final RFC6265SetCookieParser.State

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static RFC6265SetCookieParser.State
public static RFC6265SetCookieParser.State[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ATTRIBUTEback to summary
public static final RFC6265SetCookieParser.State ATTRIBUTE
ATTRIBUTE_NAMEback to summary
public static final RFC6265SetCookieParser.State ATTRIBUTE_NAME
ATTRIBUTE_VALUEback to summary
public static final RFC6265SetCookieParser.State ATTRIBUTE_VALUE
ATTRIBUTE_VALUE_STARTback to summary
public static final RFC6265SetCookieParser.State ATTRIBUTE_VALUE_START
NAMEback to summary
public static final RFC6265SetCookieParser.State NAME
VALUEback to summary
public static final RFC6265SetCookieParser.State VALUE
VALUE_STARTback to summary
public static final RFC6265SetCookieParser.State VALUE_START

Constructor Detail

Stateback to summary
private State()

Method Detail

valueOfback to summary
public static RFC6265SetCookieParser.State valueOf(String name)
valuesback to summary
public static RFC6265SetCookieParser.State[] values()