hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r755461 - /httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/
Date Wed, 18 Mar 2009 02:41:04 GMT
Author: sebb
Date: Wed Mar 18 02:41:04 2009
New Revision: 755461

URL: http://svn.apache.org/viewvc?rev=755461&view=rev
Log:
Add JCIP annotations

Modified:
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/AUTH.java
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/AuthSchemeRegistry.java
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/AuthScope.java
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/AuthState.java
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/AuthenticationException.java
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/BasicUserPrincipal.java
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/InvalidCredentialsException.java
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/MalformedChallengeException.java
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/NTCredentials.java
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/NTUserPrincipal.java
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/UsernamePasswordCredentials.java

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/AUTH.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/AUTH.java?rev=755461&r1=755460&r2=755461&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/AUTH.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/AUTH.java
Wed Mar 18 02:41:04 2009
@@ -31,12 +31,15 @@
 
 package org.apache.http.auth;
 
+import net.jcip.annotations.Immutable;
+
 /**
  * Constants and static helpers related to the HTTP authentication.
  * 
  *
  * @since 4.0
  */
+@Immutable
 public final class AUTH {
 
     /**

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/AuthSchemeRegistry.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/AuthSchemeRegistry.java?rev=755461&r1=755460&r2=755461&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/AuthSchemeRegistry.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/AuthSchemeRegistry.java
Wed Mar 18 02:41:04 2009
@@ -36,6 +36,9 @@
 import java.util.Locale;
 import java.util.Map;
 
+import net.jcip.annotations.GuardedBy;
+import net.jcip.annotations.ThreadSafe;
+
 import org.apache.http.params.HttpParams;
 
 /**
@@ -47,8 +50,10 @@
  * @version $Revision$
  * @since 4.0
  */
+@ThreadSafe
 public final class AuthSchemeRegistry {
 
+    @GuardedBy("this")
     private final Map<String,AuthSchemeFactory> registeredSchemes;
     
     public AuthSchemeRegistry() {

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/AuthScope.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/AuthScope.java?rev=755461&r1=755460&r2=755461&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/AuthScope.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/AuthScope.java
Wed Mar 18 02:41:04 2009
@@ -32,6 +32,8 @@
 
 import java.util.Locale;
 
+import net.jcip.annotations.Immutable;
+
 import org.apache.http.util.LangUtils;
 
 /** 
@@ -42,6 +44,7 @@
  * 
  * @since 4.0
  */
+@Immutable
 public class AuthScope {
     
     /** 

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/AuthState.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/AuthState.java?rev=755461&r1=755460&r2=755461&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/AuthState.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/AuthState.java
Wed Mar 18 02:41:04 2009
@@ -30,6 +30,8 @@
 
 package org.apache.http.auth;
 
+import net.jcip.annotations.NotThreadSafe;
+
 
 /**
  * This class provides detailed information about the state of the
@@ -38,6 +40,7 @@
  *
  * @since 4.0
  */
+@NotThreadSafe
 public class AuthState {
 
     /** Actual authentication scheme */

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/AuthenticationException.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/AuthenticationException.java?rev=755461&r1=755460&r2=755461&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/AuthenticationException.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/AuthenticationException.java
Wed Mar 18 02:41:04 2009
@@ -30,6 +30,8 @@
 
 package org.apache.http.auth;
 
+import net.jcip.annotations.Immutable;
+
 import org.apache.http.ProtocolException;
 
 /**
@@ -38,6 +40,7 @@
  * 
  * @since 4.0
  */
+@Immutable
 public class AuthenticationException extends ProtocolException {
 
     private static final long serialVersionUID = -6794031905674764776L;

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/BasicUserPrincipal.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/BasicUserPrincipal.java?rev=755461&r1=755460&r2=755461&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/BasicUserPrincipal.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/BasicUserPrincipal.java
Wed Mar 18 02:41:04 2009
@@ -32,6 +32,8 @@
 
 import java.security.Principal;
 
+import net.jcip.annotations.Immutable;
+
 import org.apache.http.util.LangUtils;
 
 /**
@@ -40,6 +42,7 @@
  * 
  * @since 4.0
  */
+@Immutable
 public final class BasicUserPrincipal implements Principal {
 
     private final String username;

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/InvalidCredentialsException.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/InvalidCredentialsException.java?rev=755461&r1=755460&r2=755461&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/InvalidCredentialsException.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/InvalidCredentialsException.java
Wed Mar 18 02:41:04 2009
@@ -30,6 +30,8 @@
 
 package org.apache.http.auth;
 
+import net.jcip.annotations.Immutable;
+
 /**
  * Authentication credentials required to respond to a authentication 
  * challenge are invalid
@@ -37,6 +39,7 @@
  * 
  * @since 4.0
  */
+@Immutable
 public class InvalidCredentialsException extends AuthenticationException {
 
     private static final long serialVersionUID = -4834003835215460648L;

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/MalformedChallengeException.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/MalformedChallengeException.java?rev=755461&r1=755460&r2=755461&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/MalformedChallengeException.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/MalformedChallengeException.java
Wed Mar 18 02:41:04 2009
@@ -30,6 +30,8 @@
 
 package org.apache.http.auth;
 
+import net.jcip.annotations.Immutable;
+
 import org.apache.http.ProtocolException;
 
 /**
@@ -39,6 +41,7 @@
  * 
  * @since 4.0
  */
+@Immutable
 public class MalformedChallengeException extends ProtocolException {
 
     private static final long serialVersionUID = 814586927989932284L;

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/NTCredentials.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/NTCredentials.java?rev=755461&r1=755460&r2=755461&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/NTCredentials.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/NTCredentials.java
Wed Mar 18 02:41:04 2009
@@ -33,6 +33,8 @@
 import java.security.Principal;
 import java.util.Locale;
 
+import net.jcip.annotations.Immutable;
+
 import org.apache.http.util.LangUtils;
 
 /** {@link Credentials} specific to the Windows platform.
@@ -40,6 +42,7 @@
  * 
  * @since 2.0
  */
+@Immutable
 public class NTCredentials implements Credentials {
 
     /** The user principal  */

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/NTUserPrincipal.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/NTUserPrincipal.java?rev=755461&r1=755460&r2=755461&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/NTUserPrincipal.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/NTUserPrincipal.java
Wed Mar 18 02:41:04 2009
@@ -33,6 +33,8 @@
 import java.security.Principal;
 import java.util.Locale;
 
+import net.jcip.annotations.Immutable;
+
 import org.apache.http.util.LangUtils;
 
 /**  NT (MS Windows specific) user principal used for HTTP authentication
@@ -40,6 +42,7 @@
  * 
  * @since 4.0
  */
+@Immutable
 public class NTUserPrincipal implements Principal {
 
     private final String username;

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/UsernamePasswordCredentials.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/UsernamePasswordCredentials.java?rev=755461&r1=755460&r2=755461&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/UsernamePasswordCredentials.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/UsernamePasswordCredentials.java
Wed Mar 18 02:41:04 2009
@@ -32,6 +32,8 @@
 
 import java.security.Principal;
 
+import net.jcip.annotations.Immutable;
+
 import org.apache.http.util.LangUtils;
 
 /**
@@ -43,11 +45,12 @@
  *
  * @since 4.0
  */
+@Immutable
 public class UsernamePasswordCredentials implements Credentials {
 
     private final BasicUserPrincipal principal;
     private final String password;
-     
+    
     /**
      * The constructor with the username and password combined string argument.
      *



Mime
View raw message