org.apache.commons.httpclient.methods
Class UrlGetMethod
java.lang.Object
|
+--org.apache.commons.httpclient.HttpMethodBase
|
+--org.apache.commons.httpclient.methods.GetMethod
|
+--org.apache.commons.httpclient.methods.UrlGetMethod
Deprecated. use GetMethod
- public class UrlGetMethod
- extends GetMethod
- implements HttpUrlMethod
Implements the URL version of GetMethod. It serves the
same purpose as GetMethod but it takes URL instead of
a path.
- Author:
- Marc A. Saegesser, Mike Bowler
Constructor Summary |
UrlGetMethod()
Deprecated. No-arg constructor. |
UrlGetMethod(java.lang.String url)
Deprecated. Create an instance with the specified URL |
UrlGetMethod(java.lang.String url,
java.io.File fileData)
Deprecated. Constructor. |
UrlGetMethod(java.lang.String url,
java.lang.String tempDir)
Deprecated. Create an instance with the specified URL and temporary directory. |
UrlGetMethod(java.lang.String url,
java.lang.String tempDir,
java.lang.String tempFile)
Deprecated. Constructor. |
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 class org.apache.commons.httpclient.methods.GetMethod |
getFileData,
getName,
getTempDir,
getTempFile,
getUseDisk,
readResponseBody,
recycle,
setFileData,
setTempDir,
setTempFile,
setUseDisk |
Methods inherited from class org.apache.commons.httpclient.HttpMethodBase |
addAuthorizationRequestHeader,
addContentLengthRequestHeader,
addCookieRequestHeader,
addHostRequestHeader,
addProxyAuthorizationRequestHeader,
addProxyConnectionHeader,
addRequestHeader,
addRequestHeader,
addRequestHeaders,
addResponseFooter,
addUserAgentRequestHeader,
checkNotUsed,
checkUsed,
execute,
fakeResponse,
generateRequestLine,
getAuthenticationRealm,
getContentCharSet,
getDoAuthentication,
getFollowRedirects,
getHostConfiguration,
getMethodRetryHandler,
getPath,
getProxyAuthenticationRealm,
getQueryString,
getRecoverableExceptionCount,
getRequestCharSet,
getRequestContentLength,
getRequestHeader,
getRequestHeaderGroup,
getRequestHeaders,
getResponseBody,
getResponseBodyAsStream,
getResponseBodyAsString,
getResponseCharSet,
getResponseContentLength,
getResponseFooter,
getResponseFooters,
getResponseHeader,
getResponseHeaderGroup,
getResponseHeaders,
getResponseStream,
getResponseTrailerHeaderGroup,
getStatusCode,
getStatusLine,
getStatusText,
getURI,
hasBeenUsed,
isConnectionCloseForced,
isHttp11,
isStrictMode,
processResponseBody,
processResponseHeaders,
processStatusLine,
readResponse,
readResponseHeaders,
readStatusLine,
releaseConnection,
removeRequestHeader,
responseBodyConsumed,
setConnectionCloseForced,
setDoAuthentication,
setFollowRedirects,
setHostConfiguration,
setHttp11,
setMethodRetryHandler,
setPath,
setQueryString,
setQueryString,
setRequestHeader,
setRequestHeader,
setResponseStream,
setStrictMode,
shouldCloseConnection,
validate,
writeRequest,
writeRequestBody,
writeRequestHeaders,
writeRequestLine |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
UrlGetMethod
public UrlGetMethod()
- Deprecated.
- No-arg constructor.
UrlGetMethod
public UrlGetMethod(java.lang.String url)
throws java.net.MalformedURLException
- Deprecated.
- Create an instance with the specified URL
- Parameters:
url
- The URL- Throws:
- java.net.MalformedURLException - If the url isn't valid.
UrlGetMethod
public UrlGetMethod(java.lang.String url,
java.lang.String tempDir)
throws java.net.MalformedURLException
- Deprecated.
- Create an instance with the specified URL and temporary directory.
- Parameters:
url
- The URLtempDir
- The temporary directory- Throws:
- java.net.MalformedURLException - If the url isn't valid.
UrlGetMethod
public UrlGetMethod(java.lang.String url,
java.lang.String tempDir,
java.lang.String tempFile)
throws java.net.MalformedURLException
- Deprecated.
- Constructor.
- Parameters:
url
- the path of the requesttempDir
- the directory in which to store temporary filestempFile
- the file (under tempDir) to buffer contents to- Throws:
- java.net.MalformedURLException - If the url isn't valid.
UrlGetMethod
public UrlGetMethod(java.lang.String url,
java.io.File fileData)
throws java.net.MalformedURLException
- Deprecated.
- Constructor.
- Parameters:
url
- the path of the requestfileData
- the file to buffer contents to- Throws:
- java.net.MalformedURLException - If the url isn't valid.
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.
- Specified by:
- setUrl in interface HttpUrlMethod
- Parameters:
url
- - the URL for this request.- Throws:
- java.net.MalformedURLException - If the url isn't valid.
getUrl
public java.lang.String getUrl()
- Deprecated.
- Returns this request's URL.
- Specified by:
- getUrl in interface HttpUrlMethod
- Returns:
- the request's URL.
Copyright © 2001-2004 Apache Software Foundation. All Rights Reserved.