Javadoc fixes

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1030510 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Oleg Kalnichevski 2010-11-03 16:04:47 +00:00
parent 6d67c55306
commit 31590950b5
6 changed files with 9 additions and 15 deletions

View File

@ -28,8 +28,8 @@ package org.apache.http.client.cache;
/** /**
* This enumeration represents the various ways a response can be generated * This enumeration represents the various ways a response can be generated
* by the {@link CachingHttpClient}; if a request is executed with an * by the {@link org.apache.http.impl.client.cache.CachingHttpClient};
* {@link org.apache.http.protocol.HttpContext} * if a request is executed with an {@link org.apache.http.protocol.HttpContext}
* then a parameter with one of these values will be registered in the * then a parameter with one of these values will be registered in the
* context. * context.
*/ */

View File

@ -37,7 +37,7 @@ import org.apache.http.client.cache.HttpCacheUpdateCallback;
/** /**
* Basic {@link HttpCacheStorage} implementation backed by an instance of {@link LinkedHashMap}. * Basic {@link HttpCacheStorage} implementation backed by an instance of {@link LinkedHashMap}.
* This cache does NOT deallocate resources associated with the cache entries. It is intended * This cache does NOT deallocate resources associated with the cache entries. It is intended
* for use with {@link MemCacheEntry} and similar. * for use with {@link HeapResource} and similar.
* *
* @since 4.1 * @since 4.1
*/ */

View File

@ -104,7 +104,6 @@ public class CacheConfig {
/** /**
* Returns the maximum number of cache entries the cache will retain. * Returns the maximum number of cache entries the cache will retain.
* @return int
*/ */
public int getMaxCacheEntries() { public int getMaxCacheEntries() {
return maxCacheEntries; return maxCacheEntries;
@ -112,7 +111,6 @@ public class CacheConfig {
/** /**
* Sets the maximum number of cache entries the cache will retain. * Sets the maximum number of cache entries the cache will retain.
* @param maxCacheEntries int
*/ */
public void setMaxCacheEntries(int maxCacheEntries) { public void setMaxCacheEntries(int maxCacheEntries) {
this.maxCacheEntries = maxCacheEntries; this.maxCacheEntries = maxCacheEntries;
@ -120,7 +118,6 @@ public class CacheConfig {
/** /**
* Returns the number of times to retry a cache update on failure * Returns the number of times to retry a cache update on failure
* @return int
*/ */
public int getMaxUpdateRetries(){ public int getMaxUpdateRetries(){
return maxUpdateRetries; return maxUpdateRetries;
@ -128,7 +125,6 @@ public class CacheConfig {
/** /**
* Sets the number of times to retry a cache update on failure * Sets the number of times to retry a cache update on failure
* @param maxUpdateRetries int
*/ */
public void setMaxUpdateRetries(int maxUpdateRetries){ public void setMaxUpdateRetries(int maxUpdateRetries){
this.maxUpdateRetries = maxUpdateRetries; this.maxUpdateRetries = maxUpdateRetries;
@ -136,7 +132,6 @@ public class CacheConfig {
/** /**
* Returns if heuristic freshness caching is in enabled * Returns if heuristic freshness caching is in enabled
* @return
*/ */
public boolean isHeuristicCachingEnabled() { public boolean isHeuristicCachingEnabled() {
return heuristicCachingEnabled; return heuristicCachingEnabled;
@ -144,7 +139,6 @@ public class CacheConfig {
/** /**
* Set if heuristic freshness caching is enabled * Set if heuristic freshness caching is enabled
* @param heursiticCachingEnabled
*/ */
public void setHeuristicCachingEnabled(boolean heuristicCachingEnabled) { public void setHeuristicCachingEnabled(boolean heuristicCachingEnabled) {
this.heuristicCachingEnabled = heuristicCachingEnabled; this.heuristicCachingEnabled = heuristicCachingEnabled;
@ -152,7 +146,6 @@ public class CacheConfig {
/** /**
* Returns coefficient used in heuristic freshness caching * Returns coefficient used in heuristic freshness caching
* @return
*/ */
public float getHeuristicCoefficient() { public float getHeuristicCoefficient() {
return heuristicCoefficient; return heuristicCoefficient;
@ -160,7 +153,6 @@ public class CacheConfig {
/** /**
* Set coefficient to be used in heuristic freshness caching * Set coefficient to be used in heuristic freshness caching
* @param heuristicCoefficient
*/ */
public void setHeuristicCoefficient(float heuristicCoefficient) { public void setHeuristicCoefficient(float heuristicCoefficient) {
this.heuristicCoefficient = heuristicCoefficient; this.heuristicCoefficient = heuristicCoefficient;
@ -169,7 +161,6 @@ public class CacheConfig {
/** /**
* Get the default lifetime to be used if heuristic freshness calculation is * Get the default lifetime to be used if heuristic freshness calculation is
* not possible * not possible
* @return
*/ */
public long getHeuristicDefaultLifetime() { public long getHeuristicDefaultLifetime() {
return heuristicDefaultLifetime; return heuristicDefaultLifetime;
@ -177,7 +168,6 @@ public class CacheConfig {
/** /**
* Set default lifetime to be used if heuristic freshness calculation is not possible * Set default lifetime to be used if heuristic freshness calculation is not possible
* @param heuristicDefaultLifetime
*/ */
public void setHeuristicDefaultLifetime(long heuristicDefaultLifetime) { public void setHeuristicDefaultLifetime(long heuristicDefaultLifetime) {
this.heuristicDefaultLifetime = heuristicDefaultLifetime; this.heuristicDefaultLifetime = heuristicDefaultLifetime;

View File

@ -47,7 +47,7 @@ import org.apache.http.client.cache.Resource;
* resource deallocation. The cache can be permanently shut down using {@link #shutdown()} * resource deallocation. The cache can be permanently shut down using {@link #shutdown()}
* method. All resources associated with the entries used by the cache will be deallocated. * method. All resources associated with the entries used by the cache will be deallocated.
* *
* This {@link HttpCacheStorage} implementation is intended for use with {@link FileCacheEntry} * This {@link HttpCacheStorage} implementation is intended for use with {@link FileResource}
* and similar. * and similar.
* *
* @since 4.1 * @since 4.1

View File

@ -62,6 +62,7 @@ import org.apache.http.impl.DefaultConnectionReuseStrategy;
import org.apache.http.impl.auth.BasicSchemeFactory; import org.apache.http.impl.auth.BasicSchemeFactory;
import org.apache.http.impl.auth.DigestSchemeFactory; import org.apache.http.impl.auth.DigestSchemeFactory;
import org.apache.http.impl.auth.NTLMSchemeFactory; import org.apache.http.impl.auth.NTLMSchemeFactory;
import org.apache.http.impl.auth.NegotiateSchemeFactory;
import org.apache.http.impl.conn.DefaultHttpRoutePlanner; import org.apache.http.impl.conn.DefaultHttpRoutePlanner;
import org.apache.http.impl.conn.SingleClientConnManager; import org.apache.http.impl.conn.SingleClientConnManager;
import org.apache.http.impl.cookie.BestMatchSpecFactory; import org.apache.http.impl.cookie.BestMatchSpecFactory;
@ -300,6 +301,9 @@ public class DefaultHttpClient extends AbstractHttpClient {
registry.register( registry.register(
AuthPolicy.NTLM, AuthPolicy.NTLM,
new NTLMSchemeFactory()); new NTLMSchemeFactory());
registry.register(
AuthPolicy.SPNEGO,
new NegotiateSchemeFactory());
return registry; return registry;
} }

View File

@ -149,7 +149,7 @@ public class ThreadSafeClientConnManager implements ClientConnectionManager {
* *
* @return the connection pool to use * @return the connection pool to use
* *
* @deprecated use {@link #createConnectionPool()} * @deprecated use #createConnectionPool(long, TimeUnit))
*/ */
@Deprecated @Deprecated
protected AbstractConnPool createConnectionPool(final HttpParams params) { protected AbstractConnPool createConnectionPool(final HttpParams params) {