2
* $Header: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/methods/Attic/UrlDeleteMethod.java,v 1.12.2.1 2004/02/22 18:21:15 olegk Exp $
3
* $Revision: 1.12.2.1 $
4
* $Date: 2004/02/22 18:21:15 $
6
* ====================================================================
8
* Copyright 1999-2004 The Apache Software Foundation
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
14
* http://www.apache.org/licenses/LICENSE-2.0
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
* ====================================================================
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/>.
28
* [Additional notices, if required by prior licensing conditions]
32
package org.apache.commons.httpclient.methods;
34
import org.apache.commons.httpclient.HttpUrlMethod;
35
import org.apache.commons.httpclient.util.URIUtil;
37
import java.net.MalformedURLException;
40
* HttpUrlMethod version of DeleteMethod.
42
* @deprecated use DeleteMethod
44
* @author Marc A. Saegesser
45
* @author <a href="mailto:mbowler@GargoyleSoftware.com">Mike Bowler</a>
47
public class UrlDeleteMethod extends DeleteMethod implements HttpUrlMethod {
49
// ----------------------------------------------------- Instance Variables
56
public UrlDeleteMethod() {
62
* Path-setting constructor.
63
* @param url the path of the request
64
* @throws MalformedURLException If the url is not valid.
66
public UrlDeleteMethod(String url) throws MalformedURLException {
67
super(URIUtil.getPath(url));
72
* Sets the URL. Calls the underlying HttpMethod.setPath()
73
* with the url's path. If the url contains a query string
74
* the underlying HttpMethod.setQueryString() is called.
76
* @param url - the URL for this request.
77
* @throws MalformedURLException If the url is not valid.
79
public void setUrl(String url) throws MalformedURLException {
80
setPath(URIUtil.getPath(url));
82
String query = URIUtil.getQuery(url);
83
if (query != null && query.length() > 0) {
84
super.setQueryString(query);
92
public String getUrl() {