List of usage examples for org.apache.http.client.utils CloneUtils clone
public static Object clone(final Object obj) throws CloneNotSupportedException
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; }