
 
        Gets all the applicable cookies from a cookie cache for the
 specified uri in the request header.
 HTTP protocol implementers should make sure that this method is
 called after all request headers related to choosing cookies
 are added, and before the request is sent.
        
        
Returns:
    an immutable map from state management headers, with
            field names "Cookie" or "Cookie2" to a list of
            cookies containing state information 
Parameters:
 - 
uri - a 
URI to send cookies to in a request
 - 
requestHeaders - - a Map from request header
            field names to lists of field values representing
            the current request headers
Throws:
  - 
IOException - if an I/O error occurs
  - 
IllegalArgumentException - if either argument is null
See Also:
  CookieHandler.put(URI, Map),