public Cookie getCookie ( String cookieName ) { for ( Cookie cookie : getCookies ( ) ) { if ( cookie . getName ( ) . equals ( cookieName ) ) { return cookie ; } } return null ; }
Returns cookie with that name or null .