Android APIs
public final class

HttpProtocolParams

extends Object
implements CoreProtocolPNames
java.lang.Object
   ↳ org.apache.http.params.HttpProtocolParams

Class Overview

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

[Expand]
Inherited Constants
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)
[Expand]
Inherited Methods
From class java.lang.Object
Object clone()
Creates and returns a copy of this Object.
boolean equals(Object o)
Compares this instance with the specified object and indicates if they are equal.
void finalize()
Invoked when the garbage collector has detected that this instance is no longer reachable.
final Class<?> getClass()
Returns the unique instance of Class that represents this object's class.
int hashCode()
Returns an integer hash code for this object.
final void notify()
Causes a thread which is waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.
final void notifyAll()
Causes all threads which are waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.
String toString()
Returns a string containing a concise, human-readable description of this object.
final void wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
final void wait(long millis, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.
final void wait(long millis)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

Public Methods

public static String getContentCharset (HttpParams params)

Added in API level 1

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)

Added in API level 1

Returns the charset to be used for writing HTTP headers.

Returns
  • The charset

public static String getUserAgent (HttpParams params)

Added in API level 1

public static ProtocolVersion getVersion (HttpParams params)

Added in API level 1

Returns protocol version to be used per default.

public static void setContentCharset (HttpParams params, String charset)

Added in API level 1

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)

Added in API level 1

Sets the charset to be used for writing HTTP headers.

Parameters
charset The charset

public static void setUseExpectContinue (HttpParams params, boolean b)

Added in API level 1

public static void setUserAgent (HttpParams params, String useragent)

Added in API level 1

public static void setVersion (HttpParams params, ProtocolVersion version)

Added in API level 1

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)

Added in API level 1