public CrawlerPack addCookie ( String domain , String name , String value , String path , Date expires , boolean secure ) { if ( null == name ) { log . warn ( "addCookie: Cookie name null." ) ; return this ; } cookies . add ( new Cookie ( domain , name , value , path , expires , secure ) ) ; return this ; }
Creates a cookie with the given name value domain attribute path attribute expiration attribute and secure attribute