Class CookieParser.Sequence
java.lang.Object
org.simpleframework.http.parse.CookieParser.Sequence
- Enclosing class:
CookieParser
This is used to represent an
Iterator that will
iterate over the available cookies within the provided source
text. This allows the cookie parser to be used as an iterable
with for each loops. Cookies can not be removed with this.-
Constructor Details
-
Sequence
private Sequence()
-
-
Method Details
-
next
Extracts the nextCookieobject from the string given. This will returnnullwhen there are no more cookies left in theStringbeing parsed.To find out when there are no more cookies left use the
hasNextmethod. This will only set the name, value, path, domain name version of thecookiebecause as of RFC 2109 these are the only attributes aCookiemay have, the path and domain are optional. -
hasNext
public boolean hasNext()Determine whether or not there are anyCookies left in theString. This will attempt to extract anotherCookiefrom theStringand cache the result so thenextmethod will produce thisCookie. If anotherCookiecannot be parsed from the remainder of theStringthen this will returnfalseotherwise it will returntrue. -
remove
-