@Deprecated public final class HttpProtocolParams extends Object implements CoreProtocolPNames
HttpParams
.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
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 parameterspublic static void setUnmappableInputAction(HttpParams params, CodingErrorAction action)
CoreProtocolPNames.HTTP_UNMAPPABLE_INPUT_ACTION
parameter.params
- HTTP parametersaction
- action to perform on un mappable inputsCopyright © 2005–2022 The Apache Software Foundation. All rights reserved.