public static Cookie newCookie ( final String name , final String value , final String purpose , final String domain , final int maxAge , final String path , final boolean secure ) { final Cookie cookie = new Cookie ( name , value ) ; cookie . setComment ( purpose ) ; cookie . setDomain ( domain ) ; cookie . setMaxAge ( maxAge ) ; cookie . setPath ( path ) ; return cookie ; }
Creates a new cookie .