Example usage for org.apache.http.client.utils CloneUtils clone

List of usage examples for org.apache.http.client.utils CloneUtils clone

Introduction

In this page you can find the example usage for org.apache.http.client.utils CloneUtils clone.

Prototype

public static Object clone(final Object obj) throws CloneNotSupportedException 

Source Link

Usage

From source file:Main.java

public static Object clone(Object obj) {
    try {/* w ww.  ja  v a  2 s. com*/
        return CloneUtils.clone(obj);
    } catch (CloneNotSupportedException e) {
        e.printStackTrace();
        return null;
    }
}

From source file:cn.isif.util_plus.http.client.HttpRequest.java

@Override
public Object clone() throws CloneNotSupportedException {
    HttpRequest clone = (HttpRequest) super.clone();
    if (this.entity != null) {
        clone.entity = (HttpEntity) CloneUtils.clone(this.entity);
    }/*from   w w  w .  ja  va  2s  . c om*/
    return clone;
}