org.apache.commons.httpclient
Interface HttpUrlMethod
- All Superinterfaces:
- HttpMethod
- All Known Implementing Classes:
- UrlDeleteMethod, UrlGetMethod, UrlHeadMethod, UrlOptionsMethod, UrlPostMethod, UrlPutMethod
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 |
java.lang.String |
getUrl()
Deprecated. Returns this request's URL. |
void |
setUrl(java.lang.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 |
setUrl
public void setUrl(java.lang.String url)
throws java.net.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:
java.net.MalformedURLException
- when the url can't be created
getUrl
public java.lang.String getUrl()
- Deprecated.
- Returns this request's URL.
- Returns:
- the request's URL.
Copyright (c) 1999-2002 - Apache Software Foundation