public class CookieTokenizer extends Object
Constructor and Description |
---|
CookieTokenizer() |
Modifier and Type | Method and Description |
---|---|
int |
getNumTokens()
Return the number of cookie tokens parsed from the Cookie: header.
|
String |
tokenAt(int index)
Returns a given cookie token from the Cookie: header.
|
int |
tokenize(String cookies)
Parse the name=value tokens from a Cookie: header.
|
public int tokenize(String cookies)
cookies
- The Cookie: header to parsepublic int getNumTokens()
public String tokenAt(int index)
index
- The index of the cookie token to returnCopyright © 2019. All rights reserved.