com.sun.enterprise.web.util
Class CookieTokenizer

java.lang.Object
  extended by com.sun.enterprise.web.util.CookieTokenizer

public class CookieTokenizer
extends java.lang.Object

Parse a Cookie: header into individual tokens according to RFC 2109.


Constructor Summary
CookieTokenizer()
           
 
Method Summary
 int getNumTokens()
          Return the number of cookie tokens parsed from the Cookie: header.
 java.lang.String tokenAt(int index)
          Returns a given cookie token from the Cookie: header.
 int tokenize(java.lang.String cookies)
          Parse the name=value tokens from a Cookie: header.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CookieTokenizer

public CookieTokenizer()
Method Detail

tokenize

public int tokenize(java.lang.String cookies)
Parse the name=value tokens from a Cookie: header.

Parameters:
cookies - The Cookie: header to parse

getNumTokens

public int getNumTokens()
Return the number of cookie tokens parsed from the Cookie: header.


tokenAt

public java.lang.String tokenAt(int index)
Returns a given cookie token from the Cookie: header.

Parameters:
index - The index of the cookie token to return


Copyright © 2012 GlassFish Community. All Rights Reserved.