public String get ( String name ) { Params . notNullOrEmpty ( name , "Cookie name" ) ; if ( cookies == null ) { return null ; } for ( Cookie cookie : cookies ) { if ( name . equals ( cookie . getName ( ) ) ) { return cookie . getValue ( ) ; } } return null ; }
Get value of the named cookie or null if cookie does not exist .