List of usage examples for org.apache.commons.httpclient HttpMethod getRequestHeaders
public abstract Header[] getRequestHeaders(String paramString);
From source file:com.liferay.portal.util.HttpImpl.java
protected boolean hasRequestHeader(HttpMethod httpMethod, String name) { Header[] headers = httpMethod.getRequestHeaders(name); if (headers.length == 0) { return false; } else {/*from www . j av a 2 s. co m*/ return true; } }
From source file:com.twelve.capital.external.feed.util.HttpImpl.java
protected boolean hasRequestHeader(HttpMethod httpMethod, String name) { Header[] headers = httpMethod.getRequestHeaders(name); if (headers.length == 0) { return false; }//from w w w. j a va 2s . c o m return true; }