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.PostMethod
                    |
                    +--org.apache.commons.httpclient.methods.UrlPostMethod
All Implemented Interfaces:
HttpMethod, HttpUrlMethod

Deprecated. use PostMethod

public class UrlPostMethod
extends PostMethod
implements HttpUrlMethod

HttpUrlMethod version of PostMethod.

Author:
Marc A. Saegesser

Field Summary
 
Fields inherited from class org.apache.commons.httpclient.methods.PostMethod
buffer, CONTENT_LENGTH_AUTO, CONTENT_LENGTH_CHUNKED, parameters, repeatCount, requestBody, requestContentLength
 
Fields inherited from class org.apache.commons.httpclient.HttpMethodBase
USER_AGENT
 
Constructor Summary
UrlPostMethod()
          Deprecated. No-arg constructor.
UrlPostMethod(java.lang.String url)
          Deprecated. Path-setting constructor.
UrlPostMethod(java.lang.String url, java.lang.String tempDir)
          Deprecated. Constructor.
UrlPostMethod(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.PostMethod
addParameter, addParameter, addParameters, addRequestHeaders, generateRequestBody, generateRequestBodyAsString, getFollowRedirects, getName, getParameter, getParameters, getRequestBody, getRequestBodyAsString, getRequestContentLength, recycle, removeParameter, removeParameter, setParameter, setRequestBody, setRequestBody, setRequestContentLength, writeRequestBody
 
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, getRequestHeaders, getResponseBodyAsString, getResponseCharSet, getResponseFooter, getResponseFooters, getResponseHeader, getResponseHeaders, getStatusCode, getStatusLine, getStatusText, getURI, hasBeenUsed, isHttp11, isStrictMode, processResponseBody, processResponseHeaders, processStatusLine, readResponse, readResponseHeaders, readStatusLine, releaseConnection, removeRequestHeader, responseBodyConsumed, setDoAuthentication, setFollowRedirects, 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
 
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
 

Constructor Detail

UrlPostMethod

public UrlPostMethod()
Deprecated. 
No-arg constructor.


UrlPostMethod

public UrlPostMethod(java.lang.String url)
              throws java.net.MalformedURLException
Deprecated. 
Path-setting constructor.

Parameters:
url - the URL to request
Throws:
java.net.MalformedURLException

UrlPostMethod

public UrlPostMethod(java.lang.String url,
                     java.lang.String tempDir)
              throws java.net.MalformedURLException
Deprecated. 
Constructor.

Parameters:
url - the URL to request
tempDir - directory to store temp files in
Throws:
java.net.MalformedURLException

UrlPostMethod

public UrlPostMethod(java.lang.String url,
                     java.lang.String tempDir,
                     java.lang.String tempFile)
              throws java.net.MalformedURLException
Deprecated. 
Constructor.

Parameters:
url - the URL to request
tempDir - directory to store temp files in
tempFile - file to store temporary data in
Throws:
java.net.MalformedURLException
Method Detail

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 - when the url can't be created

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-2003 Apache Software Foundation. All Rights Reserved.