/** * Returns <tt>true</tt> if authentication should be attempted preemptively, * <tt>false</tt> otherwise. * * @return <tt>true</tt> if authentication should be attempted preemptively, * <tt>false</tt> otherwise. */ public boolean isAuthenticationPreemptive() { return getBooleanParameter(PREEMPTIVE_AUTHENTICATION, false); }
/** * Returns <tt>true</tt> if authentication should be attempted preemptively, * <tt>false</tt> otherwise. * * @return <tt>true</tt> if authentication should be attempted preemptively, * <tt>false</tt> otherwise. */ public boolean isAuthenticationPreemptive() { return getBooleanParameter(PREEMPTIVE_AUTHENTICATION, false); }
/** * Returns <tt>true</tt> if authentication should be attempted preemptively, * <tt>false</tt> otherwise. * * @return <tt>true</tt> if authentication should be attempted preemptively, * <tt>false</tt> otherwise. */ public boolean isAuthenticationPreemptive() { return getBooleanParameter(PREEMPTIVE_AUTHENTICATION, false); }
/** * Returns <tt>true</tt> if authentication should be attempted preemptively, * <tt>false</tt> otherwise. * * @return <tt>true</tt> if authentication should be attempted preemptively, * <tt>false</tt> otherwise. */ public boolean isAuthenticationPreemptive() { return getBooleanParameter(PREEMPTIVE_AUTHENTICATION, false); }
/** * Returns <tt>true</tt> if authentication should be attempted preemptively, * <tt>false</tt> otherwise. * * @return <tt>true</tt> if authentication should be attempted preemptively, * <tt>false</tt> otherwise. */ public boolean isAuthenticationPreemptive() { return getBooleanParameter(PREEMPTIVE_AUTHENTICATION, false); }
private boolean mustRevalidate(RequestOptions options, CachedResponse response) { if (options.getRevalidateWithAuth()) { if (options.getAuthorization() != null) return true; if (client.getParams().getBooleanParameter(HttpClientParams.PREEMPTIVE_AUTHENTICATION, false)) return true; if (response != null) { if (response.isPublic()) return false; } } return false; }