parameter names in interfaces, part 3
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@576078 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7ef4e48620
commit
3035ff2e77
|
@ -50,7 +50,7 @@ public interface AuthPNames {
|
|||
* <p>
|
||||
* This parameter expects a value of type {@link String}.
|
||||
* If not defined, then
|
||||
* {@link org.apache.http.params.HttpProtocolParams#HTTP_ELEMENT_CHARSET
|
||||
* {@link org.apache.http.params.CoreProtocolPNames#HTTP_ELEMENT_CHARSET
|
||||
* HttpProtocolParams.HTTP_ELEMENT_CHARSET}
|
||||
* should be used.
|
||||
* </p>
|
||||
|
|
|
@ -31,6 +31,8 @@
|
|||
package org.apache.http.client.params;
|
||||
|
||||
|
||||
import org.apache.http.params.CoreConnectionPNames;
|
||||
import org.apache.http.params.CoreProtocolPNames;
|
||||
import org.apache.http.auth.params.AuthPNames;
|
||||
import org.apache.http.cookie.params.CookieSpecPNames;
|
||||
import org.apache.http.conn.params.ConnManagerPNames;
|
||||
|
@ -54,6 +56,7 @@ import org.apache.http.conn.params.ConnRoutePNames;
|
|||
* @since 4.0
|
||||
*/
|
||||
public interface AllClientPNames extends
|
||||
CoreConnectionPNames, CoreProtocolPNames,
|
||||
ClientPNames, AuthPNames, CookieSpecPNames,
|
||||
ConnConnectionPNames, ConnManagerPNames, ConnRoutePNames {
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ import org.apache.http.util.EncodingUtils;
|
|||
* Since the digest username is included as clear text in the generated
|
||||
* Authentication header, the charset of the username must be compatible
|
||||
* with the
|
||||
* {@link org.apache.http.params.HttpProtocolParams#HTTP_ELEMENT_CHARSET
|
||||
* {@link org.apache.http.params.CoreProtocolPNames#HTTP_ELEMENT_CHARSET
|
||||
* http element charset}.
|
||||
* </p>
|
||||
*
|
||||
|
|
|
@ -46,7 +46,7 @@ import org.apache.http.impl.DefaultConnectionReuseStrategy;
|
|||
import org.apache.http.impl.DefaultHttpResponseFactory;
|
||||
import org.apache.http.impl.DefaultHttpServerConnection;
|
||||
import org.apache.http.params.BasicHttpParams;
|
||||
import org.apache.http.params.HttpConnectionParams;
|
||||
import org.apache.http.params.CoreConnectionPNames;
|
||||
import org.apache.http.params.HttpParams;
|
||||
import org.apache.http.params.CoreProtocolPNames;
|
||||
import org.apache.http.protocol.BasicHttpProcessor;
|
||||
|
@ -148,13 +148,13 @@ public class LocalTestServer {
|
|||
public static HttpParams newDefaultParams() {
|
||||
HttpParams params = new BasicHttpParams(null);
|
||||
params
|
||||
.setIntParameter(HttpConnectionParams.SO_TIMEOUT,
|
||||
.setIntParameter(CoreConnectionPNames.SO_TIMEOUT,
|
||||
5000)
|
||||
.setIntParameter(HttpConnectionParams.SOCKET_BUFFER_SIZE,
|
||||
.setIntParameter(CoreConnectionPNames.SOCKET_BUFFER_SIZE,
|
||||
8 * 1024)
|
||||
.setBooleanParameter(HttpConnectionParams.STALE_CONNECTION_CHECK,
|
||||
.setBooleanParameter(CoreConnectionPNames.STALE_CONNECTION_CHECK,
|
||||
false)
|
||||
.setBooleanParameter(HttpConnectionParams.TCP_NODELAY,
|
||||
.setBooleanParameter(CoreConnectionPNames.TCP_NODELAY,
|
||||
true)
|
||||
.setParameter(CoreProtocolPNames.ORIGIN_SERVER,
|
||||
"Jakarta-HttpComponents-LocalTestServer/1.1");
|
||||
|
|
Loading…
Reference in New Issue