KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > commons > httpclient > HttpUrlMethod


1 /*
2  * $Header: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/Attic/HttpUrlMethod.java,v 1.9.2.1 2004/02/22 18:21:13 olegk Exp $
3  * $Revision: 1.9.2.1 $
4  * $Date: 2004/02/22 18:21:13 $
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  * [Additional notices, if required by prior licensing conditions]
29  *
30  */

31
32 package org.apache.commons.httpclient;
33
34 import java.net.MalformedURLException JavaDoc;
35
36 /**
37  * HttpUrlMethod extends HttpMethod. HttpMethod only contains the path portion
38  * of a URL and gets the host:port from the connection maintained in
39  * HttpCleint. HttpUrlMethod is initialized with a fully specified URL and is
40  * used with HttpMultiClient. HttpMultiClient chooses the appropriate
41  * HttpConnectoin (via MultiThreadedHttpConnectionManager) based on the host and port in
42  * the URL.
43  *
44  * @deprecated use HttpMethod
45  *
46  * @author Marc A. Saegesser
47  */

48 public interface HttpUrlMethod extends HttpMethod {
49     //~ Methods ииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииии
50

51     /**
52      * Sets the URL. Calls the underlying HttpMethod.setPath() with the url's
53      * path. If the url contains a query string the underlying
54      * HttpMethod.setQueryString() is called.
55      *
56      * @param url - the URL for this request.
57      * @throws MalformedURLException when the <i>url</i> can't be created
58      */

59     void setUrl(String JavaDoc url) throws MalformedURLException JavaDoc;
60
61     /**
62      * Returns this request's URL.
63      *
64      * @return the request's URL.
65      */

66     String JavaDoc getUrl();
67 }
68
Popular Tags