org.apache.commons.httpclient.methods
Class UrlPostMethod
java.lang.Object
|
+--org.apache.commons.httpclient.HttpMethodBase
|
+--org.apache.commons.httpclient.methods.GetMethod
|
+--org.apache.commons.httpclient.methods.EntityEnclosingMethod
|
+--org.apache.commons.httpclient.methods.PostMethod
|
+--org.apache.commons.httpclient.methods.UrlPostMethod
Deprecated. use PostMethod
- public class UrlPostMethod
- extends PostMethod
- implements HttpUrlMethod
HttpUrlMethod version of PostMethod.
- Author:
- Marc A. Saegesser, Mike Bowler
Method Summary |
String |
getUrl()
Deprecated. Returns this request's URL. |
void |
setUrl(String url)
Deprecated. Sets the URL. |
Methods inherited from class org.apache.commons.httpclient.methods.PostMethod |
addParameter,
addParameter,
addParameters,
addRequestHeaders,
generateRequestBody,
getName,
getParameter,
getParameters,
recycle,
removeParameter,
removeParameter,
setParameter,
setRequestBody,
setRequestBody,
setRequestBody |
Methods inherited from class org.apache.commons.httpclient.methods.GetMethod |
getFileData,
getResponseBody,
getResponseBodyAsStream,
getTempDir,
getTempFile,
getUseDisk,
readResponseBody,
setFileData,
setTempDir,
setTempFile,
setUseDisk |
Methods inherited from class org.apache.commons.httpclient.HttpMethodBase |
addAuthorizationRequestHeader,
addContentLengthRequestHeader,
addCookieRequestHeader,
addHostRequestHeader,
addProxyAuthorizationRequestHeader,
addRequestHeader,
addRequestHeader,
addResponseFooter,
addUserAgentRequestHeader,
checkNotUsed,
checkUsed,
execute,
generateRequestLine,
getContentCharSet,
getDoAuthentication,
getHostConfiguration,
getPath,
getQueryString,
getRecoverableExceptionCount,
getRequestCharSet,
getRequestHeader,
getRequestHeaderGroup,
getRequestHeaders,
getResponseBodyAsString,
getResponseCharSet,
getResponseFooter,
getResponseFooters,
getResponseHeader,
getResponseHeaderGroup,
getResponseHeaders,
getResponseTrailerHeaderGroup,
getStatusCode,
getStatusLine,
getStatusText,
getURI,
hasBeenUsed,
isHttp11,
isStrictMode,
processResponseBody,
processResponseHeaders,
processStatusLine,
readResponse,
readResponseHeaders,
readStatusLine,
releaseConnection,
removeRequestHeader,
responseBodyConsumed,
setDoAuthentication,
setHostConfiguration,
setHttp11,
setPath,
setQueryString,
setQueryString,
setRequestHeader,
setRequestHeader,
setResponseStream,
setStrictMode,
shouldCloseConnection,
validate,
writeRequest,
writeRequestHeaders,
writeRequestLine |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
UrlPostMethod
public UrlPostMethod()
- Deprecated.
- No-arg constructor.
UrlPostMethod
public UrlPostMethod(String url)
throws MalformedURLException
- Deprecated.
- Path-setting constructor.
- Parameters:
url
- the URL to request- Throws:
- MalformedURLException - If the url isn't valid.
UrlPostMethod
public UrlPostMethod(String url,
String tempDir)
throws MalformedURLException
- Deprecated.
- Constructor.
- Parameters:
url
- the URL to requesttempDir
- directory to store temp files in- Throws:
- MalformedURLException - If the url isn't valid.
UrlPostMethod
public UrlPostMethod(String url,
String tempDir,
String tempFile)
throws MalformedURLException
- Deprecated.
- Constructor.
- Parameters:
url
- the URL to requesttempDir
- directory to store temp files intempFile
- file to store temporary data in- Throws:
- MalformedURLException - If the url isn't valid.
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.
- Specified by:
- setUrl in interface HttpUrlMethod
- Parameters:
url
- - the URL for this request.- Throws:
- MalformedURLException - If the url isn't valid.
getUrl
public String getUrl()
- Deprecated.
- Returns this request's URL.
- Specified by:
- getUrl in interface HttpUrlMethod
- Returns:
- the request's URL.
Copyright (c) 1999-2002 - Apache Software Foundation