Example usage for org.apache.commons.httpclient HttpMethod getRequestHeaders

List of usage examples for org.apache.commons.httpclient HttpMethod getRequestHeaders

Introduction

In this page you can find the example usage for org.apache.commons.httpclient HttpMethod getRequestHeaders.

Prototype

public abstract Header[] getRequestHeaders(String paramString);

Source Link

Usage

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;
}