|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.http.params.HttpProtocolParams
@Deprecated public final class HttpProtocolParams
Utility class for accessing protocol parameters in HttpParams
.
Field Summary |
---|
Fields inherited from interface org.apache.http.params.CoreProtocolPNames |
---|
HTTP_CONTENT_CHARSET, HTTP_ELEMENT_CHARSET, HTTP_MALFORMED_INPUT_ACTION, HTTP_UNMAPPABLE_INPUT_ACTION, ORIGIN_SERVER, PROTOCOL_VERSION, STRICT_TRANSFER_ENCODING, USE_EXPECT_CONTINUE, USER_AGENT, WAIT_FOR_CONTINUE |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String getHttpElementCharset(HttpParams params)
CoreProtocolPNames.HTTP_ELEMENT_CHARSET
parameter.
If not set, defaults to US-ASCII
.
params
- HTTP parameters.
public static void setHttpElementCharset(HttpParams params, String charset)
CoreProtocolPNames.HTTP_ELEMENT_CHARSET
parameter.
params
- HTTP parameters.charset
- HTTP element charset.public static String getContentCharset(HttpParams params)
CoreProtocolPNames.HTTP_CONTENT_CHARSET
parameter.
If not set, defaults to ISO-8859-1
.
params
- HTTP parameters.
public static void setContentCharset(HttpParams params, String charset)
CoreProtocolPNames.HTTP_CONTENT_CHARSET
parameter.
params
- HTTP parameters.charset
- HTTP content charset.public static ProtocolVersion getVersion(HttpParams params)
CoreProtocolPNames.PROTOCOL_VERSION
parameter.
If not set, defaults to HttpVersion.HTTP_1_1
.
params
- HTTP parameters.
public static void setVersion(HttpParams params, ProtocolVersion version)
CoreProtocolPNames.PROTOCOL_VERSION
parameter.
params
- HTTP parameters.version
- HTTP protocol version.public static String getUserAgent(HttpParams params)
CoreProtocolPNames.USER_AGENT
parameter.
If not set, returns null
.
params
- HTTP parameters.
public static void setUserAgent(HttpParams params, String useragent)
CoreProtocolPNames.USER_AGENT
parameter.
params
- HTTP parameters.useragent
- User agent string.public static boolean useExpectContinue(HttpParams params)
CoreProtocolPNames.USE_EXPECT_CONTINUE
parameter.
If not set, returns false
.
params
- HTTP parameters.
public static void setUseExpectContinue(HttpParams params, boolean b)
CoreProtocolPNames.USE_EXPECT_CONTINUE
parameter.
params
- HTTP parameters.b
- expect-continue flag.public static CodingErrorAction getMalformedInputAction(HttpParams params)
CoreProtocolPNames.HTTP_MALFORMED_INPUT_ACTION
parameter.
params
- HTTP parameters.
public static void setMalformedInputAction(HttpParams params, CodingErrorAction action)
CoreProtocolPNames.HTTP_MALFORMED_INPUT_ACTION
parameter.
params
- HTTP parametersaction
- action to perform on malformed inputspublic static CodingErrorAction getUnmappableInputAction(HttpParams params)
CoreProtocolPNames.HTTP_UNMAPPABLE_INPUT_ACTION
parameter.
params
- HTTP parameters
public static void setUnmappableInputAction(HttpParams params, CodingErrorAction action)
CoreProtocolPNames.HTTP_UNMAPPABLE_INPUT_ACTION
parameter.
params
- HTTP parametersaction
- action to perform on un mappable inputs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |