Java 类org.apache.http.cookie.params.CookieSpecPNames 实例源码

项目:lams    文件:BestMatchSpecFactory.java   
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();
    }
}
项目:lams    文件:RFC2109SpecFactory.java   
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();
    }
}
项目:lams    文件:RFC2965SpecFactory.java   
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();
    }
}
项目:remote-files-sync    文件:RFC2109SpecFactoryHC4.java   
public CookieSpec newInstance(final HttpParams params) {
    if (params != null) {

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

        return new RFC2109SpecHC4(patterns, singleHeader);
    } else {
        return new RFC2109SpecHC4();
    }
}
项目:remote-files-sync    文件:BestMatchSpecFactoryHC4.java   
public CookieSpec newInstance(final HttpParams params) {
    if (params != null) {

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

        return new BestMatchSpecHC4(patterns, singleHeader);
    } else {
        return new BestMatchSpecHC4();
    }
}
项目:remote-files-sync    文件:RFC2965SpecFactoryHC4.java   
public CookieSpec newInstance(final HttpParams params) {
    if (params != null) {

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

        return new RFC2965SpecHC4(patterns, singleHeader);
    } else {
        return new RFC2965SpecHC4();
    }
}
项目:purecloud-iot    文件:BestMatchSpecFactory.java   
@Override
public CookieSpec newInstance(final HttpParams params) {
    if (params != null) {

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

        return new BestMatchSpec(patterns, singleHeader);
    } else {
        return new BestMatchSpec();
    }
}
项目:purecloud-iot    文件:NetscapeDraftSpecFactory.java   
@Override
public CookieSpec newInstance(final HttpParams params) {
    if (params != null) {

        String[] patterns = null;
        final Collection<?> param = (Collection<?>) params.getParameter(
                CookieSpecPNames.DATE_PATTERNS);
        if (param != null) {
            patterns = new String[param.size()];
            patterns = param.toArray(patterns);
        }
        return new NetscapeDraftSpec(patterns);
    } else {
        return new NetscapeDraftSpec();
    }
}
项目:purecloud-iot    文件:RFC2109SpecFactory.java   
@Override
public CookieSpec newInstance(final HttpParams params) {
    if (params != null) {

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

        return new RFC2109Spec(patterns, singleHeader);
    } else {
        return new RFC2109Spec();
    }
}
项目:purecloud-iot    文件:BrowserCompatSpecFactory.java   
@Override
public CookieSpec newInstance(final HttpParams params) {
    if (params != null) {

        String[] patterns = null;
        final Collection<?> param = (Collection<?>) params.getParameter(
                CookieSpecPNames.DATE_PATTERNS);
        if (param != null) {
            patterns = new String[param.size()];
            patterns = param.toArray(patterns);
        }
        return new BrowserCompatSpec(patterns, securityLevel);
    } else {
        return new BrowserCompatSpec(null, securityLevel);
    }
}
项目:purecloud-iot    文件:RFC2965SpecFactory.java   
@Override
public CookieSpec newInstance(final HttpParams params) {
    if (params != null) {

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

        return new RFC2965Spec(patterns, singleHeader);
    } else {
        return new RFC2965Spec();
    }
}
项目:Visit    文件:RFC2109SpecFactoryHC4.java   
public CookieSpec newInstance(final HttpParams params) {
    if (params != null) {

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

        return new RFC2109SpecHC4(patterns, singleHeader);
    } else {
        return new RFC2109SpecHC4();
    }
}
项目:Visit    文件:BestMatchSpecFactoryHC4.java   
public CookieSpec newInstance(final HttpParams params) {
    if (params != null) {

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

        return new BestMatchSpecHC4(patterns, singleHeader);
    } else {
        return new BestMatchSpecHC4();
    }
}
项目:Visit    文件:RFC2965SpecFactoryHC4.java   
public CookieSpec newInstance(final HttpParams params) {
    if (params != null) {

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

        return new RFC2965SpecHC4(patterns, singleHeader);
    } else {
        return new RFC2965SpecHC4();
    }
}
项目:cJUnit-mc626    文件:BestMatchSpecFactory.java   
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();
    }
}
项目:cJUnit-mc626    文件:RFC2109SpecFactory.java   
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();
    }
}
项目:cJUnit-mc626    文件:RFC2965SpecFactory.java   
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();
    }
}
项目:ZTLib    文件:RFC2109SpecFactoryHC4.java   
public CookieSpec newInstance(final HttpParams params) {
    if (params != null) {

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

        return new RFC2109SpecHC4(patterns, singleHeader);
    } else {
        return new RFC2109SpecHC4();
    }
}
项目:ZTLib    文件:BestMatchSpecFactoryHC4.java   
public CookieSpec newInstance(final HttpParams params) {
    if (params != null) {

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

        return new BestMatchSpecHC4(patterns, singleHeader);
    } else {
        return new BestMatchSpecHC4();
    }
}
项目:ZTLib    文件:RFC2965SpecFactoryHC4.java   
public CookieSpec newInstance(final HttpParams params) {
    if (params != null) {

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

        return new RFC2965SpecHC4(patterns, singleHeader);
    } else {
        return new RFC2965SpecHC4();
    }
}
项目:lams    文件:NetscapeDraftSpecFactory.java   
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);
        }
        return new NetscapeDraftSpec(patterns);
    } else {
        return new NetscapeDraftSpec();
    }
}
项目:lams    文件:BrowserCompatSpecFactory.java   
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);
        }
        return new BrowserCompatSpec(patterns);
    } else {
        return new BrowserCompatSpec();
    }
}
项目:remote-files-sync    文件:BrowserCompatSpecFactoryHC4.java   
public CookieSpec newInstance(final HttpParams params) {
    if (params != null) {

        String[] patterns = null;
        final Collection<?> param = (Collection<?>) params.getParameter(
                CookieSpecPNames.DATE_PATTERNS);
        if (param != null) {
            patterns = new String[param.size()];
            patterns = param.toArray(patterns);
        }
        return new BrowserCompatSpecHC4(patterns, securityLevel);
    } else {
        return new BrowserCompatSpecHC4(null, securityLevel);
    }
}
项目:remote-files-sync    文件:NetscapeDraftSpecFactoryHC4.java   
public CookieSpec newInstance(final HttpParams params) {
    if (params != null) {

        String[] patterns = null;
        final Collection<?> param = (Collection<?>) params.getParameter(
                CookieSpecPNames.DATE_PATTERNS);
        if (param != null) {
            patterns = new String[param.size()];
            patterns = param.toArray(patterns);
        }
        return new NetscapeDraftSpecHC4(patterns);
    } else {
        return new NetscapeDraftSpecHC4();
    }
}
项目:Visit    文件:BrowserCompatSpecFactoryHC4.java   
public CookieSpec newInstance(final HttpParams params) {
    if (params != null) {

        String[] patterns = null;
        final Collection<?> param = (Collection<?>) params.getParameter(
                CookieSpecPNames.DATE_PATTERNS);
        if (param != null) {
            patterns = new String[param.size()];
            patterns = param.toArray(patterns);
        }
        return new BrowserCompatSpecHC4(patterns, securityLevel);
    } else {
        return new BrowserCompatSpecHC4(null, securityLevel);
    }
}
项目:Visit    文件:NetscapeDraftSpecFactoryHC4.java   
public CookieSpec newInstance(final HttpParams params) {
    if (params != null) {

        String[] patterns = null;
        final Collection<?> param = (Collection<?>) params.getParameter(
                CookieSpecPNames.DATE_PATTERNS);
        if (param != null) {
            patterns = new String[param.size()];
            patterns = param.toArray(patterns);
        }
        return new NetscapeDraftSpecHC4(patterns);
    } else {
        return new NetscapeDraftSpecHC4();
    }
}
项目:cJUnit-mc626    文件:NetscapeDraftSpecFactory.java   
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);
        }
        return new NetscapeDraftSpec(patterns);
    } else {
        return new NetscapeDraftSpec();
    }
}
项目:cJUnit-mc626    文件:BrowserCompatSpecFactory.java   
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);
        }
        return new BrowserCompatSpec(patterns);
    } else {
        return new BrowserCompatSpec();
    }
}
项目:ZTLib    文件:BrowserCompatSpecFactoryHC4.java   
public CookieSpec newInstance(final HttpParams params) {
    if (params != null) {

        String[] patterns = null;
        final Collection<?> param = (Collection<?>) params.getParameter(
                CookieSpecPNames.DATE_PATTERNS);
        if (param != null) {
            patterns = new String[param.size()];
            patterns = param.toArray(patterns);
        }
        return new BrowserCompatSpecHC4(patterns, securityLevel);
    } else {
        return new BrowserCompatSpecHC4(null, securityLevel);
    }
}
项目:ZTLib    文件:NetscapeDraftSpecFactoryHC4.java   
public CookieSpec newInstance(final HttpParams params) {
    if (params != null) {

        String[] patterns = null;
        final Collection<?> param = (Collection<?>) params.getParameter(
                CookieSpecPNames.DATE_PATTERNS);
        if (param != null) {
            patterns = new String[param.size()];
            patterns = param.toArray(patterns);
        }
        return new NetscapeDraftSpecHC4(patterns);
    } else {
        return new NetscapeDraftSpecHC4();
    }
}
项目:dailyBot    文件:DailyFxServerConnection.java   
private VIXLoadHelper()
{
    httpClient = new DefaultHttpClient();
    getRequest = new HttpGet("http://finance.yahoo.com/q?s=%5EVIX");
    BasicHttpParams params = new BasicHttpParams();
    params.setParameter(CookieSpecPNames.DATE_PATTERNS,
        Arrays.asList("EEE, dd-MMM-yyyy HH:mm:ss z", "EEE, dd MMM yyyy HH:mm:ss z"));
    getRequest.setParams(params);
    executor = Executors.newSingleThreadExecutor();
    sb = new StringBuilder("");
    readBuffer = new byte[2048];
}
项目:cgold    文件:XpmPriceReader.java   
static HttpParams createHttpParams() {
    HttpParams params = new BasicHttpParams();
    HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);
    HttpProtocolParams.setUserAgent(params, USER_AGENT);
    params.setBooleanParameter(CookieSpecPNames.SINGLE_COOKIE_HEADER, true);
    params.setBooleanParameter(ClientPNames.HANDLE_AUTHENTICATION, false);
    params.setParameter(ClientPNames.HANDLE_REDIRECTS, null);
    params.setParameter(ClientPNames.DEFAULT_HEADERS, DEFAULT_HEADERS);
    params.setParameter(ClientPNames.CONNECTION_MANAGER_FACTORY_CLASS_NAME, CMF.class.getName());
    return params;
}