View Javadoc

1   /*
2    * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//httpclient/src/java/org/apache/commons/httpclient/methods/DeleteMethod.java,v 1.14 2004/04/18 23:51:37 jsdever Exp $
3    * $Revision: 155418 $
4    * $Date: 2005-02-26 08:01:52 -0500 (Sat, 26 Feb 2005) $
5    *
6    * ====================================================================
7    *
8    *  Copyright 1999-2004 The Apache Software Foundation
9    *
10   *  Licensed under the Apache License, Version 2.0 (the "License");
11   *  you may not use this file except in compliance with the License.
12   *  You may obtain a copy of the License at
13   *
14   *      http://www.apache.org/licenses/LICENSE-2.0
15   *
16   *  Unless required by applicable law or agreed to in writing, software
17   *  distributed under the License is distributed on an "AS IS" BASIS,
18   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19   *  See the License for the specific language governing permissions and
20   *  limitations under the License.
21   * ====================================================================
22   *
23   * This software consists of voluntary contributions made by many
24   * individuals on behalf of the Apache Software Foundation.  For more
25   * information on the Apache Software Foundation, please see
26   * <http://www.apache.org/>.
27   *
28   */
29  
30  package org.apache.commons.httpclient.methods;
31  
32  import org.apache.commons.httpclient.HttpMethodBase;
33  
34  
35  /***
36   * Implements the HTTP DELETE method.
37   * <p>
38   * The HTTP DELETE method is defined in section 9.7 of 
39   * <a href="http://www.ietf.org/rfc/rfc2616.txt">RFC2616</a>:
40   * <blockquote>
41   * The DELETE method requests that the origin server delete the resource
42   * identified by the Request-URI. This method MAY be overridden by human
43   * intervention (or other means) on the origin server.
44   * </blockquote>
45   * </p>
46   *
47   * @author <a href="mailto:remm@apache.org">Remy Maucherat</a>
48   * @author <a href="mailto:bcholmes@apache.org">B.C. Holmes</a>
49   * @author <a href="mailto:jsdever@apache.org">Jeff Dever</a>
50   *
51   * @version $Revision: 155418 $
52   * @since 1.0
53   */
54  public class DeleteMethod
55      extends HttpMethodBase {
56  
57  
58      // ----------------------------------------------------------- Constructors
59  
60  
61      /***
62       * No-arg constructor.
63       *
64       * @since 1.0
65       */
66      public DeleteMethod() {
67      }
68  
69  
70      /***
71       * Constructor specifying a URI.
72       *
73       * @param uri either an absolute or relative URI
74       *
75       * @since 1.0
76       */
77      public DeleteMethod(String uri) {
78          super(uri);
79      }
80  
81  
82      // ----------------------------------------------------- HttpMethod Methods
83  
84      /***
85       * Returns <tt>"DELETE"</tt>.
86       * @return <tt>"DELETE"</tt>
87       *
88       * @since 2.0
89       */
90      public String getName() {
91          return "DELETE";
92      }
93  
94  
95  }