1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/mobile/android/thirdparty/ch/boye/httpclientandroidlib/client/params/ClientPNames.java Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,131 @@ 1.4 +/* 1.5 + * ==================================================================== 1.6 + * 1.7 + * Licensed to the Apache Software Foundation (ASF) under one or more 1.8 + * contributor license agreements. See the NOTICE file distributed with 1.9 + * this work for additional information regarding copyright ownership. 1.10 + * The ASF licenses this file to You under the Apache License, Version 2.0 1.11 + * (the "License"); you may not use this file except in compliance with 1.12 + * 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, software 1.17 + * distributed under the License is distributed on an "AS IS" BASIS, 1.18 + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1.19 + * See the License for the specific language governing permissions and 1.20 + * limitations under the License. 1.21 + * ==================================================================== 1.22 + * 1.23 + * This software consists of voluntary contributions made by many 1.24 + * individuals on behalf of the Apache Software Foundation. For more 1.25 + * information on the Apache Software Foundation, please see 1.26 + * <http://www.apache.org/>. 1.27 + * 1.28 + */ 1.29 + 1.30 +package ch.boye.httpclientandroidlib.client.params; 1.31 + 1.32 +/** 1.33 + * Parameter names for HTTP client parameters. 1.34 + * 1.35 + * @since 4.0 1.36 + */ 1.37 +public interface ClientPNames { 1.38 + 1.39 + /** 1.40 + * Defines the class name of the default {@link ch.boye.httpclientandroidlib.conn.ClientConnectionManager} 1.41 + * <p> 1.42 + * This parameter expects a value of type {@link String}. 1.43 + * </p> 1.44 + */ 1.45 + public static final String CONNECTION_MANAGER_FACTORY_CLASS_NAME = "http.connection-manager.factory-class-name"; 1.46 + 1.47 + /** 1.48 + * @deprecated use #CONNECTION_MANAGER_FACTORY_CLASS_NAME 1.49 + */ 1.50 + @Deprecated 1.51 + public static final String CONNECTION_MANAGER_FACTORY = "http.connection-manager.factory-object"; 1.52 + 1.53 + /** 1.54 + * Defines whether redirects should be handled automatically 1.55 + * <p> 1.56 + * This parameter expects a value of type {@link Boolean}. 1.57 + * </p> 1.58 + */ 1.59 + public static final String HANDLE_REDIRECTS = "http.protocol.handle-redirects"; 1.60 + 1.61 + /** 1.62 + * Defines whether relative redirects should be rejected. HTTP specification 1.63 + * requires the location value be an absolute URI. 1.64 + * <p> 1.65 + * This parameter expects a value of type {@link Boolean}. 1.66 + * </p> 1.67 + */ 1.68 + public static final String REJECT_RELATIVE_REDIRECT = "http.protocol.reject-relative-redirect"; 1.69 + 1.70 + /** 1.71 + * Defines the maximum number of redirects to be followed. 1.72 + * The limit on number of redirects is intended to prevent infinite loops. 1.73 + * <p> 1.74 + * This parameter expects a value of type {@link Integer}. 1.75 + * </p> 1.76 + */ 1.77 + public static final String MAX_REDIRECTS = "http.protocol.max-redirects"; 1.78 + 1.79 + /** 1.80 + * Defines whether circular redirects (redirects to the same location) should be allowed. 1.81 + * The HTTP spec is not sufficiently clear whether circular redirects are permitted, 1.82 + * therefore optionally they can be enabled 1.83 + * <p> 1.84 + * This parameter expects a value of type {@link Boolean}. 1.85 + * </p> 1.86 + */ 1.87 + public static final String ALLOW_CIRCULAR_REDIRECTS = "http.protocol.allow-circular-redirects"; 1.88 + 1.89 + /** 1.90 + * Defines whether authentication should be handled automatically. 1.91 + * <p> 1.92 + * This parameter expects a value of type {@link Boolean}. 1.93 + * </p> 1.94 + */ 1.95 + public static final String HANDLE_AUTHENTICATION = "http.protocol.handle-authentication"; 1.96 + 1.97 + /** 1.98 + * Defines the name of the cookie specification to be used for HTTP state management. 1.99 + * <p> 1.100 + * This parameter expects a value of type {@link String}. 1.101 + * </p> 1.102 + */ 1.103 + public static final String COOKIE_POLICY = "http.protocol.cookie-policy"; 1.104 + 1.105 + /** 1.106 + * Defines the virtual host to be used in the <code>Host</code> 1.107 + * request header instead of the physical host. 1.108 + * <p> 1.109 + * This parameter expects a value of type {@link ch.boye.httpclientandroidlib.HttpHost}. 1.110 + * </p> 1.111 + * If a port is not provided, it will be derived from the request URL. 1.112 + */ 1.113 + public static final String VIRTUAL_HOST = "http.virtual-host"; 1.114 + 1.115 + /** 1.116 + * Defines the request headers to be sent per default with each request. 1.117 + * <p> 1.118 + * This parameter expects a value of type {@link java.util.Collection}. The 1.119 + * collection is expected to contain {@link ch.boye.httpclientandroidlib.Header}s. 1.120 + * </p> 1.121 + */ 1.122 + public static final String DEFAULT_HEADERS = "http.default-headers"; 1.123 + 1.124 + /** 1.125 + * Defines the default host. The default value will be used if the target host is 1.126 + * not explicitly specified in the request URI. 1.127 + * <p> 1.128 + * This parameter expects a value of type {@link ch.boye.httpclientandroidlib.HttpHost}. 1.129 + * </p> 1.130 + */ 1.131 + public static final String DEFAULT_HOST = "http.default-host"; 1.132 + 1.133 +} 1.134 +