Package org.apache.http.params
Class HttpProtocolParams
java.lang.Object
org.apache.http.params.HttpProtocolParams
- All Implemented Interfaces:
CoreProtocolPNames
Deprecated.
(4.3) use configuration classes provided 'org.apache.http.config'
and 'org.apache.http.client.config'
Utility class for accessing protocol parameters in
HttpParams.- Since:
- 4.0
-
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetContentCharset(HttpParams params) Deprecated.Obtains value of theCoreProtocolPNames.HTTP_CONTENT_CHARSETparameter.static StringgetHttpElementCharset(HttpParams params) Deprecated.Obtains value of theCoreProtocolPNames.HTTP_ELEMENT_CHARSETparameter.static CodingErrorActiongetMalformedInputAction(HttpParams params) Deprecated.Obtains value of theCoreProtocolPNames.HTTP_MALFORMED_INPUT_ACTIONparameter.static CodingErrorActiongetUnmappableInputAction(HttpParams params) Deprecated.Obtains the value of theCoreProtocolPNames.HTTP_UNMAPPABLE_INPUT_ACTIONparameter.static StringgetUserAgent(HttpParams params) Deprecated.Obtains value of theCoreProtocolPNames.USER_AGENTparameter.static ProtocolVersiongetVersion(HttpParams params) Deprecated.Obtains value of theCoreProtocolPNames.PROTOCOL_VERSIONparameter.static voidsetContentCharset(HttpParams params, String charset) Deprecated.Sets value of theCoreProtocolPNames.HTTP_CONTENT_CHARSETparameter.static voidsetHttpElementCharset(HttpParams params, String charset) Deprecated.Sets value of theCoreProtocolPNames.HTTP_ELEMENT_CHARSETparameter.static voidsetMalformedInputAction(HttpParams params, CodingErrorAction action) Deprecated.Sets value of theCoreProtocolPNames.HTTP_MALFORMED_INPUT_ACTIONparameter.static voidsetUnmappableInputAction(HttpParams params, CodingErrorAction action) Deprecated.Sets the value of theCoreProtocolPNames.HTTP_UNMAPPABLE_INPUT_ACTIONparameter.static voidsetUseExpectContinue(HttpParams params, boolean b) Deprecated.Sets value of theCoreProtocolPNames.USE_EXPECT_CONTINUEparameter.static voidsetUserAgent(HttpParams params, String useragent) Deprecated.Sets value of theCoreProtocolPNames.USER_AGENTparameter.static voidsetVersion(HttpParams params, ProtocolVersion version) Deprecated.Sets value of theCoreProtocolPNames.PROTOCOL_VERSIONparameter.static booleanuseExpectContinue(HttpParams params) Deprecated.Obtains value of theCoreProtocolPNames.USE_EXPECT_CONTINUEparameter.
-
Method Details
-
getHttpElementCharset
Deprecated.Obtains value of theCoreProtocolPNames.HTTP_ELEMENT_CHARSETparameter. If not set, defaults toUS-ASCII.- Parameters:
params- HTTP parameters.- Returns:
- HTTP element charset.
-
setHttpElementCharset
Deprecated.Sets value of theCoreProtocolPNames.HTTP_ELEMENT_CHARSETparameter.- Parameters:
params- HTTP parameters.charset- HTTP element charset.
-
getContentCharset
Deprecated.Obtains value of theCoreProtocolPNames.HTTP_CONTENT_CHARSETparameter. If not set, defaults toISO-8859-1.- Parameters:
params- HTTP parameters.- Returns:
- HTTP content charset.
-
setContentCharset
Deprecated.Sets value of theCoreProtocolPNames.HTTP_CONTENT_CHARSETparameter.- Parameters:
params- HTTP parameters.charset- HTTP content charset.
-
getVersion
Deprecated.Obtains value of theCoreProtocolPNames.PROTOCOL_VERSIONparameter. If not set, defaults toHttpVersion.HTTP_1_1.- Parameters:
params- HTTP parameters.- Returns:
- HTTP protocol version.
-
setVersion
Deprecated.Sets value of theCoreProtocolPNames.PROTOCOL_VERSIONparameter.- Parameters:
params- HTTP parameters.version- HTTP protocol version.
-
getUserAgent
Deprecated.Obtains value of theCoreProtocolPNames.USER_AGENTparameter. If not set, returnsnull.- Parameters:
params- HTTP parameters.- Returns:
- User agent string.
-
setUserAgent
Deprecated.Sets value of theCoreProtocolPNames.USER_AGENTparameter.- Parameters:
params- HTTP parameters.useragent- User agent string.
-
useExpectContinue
Deprecated.Obtains value of theCoreProtocolPNames.USE_EXPECT_CONTINUEparameter. If not set, returnsfalse.- Parameters:
params- HTTP parameters.- Returns:
- User agent string.
-
setUseExpectContinue
Deprecated.Sets value of theCoreProtocolPNames.USE_EXPECT_CONTINUEparameter.- Parameters:
params- HTTP parameters.b- expect-continue flag.
-
getMalformedInputAction
Deprecated.Obtains value of theCoreProtocolPNames.HTTP_MALFORMED_INPUT_ACTIONparameter.- Parameters:
params- HTTP parameters.- Returns:
- Action to perform upon receiving a malformed input
- Since:
- 4.2
-
setMalformedInputAction
Deprecated.Sets value of theCoreProtocolPNames.HTTP_MALFORMED_INPUT_ACTIONparameter.- Parameters:
params- HTTP parametersaction- action to perform on malformed inputs- Since:
- 4.2
-
getUnmappableInputAction
Deprecated.Obtains the value of theCoreProtocolPNames.HTTP_UNMAPPABLE_INPUT_ACTIONparameter.- Parameters:
params- HTTP parameters- Returns:
- Action to perform upon receiving a unmapped input
- Since:
- 4.2
-
setUnmappableInputAction
Deprecated.Sets the value of theCoreProtocolPNames.HTTP_UNMAPPABLE_INPUT_ACTIONparameter.- Parameters:
params- HTTP parametersaction- action to perform on un mappable inputs- Since:
- 4.2
-