railo.commons.net.http.httpclient3
Class HttpMethodCloner

java.lang.Object
  extended by railo.commons.net.http.httpclient3.HttpMethodCloner

public class HttpMethodCloner
extends Object

In this class are only methods to copy a HttpMethod: PUT, GET, POST,DELETE, TRACE, ...


Constructor Summary
HttpMethodCloner()
           
 
Method Summary
static org.apache.commons.httpclient.HttpMethod clone(org.apache.commons.httpclient.HttpMethod m)
          Clones a HttpMethod.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpMethodCloner

public HttpMethodCloner()
Method Detail

clone

public static org.apache.commons.httpclient.HttpMethod clone(org.apache.commons.httpclient.HttpMethod m)
Clones a HttpMethod. <br> <b>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


Copyright © 2012 Railo