public Cookie get ( String name , String domain ) { for ( Cookie cookie : this ) { if ( cookie . getName ( ) . equals ( name ) && cookie . getDomain ( ) . equals ( domain ) ) return cookie ; } return null ; }
Returns the cookie with the given name and for the given domain or null .