Example usage for org.apache.commons.httpclient.params HttpMethodParams setDefaults

List of usage examples for org.apache.commons.httpclient.params HttpMethodParams setDefaults

Introduction

In this page you can find the example usage for org.apache.commons.httpclient.params HttpMethodParams setDefaults.

Prototype

public void setDefaults(HttpParams paramHttpParams)

Source Link

Usage

From source file:org.apache.maven.wagon.providers.webdav.HttpMethodConfiguration.java

public HttpMethodParams asMethodParams(HttpMethodParams defaults) {
    if (!hasParams()) {
        return null;
    }/*from  w  w  w . j ava2s . c o  m*/

    HttpMethodParams p = new HttpMethodParams();
    p.setDefaults(defaults);

    fillParams(p);

    return p;
}