hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rola...@apache.org
Subject svn commit: r607549 - in /httpcomponents/httpcore/trunk/contrib/src/main/java/org/apache/http/contrib/sip: EnglishSipReasonPhraseCatalog.java SipStatus.java
Date Sun, 30 Dec 2007 15:11:42 GMT
Author: rolandw
Date: Sun Dec 30 07:11:42 2007
New Revision: 607549

URL: http://svn.apache.org/viewvc?rev=607549&view=rev
Log:
additional SIP status codes and reason phrases

Modified:
    httpcomponents/httpcore/trunk/contrib/src/main/java/org/apache/http/contrib/sip/EnglishSipReasonPhraseCatalog.java
    httpcomponents/httpcore/trunk/contrib/src/main/java/org/apache/http/contrib/sip/SipStatus.java

Modified: httpcomponents/httpcore/trunk/contrib/src/main/java/org/apache/http/contrib/sip/EnglishSipReasonPhraseCatalog.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/contrib/src/main/java/org/apache/http/contrib/sip/EnglishSipReasonPhraseCatalog.java?rev=607549&r1=607548&r2=607549&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/contrib/src/main/java/org/apache/http/contrib/sip/EnglishSipReasonPhraseCatalog.java
(original)
+++ httpcomponents/httpcore/trunk/contrib/src/main/java/org/apache/http/contrib/sip/EnglishSipReasonPhraseCatalog.java
Sun Dec 30 07:11:42 2007
@@ -40,9 +40,11 @@
 
 /**
  * English reason phrases for SIP status codes.
- * All status codes defined in RFC 3261 (SIP/2.0)
- * and RFC 3265 (SIP-Specific Event Notification)
- * are supported.
+ * All status codes defined in {@link SipStatus} are supported.
+ * See <a href="http://www.iana.org/assignments/sip-parameters">
+ * http://www.iana.org/assignments/sip-parameters
+ * </a>
+ * for a full list of registered SIP status codes and the defining RFCs.
  * 
  * @author <a href="mailto:rolandw at apache.org">Roland Weber</a>
  * 
@@ -175,6 +177,8 @@
                   "Request Timeout");
         setReason(SipStatus.SC_GONE,
                   "Gone");
+        setReason(SipStatus.SC_CONDITIONAL_REQUEST_FAILED,
+                  "Conditional Request Failed");
         setReason(SipStatus.SC_REQUEST_ENTITY_TOO_LARGE,
                   "Request Entity Too Large");
         setReason(SipStatus.SC_REQUEST_URI_TOO_LONG,
@@ -183,12 +187,28 @@
                   "Unsupported Media Type");
         setReason(SipStatus.SC_UNSUPPORTED_URI_SCHEME,
                   "Unsupported URI Scheme");
+        setReason(SipStatus.SC_UNKNOWN_RESOURCE_PRIORITY,
+                  "Unknown Resource-Priority");
         setReason(SipStatus.SC_BAD_EXTENSION,
                   "Bad Extension");
         setReason(SipStatus.SC_EXTENSION_REQUIRED,
                   "Extension Required");
+        setReason(SipStatus.SC_SESSION_INTERVAL_TOO_SMALL,
+                  "Session Interval Too Small");
         setReason(SipStatus.SC_INTERVAL_TOO_BRIEF,
                   "Interval Too Brief");
+        setReason(SipStatus.SC_USE_IDENTITY_HEADER,
+                  "Use Identity Header");
+        setReason(SipStatus.SC_PROVIDE_REFERRER_IDENTITY,
+                  "Provide Referrer Identity");
+        setReason(SipStatus.SC_ANONYMITY_DISALLOWED,
+                  "Anonymity Disallowed");
+        setReason(SipStatus.SC_BAD_IDENTITY_INFO,
+                  "Bad Identity-Info");
+        setReason(SipStatus.SC_UNSUPPORTED_CERTIFICATE,
+                  "Unsupported Certificate");
+        setReason(SipStatus.SC_INVALID_IDENTITY_HEADER,
+                  "Invalid Identity Header");
         setReason(SipStatus.SC_TEMPORARILY_UNAVAILABLE,
                   "Temporarily Unavailable");
         setReason(SipStatus.SC_CALL_TRANSACTION_DOES_NOT_EXIST,
@@ -213,6 +233,8 @@
                   "Request Pending");
         setReason(SipStatus.SC_UNDECIPHERABLE,
                   "Undecipherable");
+        setReason(SipStatus.SC_SECURITY_AGREEMENT_REQUIRED,
+                  "Security Agreement Required");
 
 
         // --- 5xx Server Failure ---
@@ -230,6 +252,8 @@
                   "Version Not Supported");
         setReason(SipStatus.SC_MESSAGE_TOO_LARGE,
                   "Message Too Large");
+        setReason(SipStatus.SC_PRECONDITION_FAILURE,
+                  "Precondition Failure");
 
 
         // --- 6xx Global Failures ---

Modified: httpcomponents/httpcore/trunk/contrib/src/main/java/org/apache/http/contrib/sip/SipStatus.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/contrib/src/main/java/org/apache/http/contrib/sip/SipStatus.java?rev=607549&r1=607548&r2=607549&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/contrib/src/main/java/org/apache/http/contrib/sip/SipStatus.java
(original)
+++ httpcomponents/httpcore/trunk/contrib/src/main/java/org/apache/http/contrib/sip/SipStatus.java
Sun Dec 30 07:11:42 2007
@@ -33,9 +33,16 @@
 
 /**
  * Constants enumerating the SIP status codes.
- * All status codes defined in RFC 3261 (SIP/2.0)
- * and RFC 3265 (SIP-Specific Event Notification)
- * are listed.
+ * All status codes registered at
+ * <a href="http://www.iana.org/assignments/sip-parameters">
+ * http://www.iana.org/assignments/sip-parameters
+ * </a>
+ * on 2007-12-30 are listed.
+ * The defining RFCs include RFC 3261 (SIP/2.0),
+ * RFC 3265 (SIP-Specific Event Notification),
+ * RFC 4412 (Communications Resource Priority for SIP),
+ * RFC 4474 (Enhancements for Authenticated Identity Management in SIP),
+ * and others.
  * 
  * @author <a href="mailto:rolandw at apache.org">Roland Weber</a>
  * 
@@ -67,7 +74,7 @@
     public static final int SC_OK = 200;
 
     /** <tt>202 Accepted</tt>. RFC 3265, section 6.4. */
-    public static final int SC_ACCEPTED = 489;
+    public static final int SC_ACCEPTED = 202;
 
 
     // --- 3xx Redirection ---
@@ -124,6 +131,9 @@
     /** <tt>410 Gone</tt>. RFC 3261, section 21.4.10. */
     public static final int SC_GONE = 410;
 
+    /** <tt>412 Conditional Request Failed</tt>. RFC 3903, section 11.2.1. */
+    public static final int SC_CONDITIONAL_REQUEST_FAILED = 412;
+
     /** <tt>413 Request Entity Too Large</tt>. RFC 3261, section 21.4.11. */
     public static final int SC_REQUEST_ENTITY_TOO_LARGE = 413;
 
@@ -136,15 +146,39 @@
     /** <tt>416 Unsupported URI Scheme</tt>. RFC 3261, section 21.4.14. */
     public static final int SC_UNSUPPORTED_URI_SCHEME = 416;
 
+    /** <tt>417 Unknown Resource-Priority</tt>. RFC 4412, section 12.4. */
+    public static final int SC_UNKNOWN_RESOURCE_PRIORITY = 417;
+
     /** <tt>420 Bad Extension</tt>. RFC 3261, section 21.4.15. */
     public static final int SC_BAD_EXTENSION = 420;
 
     /** <tt>421 Extension Required</tt>. RFC 3261, section 21.4.16. */
     public static final int SC_EXTENSION_REQUIRED = 421;
 
+    /** <tt>422 Session Interval Too Small</tt>. RFC 4028, chapter 6. */
+    public static final int SC_SESSION_INTERVAL_TOO_SMALL = 422;
+
     /** <tt>423 Interval Too Brief</tt>. RFC 3261, section 21.4.17. */
     public static final int SC_INTERVAL_TOO_BRIEF = 423;
 
+    /** <tt>428 Use Identity Header</tt>. RFC 4474, section 14.2. */
+    public static final int SC_USE_IDENTITY_HEADER = 428;
+
+    /** <tt>429 Provide Referrer Identity</tt>. RFC 3892, chapter 5. */
+    public static final int SC_PROVIDE_REFERRER_IDENTITY = 429;
+
+    /** <tt>433 Anonymity Disallowed</tt>. RFC 5079, chapter 5. */
+    public static final int SC_ANONYMITY_DISALLOWED = 433;
+
+    /** <tt>436 Bad Identity-Info</tt>. RFC 4474, section 14.3. */
+    public static final int SC_BAD_IDENTITY_INFO = 436;
+
+    /** <tt>437 Unsupported Certificate</tt>. RFC 4474, section 14.4. */
+    public static final int SC_UNSUPPORTED_CERTIFICATE = 437;
+
+    /** <tt>438 Invalid Identity Header</tt>. RFC 4474, section 14.5. */
+    public static final int SC_INVALID_IDENTITY_HEADER = 438;
+
     /** <tt>480 Temporarily Unavailable</tt>. RFC 3261, section 21.4.18. */
     public static final int SC_TEMPORARILY_UNAVAILABLE = 480;
 
@@ -184,6 +218,9 @@
     /** <tt>493 Undecipherable</tt>. RFC 3261, section 21.4.28. */
     public static final int SC_UNDECIPHERABLE = 493;
 
+    /** <tt>494 Security Agreement Required</tt>. RFC 3329, section 6.4. */
+    public static final int SC_SECURITY_AGREEMENT_REQUIRED = 494;
+
 
     // --- 5xx Server Failure ---
 
@@ -207,6 +244,9 @@
 
     /** <tt>513 Message Too Large</tt>. RFC 3261, section 21.5.7. */
     public static final int SC_MESSAGE_TOO_LARGE = 513;
+
+    /** <tt>580 Precondition Failure</tt>. RFC 3312, chapter 8. */
+    public static final int SC_PRECONDITION_FAILURE = 580;
 
 
     // --- 6xx Global Failures ---



Mime
View raw message