Save This Page
Home » commons-httpclient-3.1-src » org.apache.commons » httpclient » methods » [javadoc | source]
org.apache.commons.httpclient.methods
public class: UrlGetMethod [javadoc | source]
java.lang.Object
   org.apache.commons.httpclient.HttpMethodBase
      org.apache.commons.httpclient.methods.GetMethod
         org.apache.commons.httpclient.methods.UrlGetMethod

All Implemented Interfaces:
    HttpUrlMethod, HttpMethod

Deprecated! use - GetMethod

Implements the URL version of GetMethod. It serves the same purpose as GetMethod but it takes URL instead of a path.
Fields inherited from org.apache.commons.httpclient.HttpMethodBase:
statusLine,  effectiveVersion
Constructor:
 public UrlGetMethod() 
 public UrlGetMethod(String url) throws MalformedURLException 
    Create an instance with the specified URL
    Parameters:
    url - The URL
    Throws:
    MalformedURLException - If the url isn't valid.
 public UrlGetMethod(String url,
    String tempDir) throws MalformedURLException 
    Create an instance with the specified URL and temporary directory.
    Parameters:
    url - The URL
    tempDir - The temporary directory
    Throws:
    MalformedURLException - If the url isn't valid.
 public UrlGetMethod(String url,
    File fileData) throws MalformedURLException 
    Constructor.
    Parameters:
    url - the path of the request
    fileData - the file to buffer contents to
    Throws:
    MalformedURLException - If the url isn't valid.
 public UrlGetMethod(String url,
    String tempDir,
    String tempFile) throws MalformedURLException 
    Constructor.
    Parameters:
    url - the path of the request
    tempDir - the directory in which to store temporary files
    tempFile - the file (under tempDir) to buffer contents to
    Throws:
    MalformedURLException - If the url isn't valid.
Method from org.apache.commons.httpclient.methods.UrlGetMethod Summary:
getUrl,   setUrl
Methods from org.apache.commons.httpclient.methods.GetMethod:
getName,   recycle
Methods from org.apache.commons.httpclient.HttpMethodBase:
abort,   addCookieRequestHeader,   addHostRequestHeader,   addProxyConnectionHeader,   addRequestHeader,   addRequestHeader,   addRequestHeaders,   addResponseFooter,   addUserAgentRequestHeader,   checkNotUsed,   checkUsed,   execute,   fakeResponse,   generateRequestLine,   getAuthenticationRealm,   getContentCharSet,   getDoAuthentication,   getEffectiveVersion,   getFollowRedirects,   getHostAuthState,   getHostConfiguration,   getMethodRetryHandler,   getName,   getParams,   getPath,   getProxyAuthState,   getProxyAuthenticationRealm,   getQueryString,   getRecoverableExceptionCount,   getRequestCharSet,   getRequestHeader,   getRequestHeaderGroup,   getRequestHeaders,   getRequestHeaders,   getResponseBody,   getResponseBody,   getResponseBodyAsStream,   getResponseBodyAsString,   getResponseBodyAsString,   getResponseCharSet,   getResponseContentLength,   getResponseFooter,   getResponseFooters,   getResponseHeader,   getResponseHeaderGroup,   getResponseHeaders,   getResponseHeaders,   getResponseStream,   getResponseTrailerHeaderGroup,   getStatusCode,   getStatusLine,   getStatusText,   getURI,   hasBeenUsed,   isAborted,   isConnectionCloseForced,   isHttp11,   isRequestSent,   isStrictMode,   processCookieHeaders,   processResponseBody,   processResponseHeaders,   processStatusLine,   readResponse,   readResponseBody,   readResponseHeaders,   readStatusLine,   recycle,   releaseConnection,   removeRequestHeader,   removeRequestHeader,   responseBodyConsumed,   setConnectionCloseForced,   setDoAuthentication,   setFollowRedirects,   setHostConfiguration,   setHttp11,   setMethodRetryHandler,   setParams,   setPath,   setQueryString,   setQueryString,   setRequestHeader,   setRequestHeader,   setResponseStream,   setStrictMode,   setURI,   shouldCloseConnection,   validate,   writeRequest,   writeRequestBody,   writeRequestHeaders,   writeRequestLine
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.httpclient.methods.UrlGetMethod Detail:
 public String getUrl() 
      Deprecated!
    Returns this request's URL.
 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.