HTTPCLIENT-866: removed dependency on jcip-annotations; replaced jcip annotations with custom ones based on jcip but with SOURCE retention policy; added attribution clauses to NOTICE.txt and LICENSE.txt

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@807756 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Oleg Kalnichevski 2009-08-25 18:37:59 +00:00
parent 87dad42869
commit 33de23c102
170 changed files with 373 additions and 192 deletions

View File

@ -173,4 +173,10 @@
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
END OF TERMS AND CONDITIONS
This project contains annotations derived from JCIP-ANNOTATIONS
Copyright (c) 2005 Brian Goetz and Tim Peierls.
See http://www.jcip.net and the Creative Commons Attribution License
(http://creativecommons.org/licenses/by/2.5)

View File

@ -3,3 +3,6 @@ Copyright 1999-2009 The Apache Software Foundation
This product includes software developed by
The Apache Software Foundation (http://www.apache.org/).
This project contains annotations derived from JCIP-ANNOTATIONS
Copyright (c) 2005 Brian Goetz and Tim Peierls. See http://www.jcip.net

View File

@ -70,17 +70,6 @@
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>net.jcip</groupId>
<artifactId>jcip-annotations</artifactId>
<version>1.0</version>
<!--
Annotations are only _required_ during a build
They are not needed at run-time
Provided means that the dependency is not transitive.
-->
<scope>provided</scope>
</dependency>
</dependencies>
<properties>

View File

@ -0,0 +1,47 @@
/*
* ====================================================================
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
*/
package org.apache.http.annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* This annotation can be applied to a field or a method to indicate that its
* thread-safety is guaranteed by a synchronization particular lock.
* <p>
* Based on code developed by Brian Goetz and Tim Peierls and concepts
* published in 'Java Concurrency in Practice' by Brian Goetz, Tim Peierls,
* Joshua Bloch, Joseph Bowbeer, David Holmes and Doug Lea.
*/
@Documented
@Target({ElementType.FIELD, ElementType.METHOD})
@Retention(RetentionPolicy.SOURCE)
public @interface GuardedBy {
String value();
}

View File

@ -0,0 +1,46 @@
/*
* ====================================================================
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
*/
package org.apache.http.annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* This annotation can be applied to a class to indicate that its
* internal state cannot mutate and therefore it is thread-safe.
* <p>
* Based on code developed by Brian Goetz and Tim Peierls and concepts
* published in 'Java Concurrency in Practice' by Brian Goetz, Tim Peierls,
* Joshua Bloch, Joseph Bowbeer, David Holmes and Doug Lea.
*/
@Documented
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.SOURCE)
public @interface Immutable {
}

View File

@ -0,0 +1,46 @@
/*
* ====================================================================
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
*/
package org.apache.http.annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* This annotation can be applied to a class to indicate that it is not
* thread-safe and therefore should not be accessed concurrently.
* <p>
* Based on code developed by Brian Goetz and Tim Peierls and concepts
* published in 'Java Concurrency in Practice' by Brian Goetz, Tim Peierls,
* Joshua Bloch, Joseph Bowbeer, David Holmes and Doug Lea.
*/
@Documented
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.SOURCE)
public @interface NotThreadSafe {
}

View File

@ -0,0 +1,47 @@
/*
* ====================================================================
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
*/
package org.apache.http.annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* This annotation can be applied to a class to indicate that it is
* thread-safe and therefore can be accessed concurrently by multiple
* threads.
* <p>
* Based on code developed by Brian Goetz and Tim Peierls and concepts
* published in 'Java Concurrency in Practice' by Brian Goetz, Tim Peierls,
* Joshua Bloch, Joseph Bowbeer, David Holmes and Doug Lea.
*/
@Documented
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.SOURCE)
public @interface ThreadSafe {
}

View File

@ -27,7 +27,7 @@
package org.apache.http.auth;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
/**
* Constants and static helpers related to the HTTP authentication.

View File

@ -32,8 +32,8 @@ import java.util.List;
import java.util.Locale;
import java.util.Map;
import net.jcip.annotations.GuardedBy;
import net.jcip.annotations.ThreadSafe;
import org.apache.http.annotation.GuardedBy;
import org.apache.http.annotation.ThreadSafe;
import org.apache.http.params.HttpParams;

View File

@ -28,7 +28,7 @@ package org.apache.http.auth;
import java.util.Locale;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
import org.apache.http.util.LangUtils;

View File

@ -26,7 +26,7 @@
package org.apache.http.auth;
import net.jcip.annotations.NotThreadSafe;
import org.apache.http.annotation.NotThreadSafe;
/**

View File

@ -26,7 +26,7 @@
package org.apache.http.auth;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
import org.apache.http.ProtocolException;

View File

@ -28,7 +28,7 @@ package org.apache.http.auth;
import java.security.Principal;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
import org.apache.http.util.LangUtils;

View File

@ -26,7 +26,7 @@
package org.apache.http.auth;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
/**
* Authentication credentials required to respond to a authentication

View File

@ -26,7 +26,7 @@
package org.apache.http.auth;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
import org.apache.http.ProtocolException;

View File

@ -29,7 +29,7 @@ package org.apache.http.auth;
import java.security.Principal;
import java.util.Locale;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
import org.apache.http.util.LangUtils;

View File

@ -29,7 +29,7 @@ package org.apache.http.auth;
import java.security.Principal;
import java.util.Locale;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
import org.apache.http.util.LangUtils;

View File

@ -28,7 +28,7 @@ package org.apache.http.auth;
import java.security.Principal;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
import org.apache.http.util.LangUtils;

View File

@ -27,7 +27,7 @@
package org.apache.http.auth.params;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
import org.apache.http.params.HttpParams;
import org.apache.http.protocol.HTTP;

View File

@ -26,7 +26,7 @@
package org.apache.http.client;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
/**
* Signals a circular redirect

View File

@ -28,7 +28,7 @@ package org.apache.http.client;
import java.io.IOException;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
/**
* Signals an error in the HTTP protocol.

View File

@ -26,7 +26,7 @@
package org.apache.http.client;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
/**
* Signals a non 2xx HTTP response.

View File

@ -26,7 +26,7 @@
package org.apache.http.client;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
import org.apache.http.ProtocolException;

View File

@ -26,7 +26,7 @@
package org.apache.http.client;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
import org.apache.http.ProtocolException;

View File

@ -29,7 +29,7 @@ package org.apache.http.client.entity;
import java.io.UnsupportedEncodingException;
import java.util.List;
import net.jcip.annotations.NotThreadSafe;
import org.apache.http.annotation.NotThreadSafe;
import org.apache.http.NameValuePair;
import org.apache.http.client.utils.URLEncodedUtils;

View File

@ -29,7 +29,7 @@ package org.apache.http.client.methods;
import java.net.URI;
import net.jcip.annotations.NotThreadSafe;
import org.apache.http.annotation.NotThreadSafe;
/**
* HTTP DELETE method

View File

@ -27,7 +27,7 @@
package org.apache.http.client.methods;
import net.jcip.annotations.NotThreadSafe;
import org.apache.http.annotation.NotThreadSafe;
import org.apache.http.Header;
import org.apache.http.HttpEntity;

View File

@ -29,7 +29,7 @@ package org.apache.http.client.methods;
import java.net.URI;
import net.jcip.annotations.NotThreadSafe;
import org.apache.http.annotation.NotThreadSafe;
/**
* HTTP GET method.

View File

@ -29,7 +29,7 @@ package org.apache.http.client.methods;
import java.net.URI;
import net.jcip.annotations.NotThreadSafe;
import org.apache.http.annotation.NotThreadSafe;
/**
* HTTP HEAD method.

View File

@ -31,7 +31,7 @@ import java.net.URI;
import java.util.HashSet;
import java.util.Set;
import net.jcip.annotations.NotThreadSafe;
import org.apache.http.annotation.NotThreadSafe;
import org.apache.http.Header;
import org.apache.http.HeaderElement;

View File

@ -29,7 +29,7 @@ package org.apache.http.client.methods;
import java.net.URI;
import net.jcip.annotations.NotThreadSafe;
import org.apache.http.annotation.NotThreadSafe;
/**
* HTTP POST method.

View File

@ -29,7 +29,7 @@ package org.apache.http.client.methods;
import java.net.URI;
import net.jcip.annotations.NotThreadSafe;
import org.apache.http.annotation.NotThreadSafe;
/**
* HTTP PUT method.

View File

@ -32,7 +32,7 @@ import java.net.URI;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
import net.jcip.annotations.NotThreadSafe;
import org.apache.http.annotation.NotThreadSafe;
import org.apache.http.ProtocolVersion;
import org.apache.http.RequestLine;

View File

@ -29,7 +29,7 @@ package org.apache.http.client.methods;
import java.net.URI;
import net.jcip.annotations.NotThreadSafe;
import org.apache.http.annotation.NotThreadSafe;
/**
* HTTP TRACE method.

View File

@ -27,7 +27,7 @@
package org.apache.http.client.params;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
/**
* Standard authentication schemes supported by HttpClient.

View File

@ -29,7 +29,7 @@ package org.apache.http.client.params;
import java.util.Collection;
import net.jcip.annotations.NotThreadSafe;
import org.apache.http.annotation.NotThreadSafe;
import org.apache.http.Header;
import org.apache.http.HttpHost;

View File

@ -27,7 +27,7 @@
package org.apache.http.client.params;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
/**
* Standard cookie specifications supported by HttpClient.

View File

@ -26,7 +26,7 @@
package org.apache.http.client.params;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
import org.apache.http.params.HttpParams;

View File

@ -29,7 +29,7 @@ package org.apache.http.client.protocol;
import java.util.List;
import net.jcip.annotations.NotThreadSafe;
import org.apache.http.annotation.NotThreadSafe;
import org.apache.http.auth.AuthSchemeRegistry;
import org.apache.http.client.CookieStore;

View File

@ -34,7 +34,7 @@ import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

View File

@ -29,7 +29,7 @@ package org.apache.http.client.protocol;
import java.io.IOException;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
import org.apache.http.HttpException;
import org.apache.http.HttpRequest;

View File

@ -30,7 +30,7 @@ package org.apache.http.client.protocol;
import java.io.IOException;
import java.util.Collection;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
import org.apache.http.Header;
import org.apache.http.HttpException;

View File

@ -29,7 +29,7 @@ package org.apache.http.client.protocol;
import java.io.IOException;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

View File

@ -29,7 +29,7 @@ package org.apache.http.client.protocol;
import java.io.IOException;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

View File

@ -30,7 +30,7 @@ package org.apache.http.client.protocol;
import java.io.IOException;
import java.util.List;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

View File

@ -32,7 +32,7 @@ package org.apache.http.client.utils;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
/**
* A collection of utilities to workaround limitations of Java clone framework.

View File

@ -33,7 +33,7 @@ package org.apache.http.client.utils;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
/**
* Uses the java.net.IDN class through reflection.

View File

@ -30,7 +30,7 @@
package org.apache.http.client.utils;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
/**
* Facade that provides conversion between Unicode and Punycode domain names.

View File

@ -32,7 +32,7 @@ package org.apache.http.client.utils;
import java.util.StringTokenizer;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
/**
* Implementation from pseudo code in RFC 3492.

View File

@ -30,7 +30,7 @@ import java.net.URI;
import java.net.URISyntaxException;
import java.util.Stack;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
import org.apache.http.HttpHost;

View File

@ -37,7 +37,7 @@ import java.util.Collections;
import java.util.List;
import java.util.Scanner;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
import org.apache.http.Header;
import org.apache.http.HttpEntity;

View File

@ -30,7 +30,7 @@ package org.apache.http.conn;
import java.io.InputStream;
import java.io.IOException;
import net.jcip.annotations.NotThreadSafe;
import org.apache.http.annotation.NotThreadSafe;
/**
* Basic implementation of {@link EofSensorWatcher}. The underlying connection

View File

@ -31,7 +31,7 @@ import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import net.jcip.annotations.NotThreadSafe;
import org.apache.http.annotation.NotThreadSafe;
import org.apache.http.HttpEntity;
import org.apache.http.entity.HttpEntityWrapper;

View File

@ -29,7 +29,7 @@ package org.apache.http.conn;
import java.io.InterruptedIOException;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
/**
* A timeout while connecting to an HTTP server or waiting for an

View File

@ -27,7 +27,7 @@
package org.apache.http.conn;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
/**
* A timeout while waiting for an available connection

View File

@ -29,7 +29,7 @@ package org.apache.http.conn;
import java.io.InputStream;
import java.io.IOException;
import net.jcip.annotations.NotThreadSafe;
import org.apache.http.annotation.NotThreadSafe;
/**
* A stream wrapper that triggers actions on {@link #close close()} and EOF.

View File

@ -28,7 +28,7 @@ package org.apache.http.conn;
import java.net.ConnectException;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
import org.apache.http.HttpHost;

View File

@ -37,7 +37,7 @@ import java.util.Collections;
import java.util.List;
import java.util.Arrays;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
import org.apache.http.conn.scheme.SocketFactory;
import org.apache.http.params.HttpConnectionParams;

View File

@ -27,7 +27,7 @@
package org.apache.http.conn.params;
import net.jcip.annotations.NotThreadSafe;
import org.apache.http.annotation.NotThreadSafe;
import org.apache.http.params.HttpAbstractParamBean;
import org.apache.http.params.HttpParams;

View File

@ -27,7 +27,7 @@
package org.apache.http.conn.params;
import net.jcip.annotations.NotThreadSafe;
import org.apache.http.annotation.NotThreadSafe;
import org.apache.http.params.HttpAbstractParamBean;
import org.apache.http.params.HttpParams;

View File

@ -26,7 +26,7 @@
package org.apache.http.conn.params;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
import org.apache.http.conn.routing.HttpRoute;
import org.apache.http.params.HttpParams;

View File

@ -29,7 +29,7 @@ package org.apache.http.conn.params;
import java.util.HashMap;
import java.util.Map;
import net.jcip.annotations.NotThreadSafe;
import org.apache.http.annotation.NotThreadSafe;
import org.apache.http.conn.routing.HttpRoute;

View File

@ -29,7 +29,7 @@ package org.apache.http.conn.params;
import java.net.InetAddress;
import net.jcip.annotations.NotThreadSafe;
import org.apache.http.annotation.NotThreadSafe;
import org.apache.http.HttpHost;
import org.apache.http.conn.routing.HttpRoute;

View File

@ -28,7 +28,7 @@ package org.apache.http.conn.params;
import java.net.InetAddress;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
import org.apache.http.HttpHost;
import org.apache.http.params.HttpParams;

View File

@ -27,7 +27,7 @@
package org.apache.http.conn.routing;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
/**
* Basic implementation of an {@link HttpRouteDirector HttpRouteDirector}.

View File

@ -29,7 +29,7 @@ package org.apache.http.conn.routing;
import java.net.InetAddress;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
import org.apache.http.HttpHost;

View File

@ -29,7 +29,7 @@ package org.apache.http.conn.routing;
import java.net.InetAddress;
import net.jcip.annotations.NotThreadSafe;
import org.apache.http.annotation.NotThreadSafe;
import org.apache.http.HttpHost;

View File

@ -33,7 +33,7 @@ import java.net.InetSocketAddress;
import java.net.Socket;
import java.net.SocketTimeoutException;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
import org.apache.http.conn.ConnectTimeoutException;
import org.apache.http.params.HttpConnectionParams;

View File

@ -28,7 +28,7 @@ package org.apache.http.conn.scheme;
import java.util.Locale;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
import org.apache.http.util.LangUtils;

View File

@ -31,8 +31,8 @@ import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import net.jcip.annotations.GuardedBy;
import net.jcip.annotations.ThreadSafe;
import org.apache.http.annotation.GuardedBy;
import org.apache.http.annotation.ThreadSafe;
import org.apache.http.HttpHost;

View File

@ -27,7 +27,7 @@
package org.apache.http.conn.ssl;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
import org.apache.http.conn.util.InetAddressUtils;

View File

@ -27,7 +27,7 @@
package org.apache.http.conn.ssl;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
/**
* The ALLOW_ALL HostnameVerifier essentially turns hostname verification

View File

@ -29,7 +29,7 @@ package org.apache.http.conn.ssl;
import javax.net.ssl.SSLException;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
/**
* The HostnameVerifier that works the same way as Curl and Firefox.

View File

@ -27,7 +27,7 @@
package org.apache.http.conn.ssl;
import net.jcip.annotations.NotThreadSafe;
import org.apache.http.annotation.NotThreadSafe;
import org.apache.http.conn.ConnectTimeoutException;
import org.apache.http.conn.scheme.HostNameResolver;

View File

@ -29,7 +29,7 @@ package org.apache.http.conn.ssl;
import javax.net.ssl.SSLException;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
/**
* The Strict HostnameVerifier works the same way as Sun Java 1.4, Sun

View File

@ -29,7 +29,7 @@ package org.apache.http.conn.util;
import java.util.regex.Pattern;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
/**
* A collection of utilities relating to InetAddresses.

View File

@ -30,7 +30,7 @@ package org.apache.http.cookie;
import java.io.Serializable;
import java.util.Comparator;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
/**
* This cookie comparator can be used to compare identity of cookies.

View File

@ -28,7 +28,7 @@ package org.apache.http.cookie;
import java.util.Locale;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
/**
* CookieOrigin class encapsulates details of an origin server that

View File

@ -30,7 +30,7 @@ package org.apache.http.cookie;
import java.io.Serializable;
import java.util.Comparator;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
/**
* This cookie comparator ensures that multiple cookies satisfying

View File

@ -33,8 +33,8 @@ import java.util.List;
import java.util.Locale;
import java.util.Map;
import net.jcip.annotations.GuardedBy;
import net.jcip.annotations.ThreadSafe;
import org.apache.http.annotation.GuardedBy;
import org.apache.http.annotation.ThreadSafe;
import org.apache.http.params.HttpParams;

View File

@ -27,7 +27,7 @@
package org.apache.http.cookie;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
import org.apache.http.ProtocolException;

View File

@ -29,7 +29,7 @@ package org.apache.http.cookie.params;
import java.util.Collection;
import net.jcip.annotations.NotThreadSafe;
import org.apache.http.annotation.NotThreadSafe;
import org.apache.http.params.HttpAbstractParamBean;
import org.apache.http.params.HttpParams;

View File

@ -26,7 +26,7 @@
package org.apache.http.impl.auth;
import net.jcip.annotations.NotThreadSafe;
import org.apache.http.annotation.NotThreadSafe;
import org.apache.http.FormattedHeader;
import org.apache.http.Header;

View File

@ -26,7 +26,7 @@
package org.apache.http.impl.auth;
import net.jcip.annotations.NotThreadSafe;
import org.apache.http.annotation.NotThreadSafe;
import org.apache.commons.codec.binary.Base64;
import org.apache.http.Header;

View File

@ -27,7 +27,7 @@
package org.apache.http.impl.auth;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
import org.apache.http.auth.AuthScheme;
import org.apache.http.auth.AuthSchemeFactory;

View File

@ -31,7 +31,7 @@ import java.util.ArrayList;
import java.util.List;
import java.util.StringTokenizer;
import net.jcip.annotations.NotThreadSafe;
import org.apache.http.annotation.NotThreadSafe;
import org.apache.http.Header;
import org.apache.http.HttpRequest;

View File

@ -27,7 +27,7 @@
package org.apache.http.impl.auth;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
import org.apache.http.auth.AuthScheme;
import org.apache.http.auth.AuthSchemeFactory;

View File

@ -26,7 +26,7 @@
package org.apache.http.impl.auth;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
import org.apache.http.auth.AuthenticationException;

View File

@ -26,7 +26,7 @@
package org.apache.http.impl.auth;
import net.jcip.annotations.NotThreadSafe;
import org.apache.http.annotation.NotThreadSafe;
import org.apache.http.Header;
import org.apache.http.HttpRequest;

View File

@ -30,7 +30,7 @@ import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import net.jcip.annotations.NotThreadSafe;
import org.apache.http.annotation.NotThreadSafe;
import org.apache.http.HeaderElement;
import org.apache.http.auth.MalformedChallengeException;

View File

@ -26,7 +26,7 @@
package org.apache.http.impl.auth;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
/**
* Authentication credentials required to respond to a authentication

View File

@ -35,7 +35,7 @@ import java.util.List;
import java.util.Locale;
import java.util.Map;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

View File

@ -31,8 +31,8 @@ import java.io.IOException;
import java.net.URI;
import java.lang.reflect.UndeclaredThrowableException;
import net.jcip.annotations.ThreadSafe;
import net.jcip.annotations.GuardedBy;
import org.apache.http.annotation.ThreadSafe;
import org.apache.http.annotation.GuardedBy;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

View File

@ -33,8 +33,8 @@ import java.util.Date;
import java.util.Iterator;
import java.util.List;
import net.jcip.annotations.GuardedBy;
import net.jcip.annotations.ThreadSafe;
import org.apache.http.annotation.GuardedBy;
import org.apache.http.annotation.ThreadSafe;
import org.apache.http.client.CookieStore;
import org.apache.http.cookie.Cookie;

View File

@ -28,8 +28,8 @@ package org.apache.http.impl.client;
import java.util.HashMap;
import net.jcip.annotations.GuardedBy;
import net.jcip.annotations.ThreadSafe;
import org.apache.http.annotation.GuardedBy;
import org.apache.http.annotation.ThreadSafe;
import org.apache.http.auth.AuthScope;
import org.apache.http.auth.Credentials;

View File

@ -29,7 +29,7 @@ package org.apache.http.impl.client;
import java.io.IOException;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;

View File

@ -27,7 +27,7 @@
package org.apache.http.impl.client;
import net.jcip.annotations.NotThreadSafe;
import org.apache.http.annotation.NotThreadSafe;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

View File

@ -26,7 +26,7 @@
*/
package org.apache.http.impl.client;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
import org.apache.http.HeaderElement;
import org.apache.http.HeaderElementIterator;

View File

@ -27,7 +27,7 @@
package org.apache.http.impl.client;
import net.jcip.annotations.ThreadSafe;
import org.apache.http.annotation.ThreadSafe;
import org.apache.http.ConnectionReuseStrategy;
import org.apache.http.HttpVersion;

View File

@ -34,7 +34,7 @@ import java.net.UnknownHostException;
import javax.net.ssl.SSLHandshakeException;
import net.jcip.annotations.Immutable;
import org.apache.http.annotation.Immutable;
import org.apache.http.HttpEntityEnclosingRequest;
import org.apache.http.HttpRequest;

Some files were not shown because too many files have changed in this diff Show More