java.lang.Object
edu.internet2.middleware.grouperClientExt.org.apache.commons.httpclient.contrib.utils.HttpMethodCloner

public class HttpMethodCloner extends Object
Deprecated.
DISCLAIMER: HttpClient developers DO NOT actively support this component. The component is provided as a reference material, which may be inappropriate to be used without additional customization.
In this class are only methods to copy a HttpMethod: PUT, GET, POST,DELETE, TRACE, ...
  • Constructor Details

    • HttpMethodCloner

      public HttpMethodCloner()
      Deprecated.
  • Method Details

    • clone

      public static HttpMethod clone(HttpMethod m) throws IOException
      Deprecated.
      Clones a HttpMethod.
      Attention: You have to clone a method before it has been executed, because the URI can change if followRedirects is set to true.
      Parameters:
      m - the HttpMethod to clone
      Returns:
      the cloned HttpMethod, null if the HttpMethod could not be instantiated
      Throws:
      IOException - if the request body couldn't be read