當前位置: 首頁>>代碼示例>>Java>>正文


Java HttpParams.getBooleanParameter方法代碼示例

本文整理匯總了Java中org.apache.http.params.HttpParams.getBooleanParameter方法的典型用法代碼示例。如果您正苦於以下問題:Java HttpParams.getBooleanParameter方法的具體用法?Java HttpParams.getBooleanParameter怎麽用?Java HttpParams.getBooleanParameter使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.apache.http.params.HttpParams的用法示例。


在下文中一共展示了HttpParams.getBooleanParameter方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: newInstance

import org.apache.http.params.HttpParams; //導入方法依賴的package包/類
public CookieSpec newInstance(final HttpParams params) {
    if (params != null) {

        String[] patterns = null;
        Collection<?> param = (Collection<?>) params.getParameter(
                CookieSpecPNames.DATE_PATTERNS);
        if (param != null) {
            patterns = new String[param.size()];
            patterns = param.toArray(patterns);
        }
        boolean singleHeader = params.getBooleanParameter(
                CookieSpecPNames.SINGLE_COOKIE_HEADER, false);

        return new BestMatchSpec(patterns, singleHeader);
    } else {
        return new BestMatchSpec();
    }
}
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:19,代碼來源:BestMatchSpecFactory.java

示例2: newInstance

import org.apache.http.params.HttpParams; //導入方法依賴的package包/類
public CookieSpec newInstance(final HttpParams params) {
    if (params != null) {

        String[] patterns = null;
        Collection<?> param = (Collection<?>) params.getParameter(
                CookieSpecPNames.DATE_PATTERNS);
        if (param != null) {
            patterns = new String[param.size()];
            patterns = param.toArray(patterns);
        }
        boolean singleHeader = params.getBooleanParameter(
                CookieSpecPNames.SINGLE_COOKIE_HEADER, false);

        return new RFC2109Spec(patterns, singleHeader);
    } else {
        return new RFC2109Spec();
    }
}
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:19,代碼來源:RFC2109SpecFactory.java

示例3: newInstance

import org.apache.http.params.HttpParams; //導入方法依賴的package包/類
public CookieSpec newInstance(final HttpParams params) {
    if (params != null) {

        String[] patterns = null;
        Collection<?> param = (Collection<?>) params.getParameter(
                CookieSpecPNames.DATE_PATTERNS);
        if (param != null) {
            patterns = new String[param.size()];
            patterns = param.toArray(patterns);
        }
        boolean singleHeader = params.getBooleanParameter(
                CookieSpecPNames.SINGLE_COOKIE_HEADER, false);

        return new RFC2965Spec(patterns, singleHeader);
    } else {
        return new RFC2965Spec();
    }
}
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:19,代碼來源:RFC2965SpecFactory.java

示例4: isRedirecting

import org.apache.http.params.HttpParams; //導入方法依賴的package包/類
public static boolean isRedirecting(final HttpParams params) {
    if (params == null) {
        throw new IllegalArgumentException("HTTP parameters may not be null");
    }
    return params.getBooleanParameter
        (ClientPNames.HANDLE_REDIRECTS, true);
}
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:8,代碼來源:HttpClientParams.java

示例5: isAuthenticating

import org.apache.http.params.HttpParams; //導入方法依賴的package包/類
public static boolean isAuthenticating(final HttpParams params) {
    if (params == null) {
        throw new IllegalArgumentException("HTTP parameters may not be null");
    }
    return params.getBooleanParameter
        (ClientPNames.HANDLE_AUTHENTICATION, true);
}
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:8,代碼來源:HttpClientParams.java


注:本文中的org.apache.http.params.HttpParams.getBooleanParameter方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。