Top Description Constructors Methods
org.apache.http.params

public final Class HttpProtocolParams

extends Object
implements CoreProtocolPNames
Class Inheritance
All Implemented Interfaces
org.apache.http.params.CoreProtocolPNames
Annotations
@Deprecated
Imports
java.nio.charset.CodingErrorAction, org.apache.http.HttpVersion, .ProtocolVersion, org.apache.http.protocol.HTTP, org.apache.http.util.Args

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

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static String

Returns:

HTTP content charset.
getContentCharset
(final HttpParams
HTTP parameters.
params
)

Deprecated as a consequence of HttpParams being deprecated.
Obtains value of the CoreProtocolPNames#HTTP_CONTENT_CHARSET parameter.
public static String

Returns:

HTTP element charset.
getHttpElementCharset
(final HttpParams
HTTP parameters.
params
)

Deprecated as a consequence of HttpParams being deprecated.
Obtains value of the CoreProtocolPNames#HTTP_ELEMENT_CHARSET parameter.
public static CodingErrorAction

Returns:

Action to perform upon receiving a malformed input
getMalformedInputAction
(final HttpParams
HTTP parameters.
params
)

Deprecated as a consequence of HttpParams being deprecated.
Obtains value of the CoreProtocolPNames#HTTP_MALFORMED_INPUT_ACTION parameter.
public static CodingErrorAction

Returns:

Action to perform upon receiving a unmapped input
getUnmappableInputAction
(final HttpParams
HTTP parameters
params
)

Deprecated as a consequence of HttpParams being deprecated.
Obtains the value of the CoreProtocolPNames#HTTP_UNMAPPABLE_INPUT_ACTION parameter.
public static String

Returns:

User agent string.
getUserAgent
(final HttpParams
HTTP parameters.
params
)

Deprecated as a consequence of HttpParams being deprecated.
Obtains value of the CoreProtocolPNames#USER_AGENT parameter.
public static ProtocolVersion

Returns:

HTTP protocol version.
getVersion
(final HttpParams
HTTP parameters.
params
)

Deprecated as a consequence of HttpParams being deprecated.
Obtains value of the CoreProtocolPNames#PROTOCOL_VERSION parameter.
public static void
setContentCharset(final HttpParams
HTTP parameters.
params
,
final String
HTTP content charset.
charset
)

Deprecated as a consequence of HttpParams being deprecated.
Sets value of the CoreProtocolPNames#HTTP_CONTENT_CHARSET parameter.
public static void
setHttpElementCharset(final HttpParams
HTTP parameters.
params
,
final String
HTTP element charset.
charset
)

Deprecated as a consequence of HttpParams being deprecated.
Sets value of the CoreProtocolPNames#HTTP_ELEMENT_CHARSET parameter.
public static void
setMalformedInputAction(final HttpParams
HTTP parameters
params
,
final CodingErrorAction
action to perform on malformed inputs
action
)

Deprecated as a consequence of HttpParams being deprecated.
Sets value of the CoreProtocolPNames#HTTP_MALFORMED_INPUT_ACTION parameter.
public static void
setUnmappableInputAction(final HttpParams
HTTP parameters
params
,
final CodingErrorAction
action to perform on un mappable inputs
action
)

Deprecated as a consequence of HttpParams being deprecated.
Sets the value of the CoreProtocolPNames#HTTP_UNMAPPABLE_INPUT_ACTION parameter.
public static void
setUseExpectContinue(final HttpParams
HTTP parameters.
params
,
final boolean
expect-continue flag.
b
)

Deprecated as a consequence of HttpParams being deprecated.
Sets value of the CoreProtocolPNames#USE_EXPECT_CONTINUE parameter.
public static void
setUserAgent(final HttpParams
HTTP parameters.
params
,
final String
User agent string.
useragent
)

Deprecated as a consequence of HttpParams being deprecated.
Sets value of the CoreProtocolPNames#USER_AGENT parameter.
public static void
setVersion(final HttpParams
HTTP parameters.
params
,
final ProtocolVersion
HTTP protocol version.
version
)

Deprecated as a consequence of HttpParams being deprecated.
Sets value of the CoreProtocolPNames#PROTOCOL_VERSION parameter.
public static boolean

Returns:

User agent string.
useExpectContinue
(final HttpParams
HTTP parameters.
params
)

Deprecated as a consequence of HttpParams being deprecated.
Obtains value of the CoreProtocolPNames#USE_EXPECT_CONTINUE parameter.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

HttpProtocolParamsback to summary
private HttpProtocolParams()

Method Detail

getContentCharsetback to summary
public static String getContentCharset(final HttpParams params)

Deprecated

as a consequence of HttpParams being deprecated. See corresponding docs for further information.

Obtains value of the CoreProtocolPNames#HTTP_CONTENT_CHARSET parameter. If not set, defaults to ISO-8859-1.

Parameters
params:HttpParams

HTTP parameters.

Returns:String

HTTP content charset.

getHttpElementCharsetback to summary
public static String getHttpElementCharset(final HttpParams params)

Deprecated

as a consequence of HttpParams being deprecated. See corresponding docs for further information.

Obtains value of the CoreProtocolPNames#HTTP_ELEMENT_CHARSET parameter. If not set, defaults to US-ASCII.

Parameters
params:HttpParams

HTTP parameters.

Returns:String

HTTP element charset.

getMalformedInputActionback to summary
public static CodingErrorAction getMalformedInputAction(final HttpParams params)

Deprecated

as a consequence of HttpParams being deprecated. See corresponding docs for further information.

Obtains value of the CoreProtocolPNames#HTTP_MALFORMED_INPUT_ACTION parameter.

Parameters
params:HttpParams

HTTP parameters.

Returns:CodingErrorAction

Action to perform upon receiving a malformed input

Since
4.2
getUnmappableInputActionback to summary
public static CodingErrorAction getUnmappableInputAction(final HttpParams params)

Deprecated

as a consequence of HttpParams being deprecated. See corresponding docs for further information.

Obtains the value of the CoreProtocolPNames#HTTP_UNMAPPABLE_INPUT_ACTION parameter.

Parameters
params:HttpParams

HTTP parameters

Returns:CodingErrorAction

Action to perform upon receiving a unmapped input

Since
4.2
getUserAgentback to summary
public static String getUserAgent(final HttpParams params)

Deprecated

as a consequence of HttpParams being deprecated. See corresponding docs for further information.

Obtains value of the CoreProtocolPNames#USER_AGENT parameter. If not set, returns null.

Parameters
params:HttpParams

HTTP parameters.

Returns:String

User agent string.

getVersionback to summary
public static ProtocolVersion getVersion(final HttpParams params)

Deprecated

as a consequence of HttpParams being deprecated. See corresponding docs for further information.

Obtains value of the CoreProtocolPNames#PROTOCOL_VERSION parameter. If not set, defaults to HttpVersion#HTTP_1_1.

Parameters
params:HttpParams

HTTP parameters.

Returns:ProtocolVersion

HTTP protocol version.

setContentCharsetback to summary
public static void setContentCharset(final HttpParams params, final String charset)

Deprecated

as a consequence of HttpParams being deprecated. See corresponding docs for further information.

Sets value of the CoreProtocolPNames#HTTP_CONTENT_CHARSET parameter.

Parameters
params:HttpParams

HTTP parameters.

charset:String

HTTP content charset.

setHttpElementCharsetback to summary
public static void setHttpElementCharset(final HttpParams params, final String charset)

Deprecated

as a consequence of HttpParams being deprecated. See corresponding docs for further information.

Sets value of the CoreProtocolPNames#HTTP_ELEMENT_CHARSET parameter.

Parameters
params:HttpParams

HTTP parameters.

charset:String

HTTP element charset.

setMalformedInputActionback to summary
public static void setMalformedInputAction(final HttpParams params, final CodingErrorAction action)

Deprecated

as a consequence of HttpParams being deprecated. See corresponding docs for further information.

Sets value of the CoreProtocolPNames#HTTP_MALFORMED_INPUT_ACTION parameter.

Parameters
params:HttpParams

HTTP parameters

action:CodingErrorAction

action to perform on malformed inputs

Since
4.2
setUnmappableInputActionback to summary
public static void setUnmappableInputAction(final HttpParams params, final CodingErrorAction action)

Deprecated

as a consequence of HttpParams being deprecated. See corresponding docs for further information.

Sets the value of the CoreProtocolPNames#HTTP_UNMAPPABLE_INPUT_ACTION parameter.

Parameters
params:HttpParams

HTTP parameters

action:CodingErrorAction

action to perform on un mappable inputs

Since
4.2
setUseExpectContinueback to summary
public static void setUseExpectContinue(final HttpParams params, final boolean b)

Deprecated

as a consequence of HttpParams being deprecated. See corresponding docs for further information.

Sets value of the CoreProtocolPNames#USE_EXPECT_CONTINUE parameter.

Parameters
params:HttpParams

HTTP parameters.

b:boolean

expect-continue flag.

setUserAgentback to summary
public static void setUserAgent(final HttpParams params, final String useragent)

Deprecated

as a consequence of HttpParams being deprecated. See corresponding docs for further information.

Sets value of the CoreProtocolPNames#USER_AGENT parameter.

Parameters
params:HttpParams

HTTP parameters.

useragent:String

User agent string.

setVersionback to summary
public static void setVersion(final HttpParams params, final ProtocolVersion version)

Deprecated

as a consequence of HttpParams being deprecated. See corresponding docs for further information.

Sets value of the CoreProtocolPNames#PROTOCOL_VERSION parameter.

Parameters
params:HttpParams

HTTP parameters.

version:ProtocolVersion

HTTP protocol version.

useExpectContinueback to summary
public static boolean useExpectContinue(final HttpParams params)

Deprecated

as a consequence of HttpParams being deprecated. See corresponding docs for further information.

Obtains value of the CoreProtocolPNames#USE_EXPECT_CONTINUE parameter. If not set, returns false.

Parameters
params:HttpParams

HTTP parameters.

Returns:boolean

User agent string.