"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "httpclient/src/main/java/org/apache/http/auth/AuthState.java" between
httpcomponents-client-4.5.5-src.tar.gz and httpcomponents-client-4.5.6-src.tar.gz

About: HttpComponents is an Apache project responsible for creating and maintaining a toolset of low level Java components focused on HTTP and associated protocols. Java sources. (Web) Server ("httpd").

AuthState.java  (httpcomponents-client-4.5.5-src):AuthState.java  (httpcomponents-client-4.5.6-src)
skipping to change at line 137 skipping to change at line 137
* Returns {@code true} if {@link AuthOption}s are available, {@code false} * Returns {@code true} if {@link AuthOption}s are available, {@code false}
* otherwise. * otherwise.
* *
* @since 4.2 * @since 4.2
*/ */
public boolean hasAuthOptions() { public boolean hasAuthOptions() {
return this.authOptions != null && !this.authOptions.isEmpty(); return this.authOptions != null && !this.authOptions.isEmpty();
} }
/** /**
* Returns {@code true} if the actual authentication scheme is connection ba
sed.
*
* @since 4.5.6
*/
public boolean isConnectionBased() {
return this.authScheme != null && this.authScheme.isConnectionBased();
}
/**
* Updates the auth state with a queue of {@link AuthOption}s. * Updates the auth state with a queue of {@link AuthOption}s.
* *
* @param authOptions a queue of auth options. May not be null or empty. * @param authOptions a queue of auth options. May not be null or empty.
* *
* @since 4.2 * @since 4.2
*/ */
public void update(final Queue<AuthOption> authOptions) { public void update(final Queue<AuthOption> authOptions) {
Args.notEmpty(authOptions, "Queue of auth options"); Args.notEmpty(authOptions, "Queue of auth options");
this.authOptions = authOptions; this.authOptions = authOptions;
this.authScheme = null; this.authScheme = null;
 End of changes. 1 change blocks. 
0 lines changed or deleted 10 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)