Top Deprecated
Apache HttpComponents Core HTTP/1.1 5.2.4

Deprecated API


No API in this release is deprecated for removal.

Deprecated Item Summary

SinceDeprecated Item and Description

Returns:

content type or null if not known.
org.apache.hc.core5.http.ContentType.getByMimeType
(final String
MIME type
mimeType
)

Do not use. This method was made public by mistake.

org.apache.hc.core5.http.impl.io.EmptyInputStream.INSTANCE

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

org.apache.hc.core5.http.message.TokenParser.INSTANCE

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

org.apache.hc.core5.http.nio.ssl.BasicClientTlsStrategy.upgrade(final TransportSecurityLayer
the session layer
tlsSession
,
final HttpHost
the name of the opposite endpoint when given or null otherwise.
host
,
final SocketAddress
the address of the local endpoint.
localAddress
,
final SocketAddress
the address of the remote endpoint.
remoteAddress
,
final Object
arbitrary object passes to the TLS session initialization code.
attachment
,
final Timeout
the timeout to use while performing the TLS handshake; may be null.
handshakeTimeout
)

use upgrade(TransportSecurityLayer, NamedEndpoint, Object, Timeout, FutureCallback)

org.apache.hc.core5.http.nio.ssl.BasicServerTlsStrategy.securePortStrategy

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

org.apache.hc.core5.http.nio.ssl.BasicServerTlsStrategy.upgrade(final TransportSecurityLayer
the session layer
tlsSession
,
final HttpHost
the name of the opposite endpoint when given or null otherwise.
host
,
final SocketAddress
the address of the local endpoint.
localAddress
,
final SocketAddress
the address of the remote endpoint.
remoteAddress
,
final Object
arbitrary object passes to the TLS session initialization code.
attachment
,
final Timeout
the timeout to use while performing the TLS handshake; may be null.
handshakeTimeout
)

use upgrade(TransportSecurityLayer, NamedEndpoint, Object, Timeout, FutureCallback)

org.apache.hc.core5.http.nio.ssl.FixedPortStrategy

Use configuration parameters provided by connection listeners.

org.apache.hc.core5.http.nio.ssl.SecurePortStrategy

Use configuration parameters provided by connection listeners.

Returns:

true if the session has been upgraded, false otherwise.
org.apache.hc.core5.http.nio.ssl.TlsStrategy.upgrade
(TransportSecurityLayer
the session layer
sessionLayer
,
HttpHost
the name of the opposite endpoint when given or null otherwise.
host
,
SocketAddress
the address of the local endpoint.
localAddress
,
SocketAddress
the address of the remote endpoint.
remoteAddress
,
Object
arbitrary object passes to the TLS session initialization code.
attachment
,
Timeout
the timeout to use while performing the TLS handshake; may be null.
handshakeTimeout
)

use upgrade(TransportSecurityLayer, NamedEndpoint, Object, Timeout, FutureCallback)

org.apache.hc.core5.http.protocol.HttpDateGenerator.GMT

This attribute is no longer supported as a part of the public API. The time zone to use in the date header.

Returns:

this.
org.apache.hc.core5.net.URIBuilder.setUserInfo
(final String username, final String password)

The use of clear-text passwords in URIs has been deprecated and is strongly discouraged.

org.apache.hc.core5.net.URLEncodedUtils

Use URIBuilder to parse and format URIs and WWWFormCodec to parse and format application/x-www-form-urlencoded forms.

Returns:

true if the objects are equal or both null
org.apache.hc.core5.util.LangUtils.equals
(final Object
first object to compare, may be null
obj1
,
final Object
second object to compare, may be null
obj2
)

Use Objects#equals(Object).

Returns:

true if the arrays are equal or both null
org.apache.hc.core5.util.LangUtils.equals
(final Object[]
first array to compare, may be null
a1
,
final Object[]
second array to compare, may be null
a2
)

Use Arrays#equals(Object).

Returns:

the timestamp, never null
org.apache.hc.core5.util.VersionInfo.getTimestamp
()

This will be removed in 6.0.