org.apache.commons.httpclient
Interface HttpUrlMethod

All Superinterfaces:
HttpMethod
All Known Implementing Classes:
UrlPutMethod, UrlOptionsMethod, UrlHeadMethod, UrlDeleteMethod, UrlGetMethod, UrlPostMethod

Deprecated. use HttpMethod

public interface HttpUrlMethod
extends HttpMethod

HttpUrlMethod extends HttpMethod. HttpMethod only contains the path portion of a URL and gets the host:port from the connection maintained in HttpCleint. HttpUrlMethod is initialized with a fully specified URL and is used with HttpMultiClient. HttpMultiClient chooses the appropriate HttpConnectoin (via MultiThreadedHttpConnectionManager) based on the host and port in the URL.

Author:
Marc A. Saegesser

Method Summary
 String getUrl()
          Deprecated. Returns this request's URL.
 void setUrl(String url)
          Deprecated. Sets the URL.
 
Methods inherited from interface org.apache.commons.httpclient.HttpMethod
addRequestHeader, addRequestHeader, addResponseFooter, execute, getDoAuthentication, getFollowRedirects, getHostConfiguration, getName, getPath, getQueryString, getRequestHeader, getRequestHeaders, getResponseBody, getResponseBodyAsStream, getResponseBodyAsString, getResponseFooter, getResponseFooters, getResponseHeader, getResponseHeaders, getStatusCode, getStatusLine, getStatusText, getURI, hasBeenUsed, isStrictMode, recycle, releaseConnection, removeRequestHeader, setDoAuthentication, setFollowRedirects, setPath, setQueryString, setQueryString, setRequestHeader, setRequestHeader, setStrictMode, validate
 

Method Detail

setUrl

public void setUrl(String url)
            throws MalformedURLException
Deprecated. 
Sets the URL. Calls the underlying HttpMethod.setPath() with the url's path. If the url contains a query string the underlying HttpMethod.setQueryString() is called.
Parameters:
url - - the URL for this request.
Throws:
MalformedURLException - when the url can't be created

getUrl

public String getUrl()
Deprecated. 
Returns this request's URL.
Returns:
the request's URL.


Copyright © 2001-2004 Apache Software Foundation. All Rights Reserved.