public void handleHttpSession ( Response serverResponse , String headerKey ) { /** --------------- * Session handled * ---------------- */ if ( "Set-Cookie" . equals ( headerKey ) ) { COOKIE_JSESSIONID_VALUE = serverResponse . getMetadata ( ) . get ( headerKey ) ; } }
This method handles the http session to be maintained between the calls . In case the session is not needed or to be handled differently then this method can be overridden to do nothing or to roll your own feature .