Android
org.apache.http.params
public final class

org.apache.http.params.HttpProtocolParams

java.lang.Object
org.apache.http.params.HttpProtocolParams CoreProtocolPNames

This class implements an adaptor around the HttpParams interface to simplify manipulation of the HTTP protocol specific parameters.
Note that the implements relation to CoreProtocolPNames is for compatibility with existing application code only. References to the parameter names should use the interface, not this class.

Summary

Constants inherited from interface org.apache.http.params.CoreProtocolPNames

Public Methods

      static    String  getContentCharset(HttpParams params)
Returns the default charset to be used for writing content body, when no charset explicitly specified.
      static    String  getHttpElementCharset(HttpParams params)
Returns the charset to be used for writing HTTP headers.
      static    String  getUserAgent(HttpParams params)
      static    ProtocolVersion  getVersion(HttpParams params)
Returns protocol version to be used per default.
      static    void  setContentCharset(HttpParams params, String charset)
Sets the default charset to be used for writing content body, when no charset explicitly specified.
      static    void  setHttpElementCharset(HttpParams params, String charset)
Sets the charset to be used for writing HTTP headers.
      static    void  setUseExpectContinue(HttpParams params, boolean b)
      static    void  setUserAgent(HttpParams params, String useragent)
      static    void  setVersion(HttpParams params, ProtocolVersion version)
Assigns the protocol version to be used by the HTTP methods that this collection of parameters applies to.
      static    boolean  useExpectContinue(HttpParams params)
Methods inherited from class java.lang.Object

Details

Public Methods

public static String getContentCharset(HttpParams params)

Returns the default charset to be used for writing content body, when no charset explicitly specified.

Returns

  • The charset

public static String getHttpElementCharset(HttpParams params)

Returns the charset to be used for writing HTTP headers.

Returns

  • The charset

public static String getUserAgent(HttpParams params)

public static ProtocolVersion getVersion(HttpParams params)

Returns protocol version to be used per default.

public static void setContentCharset(HttpParams params, String charset)

Sets the default charset to be used for writing content body, when no charset explicitly specified.

Parameters

charset The charset

public static void setHttpElementCharset(HttpParams params, String charset)

Sets the charset to be used for writing HTTP headers.

Parameters

charset The charset

public static void setUseExpectContinue(HttpParams params, boolean b)

public static void setUserAgent(HttpParams params, String useragent)

public static void setVersion(HttpParams params, ProtocolVersion version)

Assigns the protocol version to be used by the HTTP methods that this collection of parameters applies to.

Parameters

version the protocol version

public static boolean useExpectContinue(HttpParams params)

Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48