/** * Updates this web client based on a received response. This includes updating * cookies and frames. **/ WebResponse updateWindow( String requestTarget, WebResponse response, RequestContext requestContext ) throws IOException, SAXException { _client.updateClient( response ); if (getClient().getClientProperties().isAutoRefresh() && response.getRefreshRequest() != null) { WebRequest request=response.getRefreshRequest(); WebResponse result=getResponse( request ); return result; } else if (shouldFollowRedirect( response )) { delay( HttpUnitOptions.getRedirectDelay() ); return getResponse( new RedirectWebRequest( response ) ); } else { _client.updateFrameContents( this, requestTarget, response, requestContext ); return response; } }
/** * Updates this web client based on a received response. This includes updating * cookies and frames. **/ WebResponse updateWindow( String requestTarget, WebResponse response, RequestContext requestContext ) throws IOException, SAXException { _client.updateClient( response ); if (getClient().getClientProperties().isAutoRefresh() && response.getRefreshRequest() != null) { WebRequest request=response.getRefreshRequest(); WebResponse result=getResponse( request ); return result; } else if (shouldFollowRedirect( response )) { delay( HttpUnitOptions.getRedirectDelay() ); return getResponse( new RedirectWebRequest( response ) ); } else { _client.updateFrameContents( this, requestTarget, response, requestContext ); return response; } }
/** * Updates this web client based on a received response. This includes updating * cookies and frames. **/ WebResponse updateWindow( String requestTarget, WebResponse response, RequestContext requestContext ) throws IOException, SAXException { _client.updateClient( response ); if (getClient().getClientProperties().isAutoRefresh() && response.getRefreshRequest() != null) { WebRequest request=response.getRefreshRequest(); WebResponse result=getResponse( request ); return result; } else if (shouldFollowRedirect( response )) { delay( HttpUnitOptions.getRedirectDelay() ); return getResponse( new RedirectWebRequest( response ) ); } else { _client.updateFrameContents( this, requestTarget, response, requestContext ); return response; } }