List of usage examples for org.apache.commons.httpclient HttpMethodBase getHostConfiguration
@Deprecated
@Override
public HostConfiguration getHostConfiguration()
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 ww. j a va 2 s. c om try { copy.setParams((HttpMethodParams) m.getParams().clone()); } catch (CloneNotSupportedException e) { } }
From source file:smartrics.rest.fitnesse.fixture.support.http.URIBuilder.java
@SuppressWarnings("deprecation") public void setURI(org.apache.commons.httpclient.HttpMethodBase m, URI uri) throws URIException { HostConfiguration conf = m.getHostConfiguration(); if (uri.isAbsoluteURI()) { conf.setHost(new HttpHost(uri)); m.setHostConfiguration(conf);/*w ww . j a v a 2 s .c o m*/ } m.setPath(uri.getPath() != null ? uri.getEscapedPath() : "/"); m.setQueryString(uri.getQuery()); }