Example usage for org.apache.commons.httpclient HttpMethodBase setParams

List of usage examples for org.apache.commons.httpclient HttpMethodBase setParams

Introduction

In this page you can find the example usage for org.apache.commons.httpclient HttpMethodBase setParams.

Prototype

@Override
public void setParams(final HttpMethodParams params) 

Source Link

Document

Assigns HttpMethodParams HTTP protocol parameters for this method.

Usage

From source file:lucee.commons.net.http.httpclient3.HttpMethodCloner.java

private static void copyHttpMethodBase(HttpMethodBase m, HttpMethodBase copy) {
    if (m.getHostConfiguration() != null) {
        copy.setHostConfiguration(new HostConfiguration(m.getHostConfiguration()));
    }//from  w  w w  . ja v a 2s  .  c o m
    try {
        copy.setParams((HttpMethodParams) m.getParams().clone());
    } catch (CloneNotSupportedException e) {
    }
}