01: /*
02: * $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 $
03: * $Revision: 480424 $
04: * $Date: 2006-11-29 06:56:49 +0100 (Wed, 29 Nov 2006) $
05: *
06: * ====================================================================
07: *
08: * Licensed to the Apache Software Foundation (ASF) under one or more
09: * contributor license agreements. See the NOTICE file distributed with
10: * this work for additional information regarding copyright ownership.
11: * The ASF licenses this file to You under the Apache License, Version 2.0
12: * (the "License"); you may not use this file except in compliance with
13: * the License. You may obtain a copy of the License at
14: *
15: * http://www.apache.org/licenses/LICENSE-2.0
16: *
17: * Unless required by applicable law or agreed to in writing, software
18: * distributed under the License is distributed on an "AS IS" BASIS,
19: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20: * See the License for the specific language governing permissions and
21: * limitations under the License.
22: * ====================================================================
23: *
24: * This software consists of voluntary contributions made by many
25: * individuals on behalf of the Apache Software Foundation. For more
26: * information on the Apache Software Foundation, please see
27: * <http://www.apache.org/>.
28: *
29: */
30:
31: package org.apache.commons.httpclient.methods;
32:
33: import org.apache.commons.httpclient.HttpMethodBase;
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: 480424 $
52: * @since 1.0
53: */
54: public class DeleteMethod extends HttpMethodBase {
55:
56: // ----------------------------------------------------------- Constructors
57:
58: /**
59: * No-arg constructor.
60: *
61: * @since 1.0
62: */
63: public DeleteMethod() {
64: }
65:
66: /**
67: * Constructor specifying a URI.
68: *
69: * @param uri either an absolute or relative URI
70: *
71: * @since 1.0
72: */
73: public DeleteMethod(String uri) {
74: super (uri);
75: }
76:
77: // ----------------------------------------------------- HttpMethod Methods
78:
79: /**
80: * Returns <tt>"DELETE"</tt>.
81: * @return <tt>"DELETE"</tt>
82: *
83: * @since 2.0
84: */
85: public String getName() {
86: return "DELETE";
87: }
88:
89: }
|