Examples of BasicHeaderElementIterator


Examples of org.apache.http.message.BasicHeaderElementIterator

{
  public long getKeepAliveDuration(HttpResponse paramHttpResponse, HttpContext paramHttpContext)
  {
    if (paramHttpResponse == null)
      throw new IllegalArgumentException("HTTP response may not be null");
    BasicHeaderElementIterator localBasicHeaderElementIterator = new BasicHeaderElementIterator(paramHttpResponse.headerIterator("Keep-Alive"));
    while (localBasicHeaderElementIterator.hasNext())
    {
      HeaderElement localHeaderElement = localBasicHeaderElementIterator.nextElement();
      String str1 = localHeaderElement.getName();
      String str2 = localHeaderElement.getValue();
      if ((str2 != null) && (str1.equalsIgnoreCase("timeout")))
        try
        {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.