public List < ICookie > getCookies ( ) { String cookies = getHeader ( "Cookie" ) ; List < ICookie > output = new ArrayList <> ( ) ; if ( Utils . isEmpty ( cookies ) ) { return output ; } for ( String cookieStr : cookies . split ( "[; ]+" ) ) { String [ ] pair = cookieStr . split ( "=" , 2 ) ; output . add ( new Cookie ( pair [ 0 ] , pair [ 1 ] ) ) ; } return output ; }
Gets the value of the Cookie header