|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.http.params.HttpProtocolParams
public final class HttpProtocolParams
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.
CoreProtocolPNames
Field Summary |
---|
Fields inherited from interface org.apache.http.params.CoreProtocolPNames |
---|
HTTP_CONTENT_CHARSET, HTTP_ELEMENT_CHARSET, ORIGIN_SERVER, PROTOCOL_VERSION, STRICT_TRANSFER_ENCODING, USE_EXPECT_CONTINUE, USER_AGENT, WAIT_FOR_CONTINUE |
Method Summary | |
---|---|
static java.lang.String |
getContentCharset(HttpParams params)
Returns the default charset to be used for writing content body, when no charset explicitly specified. |
static java.lang.String |
getHttpElementCharset(HttpParams params)
Returns the charset to be used for writing HTTP headers. |
static java.lang.String |
getUserAgent(HttpParams params)
|
static ProtocolVersion |
getVersion(HttpParams params)
Returns protocol version to be used per default. |
static void |
setContentCharset(HttpParams params,
java.lang.String charset)
Sets the default charset to be used for writing content body, when no charset explicitly specified. |
static void |
setHttpElementCharset(HttpParams params,
java.lang.String charset)
Sets the charset to be used for writing HTTP headers. |
static void |
setUseExpectContinue(HttpParams params,
boolean b)
|
static void |
setUserAgent(HttpParams params,
java.lang.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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String getHttpElementCharset(HttpParams params)
public static void setHttpElementCharset(HttpParams params, java.lang.String charset)
charset
- The charsetpublic static java.lang.String getContentCharset(HttpParams params)
public static void setContentCharset(HttpParams params, java.lang.String charset)
charset
- The charsetpublic static ProtocolVersion getVersion(HttpParams params)
protocol version
to be used per default.
protocol version
public static void setVersion(HttpParams params, ProtocolVersion version)
protocol version
to be used by the
HTTP methods that this collection of parameters applies to.
version
- the protocol version
public static java.lang.String getUserAgent(HttpParams params)
public static void setUserAgent(HttpParams params, java.lang.String useragent)
public static boolean useExpectContinue(HttpParams params)
public static void setUseExpectContinue(HttpParams params, boolean b)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |