Some more immutable classes
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@755784 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5b44cc0938
commit
cdc4fc628b
|
@ -31,6 +31,8 @@
|
|||
|
||||
package org.apache.http.auth.params;
|
||||
|
||||
import net.jcip.annotations.Immutable;
|
||||
|
||||
import org.apache.http.params.HttpParams;
|
||||
import org.apache.http.protocol.HTTP;
|
||||
|
||||
|
@ -45,6 +47,7 @@ import org.apache.http.protocol.HTTP;
|
|||
*
|
||||
* @see AuthPNames
|
||||
*/
|
||||
@Immutable
|
||||
public final class AuthParams {
|
||||
|
||||
private AuthParams() {
|
||||
|
|
|
@ -30,6 +30,8 @@
|
|||
|
||||
package org.apache.http.conn.params;
|
||||
|
||||
import net.jcip.annotations.Immutable;
|
||||
|
||||
import org.apache.http.conn.routing.HttpRoute;
|
||||
import org.apache.http.params.HttpParams;
|
||||
|
||||
|
@ -45,6 +47,7 @@ import org.apache.http.params.HttpParams;
|
|||
*
|
||||
* @see ConnManagerPNames
|
||||
*/
|
||||
@Immutable
|
||||
public final class ConnManagerParams implements ConnManagerPNames {
|
||||
|
||||
/** The default maximum number of connections allowed overall */
|
||||
|
|
|
@ -33,6 +33,8 @@ package org.apache.http.conn.params;
|
|||
|
||||
import java.net.InetAddress;
|
||||
|
||||
import net.jcip.annotations.Immutable;
|
||||
|
||||
import org.apache.http.HttpHost;
|
||||
import org.apache.http.params.HttpParams;
|
||||
import org.apache.http.conn.routing.HttpRoute;
|
||||
|
@ -48,6 +50,7 @@ import org.apache.http.conn.routing.HttpRoute;
|
|||
*
|
||||
* @since 4.0
|
||||
*/
|
||||
@Immutable
|
||||
public class ConnRouteParams implements ConnRoutePNames {
|
||||
|
||||
/**
|
||||
|
@ -56,13 +59,13 @@ public class ConnRouteParams implements ConnRoutePNames {
|
|||
* with actual hosts. Note that this is a <i>valid</i> host.
|
||||
*/
|
||||
public static final HttpHost NO_HOST =
|
||||
new HttpHost("127.0.0.255", 0, "no-host");
|
||||
new HttpHost("127.0.0.255", 0, "no-host"); // Immutable
|
||||
|
||||
/**
|
||||
* A special value indicating "no route".
|
||||
* This is a route with {@link #NO_HOST} as the target.
|
||||
*/
|
||||
public static final HttpRoute NO_ROUTE = new HttpRoute(NO_HOST);
|
||||
public static final HttpRoute NO_ROUTE = new HttpRoute(NO_HOST); // Immutable
|
||||
|
||||
|
||||
/** Disabled default constructor. */
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
|
||||
package org.apache.http.conn.routing;
|
||||
|
||||
import net.jcip.annotations.Immutable;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -44,6 +45,7 @@ package org.apache.http.conn.routing;
|
|||
*
|
||||
* @since 4.0
|
||||
*/
|
||||
@Immutable
|
||||
public class BasicRouteDirector implements HttpRouteDirector {
|
||||
|
||||
// public default constructor
|
||||
|
|
Loading…
Reference in New Issue