@ SuppressWarnings ( "deprecation" ) private CookieSpec getCookieSpec ( final HttpState state ) { if ( this . cookiespec == null ) { int i = state . getCookiePolicy ( ) ; if ( i == - 1 ) { this . cookiespec = CookiePolicy . getCookieSpec ( this . params . getCookiePolicy ( ) ) ; } else { this . cookiespec = CookiePolicy . getSpecByPolicy ( i ) ; } this . cookiespec . setValidDateFormats ( ( Collection ) this . params . getParameter ( HttpMethodParams . DATE_PATTERNS ) ) ; } return this . cookiespec ; }
Returns the actual cookie policy