hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rola...@apache.org
Subject svn commit: r569634 - /jakarta/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/client/methods/HttpOptions.java
Date Sat, 25 Aug 2007 07:27:56 GMT
Author: rolandw
Date: Sat Aug 25 00:27:56 2007
New Revision: 569634

URL: http://svn.apache.org/viewvc?rev=569634&view=rev
Log:
added throws declaration for ParseException

Modified:
    jakarta/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/client/methods/HttpOptions.java

Modified: jakarta/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/client/methods/HttpOptions.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/client/methods/HttpOptions.java?rev=569634&r1=569633&r2=569634&view=diff
==============================================================================
--- jakarta/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/client/methods/HttpOptions.java
(original)
+++ jakarta/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/client/methods/HttpOptions.java
Sat Aug 25 00:27:56 2007
@@ -40,6 +40,7 @@
 import org.apache.http.Header;
 import org.apache.http.HeaderElement;
 import org.apache.http.HttpResponse;
+import org.apache.http.ParseException;
 
 /**
  * HTTP OPTIONS method.
@@ -82,7 +83,9 @@
         return METHOD_NAME;
     }
     
-    public Set getAllowedMethods(final HttpResponse response) {
+    public Set getAllowedMethods(final HttpResponse response)
+        throws ParseException {
+
         if (response == null) {
             throw new IllegalArgumentException("HTTP response may not be null");
         }



Mime
View raw message