/** * Specifies whether HttpUnit should automatically follow page refresh requests. * By default, this is false, so that programs can verify the redirect page presented * to users before the browser switches to the new page. Setting this to true can * cause an infinite loop on pages that refresh themselves. * @deprecated as of 1.5.3, use ClientProperties#setAutoRefresh(); **/ public static void setAutoRefresh( boolean autoRefresh ) { ClientProperties.getDefaultProperties().setAutoRefresh( autoRefresh ); }
/** * Specifies whether a WebClient will be initialized to accept GZIP encoded responses. The default is true. * @deprecated as of 1.5.3, use ClientProperties#setAcceptGzip(); */ public static void setAcceptGzip( boolean acceptGzip ) { ClientProperties.getDefaultProperties().setAcceptGzip( acceptGzip ); }
/** * Returns true if HttpUnit should automatically follow page refresh requests. * By default, this is false, so that programs can verify the redirect page presented * to users before the browser switches to the new page. * @deprecated as of 1.5.3, use ClientProperties#isAutoRefresh(); **/ public static boolean getAutoRefresh() { return ClientProperties.getDefaultProperties().isAutoRefresh(); }
/** * Returns the properties associated with this client. */ public ClientProperties getClientProperties() { if (_clientProperties == null) { _clientProperties = ClientProperties.getDefaultProperties().cloneProperties(); } return _clientProperties; }
/** * Specifies whether a WebClient will be initialized to accept GZIP encoded responses. The default is true. * @deprecated as of 1.5.3, use ClientProperties#setAcceptGzip(); */ public static void setAcceptGzip( boolean acceptGzip ) { ClientProperties.getDefaultProperties().setAcceptGzip( acceptGzip ); }
/** * Determines whether HttpUnit should automatically follow page redirect requests (status 3xx). * By default, this is true in order to simulate normal browser operation. * @deprecated as of 1.5.3, use ClientProperties#setAutoRedirect(); **/ public static void setAutoRedirect( boolean autoRedirect ) { ClientProperties.getDefaultProperties().setAutoRedirect( autoRedirect ); }
/** * Specifies whether HttpUnit should accept and send cookies. * @deprecated as of 1.5.3, use ClientProperties#setAcceptCookies(); */ public static void setAcceptCookies( boolean acceptCookies ) { ClientProperties.getDefaultProperties().setAcceptCookies( acceptCookies ); }
/** * Returns true if HttpUnit is accepting and saving cookies. The default is to accept them. * @deprecated as of 1.5.3, use ClientProperties#isAcceptCookies(); */ public static boolean isAcceptCookies() { return ClientProperties.getDefaultProperties().isAcceptCookies(); }
/** * Specifies whether HttpUnit should accept and send cookies. * @deprecated as of 1.5.3, use ClientProperties#setAcceptCookies(); */ public static void setAcceptCookies( boolean acceptCookies ) { ClientProperties.getDefaultProperties().setAcceptCookies( acceptCookies ); }
/** * Returns true if any WebClient created will accept GZIP encoding of responses. The default is to accept GZIP encoding. * @deprecated as of 1.5.3, use ClientProperties#isAcceptGzip(); **/ public static boolean isAcceptGzip() { return ClientProperties.getDefaultProperties().isAcceptGzip(); }
/** * Returns true if HttpUnit should automatically follow page redirect requests (status 3xx). * By default, this is true. * @deprecated as of 1.5.3, use ClientProperties#isAutoRedirect(); **/ public static boolean getAutoRedirect() { return ClientProperties.getDefaultProperties().isAutoRedirect(); }
/** * Determines whether HttpUnit should automatically follow page redirect requests (status 3xx). * By default, this is true in order to simulate normal browser operation. * @deprecated as of 1.5.3, use ClientProperties#setAutoRedirect(); **/ public static void setAutoRedirect( boolean autoRedirect ) { ClientProperties.getDefaultProperties().setAutoRedirect( autoRedirect ); }
/** * Specifies whether a WebClient will be initialized to accept GZIP encoded responses. The default is true. * @deprecated as of 1.5.3, use ClientProperties#setAcceptGzip(); */ public static void setAcceptGzip( boolean acceptGzip ) { ClientProperties.getDefaultProperties().setAcceptGzip( acceptGzip ); }
/** * Determines whether HttpUnit should automatically follow page redirect requests (status 3xx). * By default, this is true in order to simulate normal browser operation. * @deprecated as of 1.5.3, use ClientProperties#setAutoRedirect(); **/ public static void setAutoRedirect( boolean autoRedirect ) { ClientProperties.getDefaultProperties().setAutoRedirect( autoRedirect ); }
/** * Returns true if HttpUnit should automatically follow page refresh requests. * By default, this is false, so that programs can verify the redirect page presented * to users before the browser switches to the new page. * @deprecated as of 1.5.3, use ClientProperties#isAutoRefresh(); **/ public static boolean getAutoRefresh() { return ClientProperties.getDefaultProperties().isAutoRefresh(); }
/** * Specifies whether HttpUnit should automatically follow page refresh requests. * By default, this is false, so that programs can verify the redirect page presented * to users before the browser switches to the new page. Setting this to true can * cause an infinite loop on pages that refresh themselves. * @deprecated as of 1.5.3, use ClientProperties#setAutoRefresh(); **/ public static void setAutoRefresh( boolean autoRefresh ) { ClientProperties.getDefaultProperties().setAutoRefresh( autoRefresh ); }
/** * Specifies whether HttpUnit should accept and send cookies. * @deprecated as of 1.5.3, use ClientProperties#setAcceptCookies(); */ public static void setAcceptCookies( boolean acceptCookies ) { ClientProperties.getDefaultProperties().setAcceptCookies( acceptCookies ); }
/** * Returns true if any WebClient created will accept GZIP encoding of responses. The default is to accept GZIP encoding. * @deprecated as of 1.5.3, use ClientProperties#isAcceptGzip(); **/ public static boolean isAcceptGzip() { return ClientProperties.getDefaultProperties().isAcceptGzip(); }
/** * Returns true if HttpUnit should automatically follow page redirect requests (status 3xx). * By default, this is true. * @deprecated as of 1.5.3, use ClientProperties#isAutoRedirect(); **/ public static boolean getAutoRedirect() { return ClientProperties.getDefaultProperties().isAutoRedirect(); }
/** * Returns the properties associated with this client. */ public ClientProperties getClientProperties() { if (_clientProperties == null) { _clientProperties = ClientProperties.getDefaultProperties().cloneProperties(); } return _clientProperties; }