public int getAllCookies ( List < HttpCookie > list ) { int added = 0 ; if ( 0 < this . parsedList . size ( ) ) { for ( HttpCookie cookie : this . parsedList ) { list . add ( cookie . clone ( ) ) ; added ++ ; } } return added ; }
Clones all of the cookies in the cache onto the input list .