mobile/android/thirdparty/ch/boye/httpclientandroidlib/client/protocol/ClientContext.java

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/mobile/android/thirdparty/ch/boye/httpclientandroidlib/client/protocol/ClientContext.java	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,109 @@
     1.4 +/*
     1.5 + * ====================================================================
     1.6 + * Licensed to the Apache Software Foundation (ASF) under one
     1.7 + * or more contributor license agreements.  See the NOTICE file
     1.8 + * distributed with this work for additional information
     1.9 + * regarding copyright ownership.  The ASF licenses this file
    1.10 + * to you under the Apache License, Version 2.0 (the
    1.11 + * "License"); you may not use this file except in compliance
    1.12 + * with the License.  You may obtain a copy of the License at
    1.13 + *
    1.14 + *   http://www.apache.org/licenses/LICENSE-2.0
    1.15 + *
    1.16 + * Unless required by applicable law or agreed to in writing,
    1.17 + * software distributed under the License is distributed on an
    1.18 + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    1.19 + * KIND, either express or implied.  See the License for the
    1.20 + * specific language governing permissions and limitations
    1.21 + * under the License.
    1.22 + * ====================================================================
    1.23 + *
    1.24 + * This software consists of voluntary contributions made by many
    1.25 + * individuals on behalf of the Apache Software Foundation.  For more
    1.26 + * information on the Apache Software Foundation, please see
    1.27 + * <http://www.apache.org/>.
    1.28 + *
    1.29 + */
    1.30 +
    1.31 +package ch.boye.httpclientandroidlib.client.protocol;
    1.32 +
    1.33 +/**
    1.34 + * {@link ch.boye.httpclientandroidlib.protocol.HttpContext} attribute names for
    1.35 + * client side HTTP protocol processing.
    1.36 + *
    1.37 + * @since 4.0
    1.38 + */
    1.39 +public interface ClientContext {
    1.40 +
    1.41 +    /**
    1.42 +     * Attribute name of a {@link ch.boye.httpclientandroidlib.conn.scheme.Scheme}
    1.43 +     * object that represents the actual protocol scheme registry.
    1.44 +     */
    1.45 +    public static final String SCHEME_REGISTRY   = "http.scheme-registry";
    1.46 +    /**
    1.47 +     * Attribute name of a {@link ch.boye.httpclientandroidlib.cookie.CookieSpecRegistry}
    1.48 +     * object that represents the actual cookie specification registry.
    1.49 +     */
    1.50 +    public static final String COOKIESPEC_REGISTRY   = "http.cookiespec-registry";
    1.51 +
    1.52 +    /**
    1.53 +     * Attribute name of a {@link ch.boye.httpclientandroidlib.cookie.CookieSpec}
    1.54 +     * object that represents the actual cookie specification.
    1.55 +     */
    1.56 +    public static final String COOKIE_SPEC           = "http.cookie-spec";
    1.57 +
    1.58 +    /**
    1.59 +     * Attribute name of a {@link ch.boye.httpclientandroidlib.cookie.CookieOrigin}
    1.60 +     * object that represents the actual details of the origin server.
    1.61 +     */
    1.62 +    public static final String COOKIE_ORIGIN         = "http.cookie-origin";
    1.63 +
    1.64 +    /**
    1.65 +     * Attribute name of a {@link ch.boye.httpclientandroidlib.client.CookieStore}
    1.66 +     * object that represents the actual cookie store.
    1.67 +     */
    1.68 +    public static final String COOKIE_STORE          = "http.cookie-store";
    1.69 +
    1.70 +    /**
    1.71 +     * Attribute name of a {@link ch.boye.httpclientandroidlib.auth.AuthSchemeRegistry}
    1.72 +     * object that represents the actual authentication scheme registry.
    1.73 +     */
    1.74 +    public static final String AUTHSCHEME_REGISTRY   = "http.authscheme-registry";
    1.75 +
    1.76 +    /**
    1.77 +     * Attribute name of a {@link ch.boye.httpclientandroidlib.client.CredentialsProvider}
    1.78 +     * object that represents the actual credentials provider.
    1.79 +     */
    1.80 +    public static final String CREDS_PROVIDER        = "http.auth.credentials-provider";
    1.81 +
    1.82 +    /**
    1.83 +     * Attribute name of a {@link ch.boye.httpclientandroidlib.client.AuthCache} object
    1.84 +     * that represents the auth scheme cache.
    1.85 +     */
    1.86 +    public static final String AUTH_CACHE            = "http.auth.auth-cache";
    1.87 +
    1.88 +    /**
    1.89 +     * Attribute name of a {@link ch.boye.httpclientandroidlib.auth.AuthState}
    1.90 +     * object that represents the actual target authentication state.
    1.91 +     */
    1.92 +    public static final String TARGET_AUTH_STATE     = "http.auth.target-scope";
    1.93 +
    1.94 +    /**
    1.95 +     * Attribute name of a {@link ch.boye.httpclientandroidlib.auth.AuthState}
    1.96 +     * object that represents the actual proxy authentication state.
    1.97 +     */
    1.98 +    public static final String PROXY_AUTH_STATE      = "http.auth.proxy-scope";
    1.99 +
   1.100 +    /**
   1.101 +     * @deprecated do not use
   1.102 +     */
   1.103 +    @Deprecated
   1.104 +    public static final String AUTH_SCHEME_PREF      = "http.auth.scheme-pref";
   1.105 +
   1.106 +    /**
   1.107 +     * Attribute name of a {@link java.lang.Object} object that represents
   1.108 +     * the actual user identity such as user {@link java.security.Principal}.
   1.109 +     */
   1.110 +    public static final String USER_TOKEN            = "http.user-token";
   1.111 +
   1.112 +}

mercurial