Migrate to ApacheHttpClient 5.x Classes Namespace from 4.x
org.openrewrite.apache.httpclient5.UpgradeApacheHttpClient_5_ClassMapping
Mapping of all the compatible classes of ApacheHttpClient 5.x from 4.x.
Recipe source
GitHub, Issue Tracker, Maven Central
- groupId: org.openrewrite.recipe
- artifactId: rewrite-apache
- version: 1.8.2
This recipe is composed of more than one recipe. If you want to customize the set of recipes this is composed of, you can find and copy the GitHub source for the recipe from the link above.
Definition
- Recipe List
- Yaml Recipe List
- Rename package name
- oldPackageName:
org.apache.http.client.methods
- newPackageName:
org.apache.hc.client5.http.classic.methods
- oldPackageName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.classic.methods.CloseableHttpResponse
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.classic.CloseableHttpResponse
- oldFullyQualifiedTypeName:
- Rename package name
- oldPackageName:
org.apache.http.client.entity
- newPackageName:
org.apache.hc.client5.http.entity
- oldPackageName:
- Rename package name
- oldPackageName:
org.apache.http.client.protocol
- newPackageName:
org.apache.hc.client5.http.protocol
- oldPackageName:
- Rename package name
- oldPackageName:
org.apache.http.conn.socket
- newPackageName:
org.apache.hc.client5.http.socket
- oldPackageName:
- Rename package name
- oldPackageName:
org.apache.http.ssl
- newPackageName:
org.apache.hc.core5.ssl
- oldPackageName:
- Rename package name
- oldPackageName:
org.apache.http.concurrent
- newPackageName:
org.apache.hc.core5.concurrent
- oldPackageName:
- Rename package name
- oldPackageName:
org.apache.http.impl.auth
- newPackageName:
org.apache.hc.client5.http.impl.auth
- oldPackageName:
- Rename package name
- oldPackageName:
org.apache.http.impl.cookie
- newPackageName:
org.apache.hc.client5.http.impl.cookie
- oldPackageName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.cookie.PublicSuffixListParser
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.psl.PublicSuffixListParser
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.cookie.DateUtils
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.utils.DateUtils
- oldFullyQualifiedTypeName:
- Rename package name
- oldPackageName:
org.apache.http.impl.client
- newPackageName:
org.apache.hc.client5.http.impl.classic
- oldPackageName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.http.impl.client.BasicAuthCache
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.auth.BasicAuthCache
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.classic.BasicAuthCache
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.auth.BasicAuthCache
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.classic.HttpAuthenticator
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.auth.HttpAuthenticator
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.classic.SystemDefaultCredentialsProvider
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.auth.SystemDefaultCredentialsProvider
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.classic.DefaultClientConnectionReuseStrategy
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.DefaultClientConnectionReuseStrategy
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.classic.DefaultRedirectStrategy
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.DefaultRedirectStrategy
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.classic.RedirectLocations
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.protocol.RedirectLocations
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.classic.BasicCookieStore
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.cookie.BasicCookieStore
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.classic.DefaultConnectionKeepAliveStrategy
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.DefaultConnectionKeepAliveStrategy
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.classic.IdleConnectionEvictor
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.IdleConnectionEvictor
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.classic.TunnelRefusedException
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.TunnelRefusedException
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.classic.NoopUserTokenHandler
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.NoopUserTokenHandler
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.classic.DefaultUserTokenHandler
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.DefaultUserTokenHandler
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.classic.BasicCredentialsProvider
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.auth.BasicCredentialsProvider
- oldFullyQualifiedTypeName:
- Rename package name
- oldPackageName:
org.apache.http.auth
- newPackageName:
org.apache.hc.client5.http.auth
- oldPackageName:
- Rename package name
- oldPackageName:
org.apache.http.cookie
- newPackageName:
org.apache.hc.client5.http.cookie
- oldPackageName:
- Rename package name
- oldPackageName:
org.apache.http.cookie
- newPackageName:
org.apache.hc.client5.http.cookie
- oldPackageName:
- Rename package name
- oldPackageName:
org.apache.http.annotation
- newPackageName:
org.apache.hc.core5.annotation
- oldPackageName:
- Rename package name
- oldPackageName:
org.apache.http.client.config
- newPackageName:
org.apache.hc.client5.http.config
- oldPackageName:
- Replace constant with another constant
- existingFullyQualifiedConstantName:
org.apache.hc.client5.http.config.CookieSpecs.IGNORE_COOKIES
- fullyQualifiedConstantName:
org.apache.hc.client5.http.cookie.StandardCookieSpec.IGNORE
- existingFullyQualifiedConstantName:
- Replace constant with another constant
- existingFullyQualifiedConstantName:
org.apache.hc.client5.http.config.CookieSpecs.STANDARD
- fullyQualifiedConstantName:
org.apache.hc.client5.http.cookie.StandardCookieSpec.RELAXED
- existingFullyQualifiedConstantName:
- Replace constant with another constant
- existingFullyQualifiedConstantName:
org.apache.hc.client5.http.config.CookieSpecs.STANDARD_STRICT
- fullyQualifiedConstantName:
org.apache.hc.client5.http.cookie.StandardCookieSpec.STRICT
- existingFullyQualifiedConstantName:
- Rename package name
- oldPackageName:
org.apache.http.annotation
- newPackageName:
org.apache.hc.core5.annotation
- oldPackageName:
- Rename package name
- oldPackageName:
org.apache.http.entity
- newPackageName:
org.apache.hc.core5.http.io.entity
- oldPackageName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.core5.http.io.entity.ContentLengthStrategy
- newFullyQualifiedTypeName:
org.apache.hc.core5.http.ContentLengthStrategy
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.core5.http.io.entity.ContentType
- newFullyQualifiedTypeName:
org.apache.hc.core5.http.ContentType
- oldFullyQualifiedTypeName:
- Rename package name
- oldPackageName:
org.apache.http.impl.bootstrap
- newPackageName:
org.apache.hc.core5.http.impl.bootstrap
- oldPackageName:
- Rename package name
- oldPackageName:
org.apache.http.impl.execchain
- newPackageName:
org.apache.hc.client5.http.impl.classic
- oldPackageName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.classic.TunnelRefusedException
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.TunnelRefusedException
- oldFullyQualifiedTypeName:
- Rename package name
- oldPackageName:
org.apache.http.impl.io
- newPackageName:
org.apache.hc.core5.http.impl.io
- oldPackageName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.core5.http.impl.io.DefaultHttpResponseParserFactory
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.io.DefaultHttpResponseParserFactory
- oldFullyQualifiedTypeName:
- Rename package name
- oldPackageName:
org.apache.http.io
- newPackageName:
org.apache.hc.core5.http.io
- oldPackageName:
- Rename package name
- oldPackageName:
org.apache.http.message
- newPackageName:
org.apache.hc.core5.http.message
- oldPackageName:
- Rename package name
- oldPackageName:
org.apache.http.pool
- newPackageName:
org.apache.hc.core5.pool
- oldPackageName:
- Rename package name
- oldPackageName:
org.apache.http.protocol
- newPackageName:
org.apache.hc.core5.http.protocol
- oldPackageName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.core5.http.protocol.HttpService
- newFullyQualifiedTypeName:
org.apache.hc.core5.http.impl.io.HttpService
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.core5.http.protocol.HttpRequestExecutor
- newFullyQualifiedTypeName:
org.apache.hc.core5.http.impl.io.HttpRequestExecutor
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.core5.http.protocol.HttpRequestHandler
- newFullyQualifiedTypeName:
org.apache.hc.core5.http.io.HttpRequestHandler
- oldFullyQualifiedTypeName:
- Rename package name
- oldPackageName:
org.apache.http.util
- newPackageName:
org.apache.hc.core5.util
- oldPackageName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.core5.util.EntityUtils
- newFullyQualifiedTypeName:
org.apache.hc.core5.http.io.entity.EntityUtils
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.http.client.utils.URIBuilder
- newFullyQualifiedTypeName:
org.apache.hc.core5.net.URIBuilder
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.http.client.utils.URLEncodedUtils
- newFullyQualifiedTypeName:
org.apache.hc.core5.net.URLEncodedUtils
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.http.client.utils.URIUtils
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.utils.URIUtils
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.http.client.utils.DateUtils
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.utils.DateUtils
- oldFullyQualifiedTypeName:
- Rename package name
- oldPackageName:
org.apache.http.client
- newPackageName:
org.apache.hc.client5.http
- oldPackageName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.CredentialsProvider
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.auth.CredentialsProvider
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.AuthCache
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.auth.AuthCache
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.BackoffManager
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.classic.BackoffManager
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.HttpClient
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.classic.HttpClient
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.ConnectionBackoffStrategy
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.classic.ConnectionBackoffStrategy
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.CookieStore
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.cookie.CookieStore
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.RedirectStrategy
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.protocol.RedirectStrategy
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.classic.methods.RequestBuilder
- newFullyQualifiedTypeName:
org.apache.hc.core5.http.io.support.ClassicRequestBuilder
- oldFullyQualifiedTypeName:
- Rename package name
- oldPackageName:
org.apache.http.config
- newPackageName:
org.apache.hc.core5.http.config
- oldPackageName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.core5.http.config.SocketConfig
- newFullyQualifiedTypeName:
org.apache.hc.core5.http.io.SocketConfig
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.core5.http.config.SocketConfig.Builder
- newFullyQualifiedTypeName:
org.apache.hc.core5.http.io.SocketConfig.Builder
- oldFullyQualifiedTypeName:
- Rename package name
- oldPackageName:
org.apache.http.impl
- newPackageName:
org.apache.hc.core5.http.impl.io
- oldPackageName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.core5.http.impl.io.EnglishReasonPhraseCatalog
- newFullyQualifiedTypeName:
org.apache.hc.core5.http.impl.EnglishReasonPhraseCatalog
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.core5.http.impl.io.DefaultConnectionReuseStrategy
- newFullyQualifiedTypeName:
org.apache.hc.core5.http.impl.DefaultConnectionReuseStrategy
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.core5.http.impl.io.DefaultHttpRequestFactory
- newFullyQualifiedTypeName:
org.apache.hc.core5.http.impl.nio.DefaultHttpRequestFactory
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.core5.http.impl.io.DefaultHttpResponseFactory
- newFullyQualifiedTypeName:
org.apache.hc.core5.http.impl.nio.DefaultHttpResponseFactory
- oldFullyQualifiedTypeName:
- Rename package name
- oldPackageName:
org.apache.http.conn.util
- newPackageName:
org.apache.hc.client5.http.psl
- oldPackageName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.psl.DnsUtils
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.utils.DnsUtils
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.psl.InetAddressUtils
- newFullyQualifiedTypeName:
org.apache.hc.core5.net.InetAddressUtils
- oldFullyQualifiedTypeName:
- Rename package name
- oldPackageName:
org.apache.http.conn.routing
- newPackageName:
org.apache.hc.client5.http
- oldPackageName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.BasicRouteDirector
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.routing.BasicRouteDirector
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.HttpRouteDirector
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.routing.HttpRouteDirector
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.HttpRoutePlanner
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.routing.HttpRoutePlanner
- oldFullyQualifiedTypeName:
- Rename package name
- oldPackageName:
org.apache.http.conn.ssl
- newPackageName:
org.apache.hc.core5.ssl
- oldPackageName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.core5.ssl.SSLConnectionSocketFactory
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.ssl.SSLConnectionSocketFactory
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.core5.ssl.NoopHostnameVerifier
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.ssl.NoopHostnameVerifier
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.core5.ssl.DefaultHostnameVerifier
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.ssl.DefaultHostnameVerifier
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.core5.ssl.TrustSelfSignedStrategy
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.ssl.TrustSelfSignedStrategy
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.core5.ssl.TrustAllStrategy
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.ssl.TrustAllStrategy
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.core5.ssl.SubjectName
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.ssl.SubjectName
- oldFullyQualifiedTypeName:
- Rename package name
- oldPackageName:
org.apache.http.impl.conn
- newPackageName:
org.apache.hc.client5.http.impl.io
- oldPackageName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.io.SystemDefaultDnsResolver
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.SystemDefaultDnsResolver
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.io.Wire
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.Wire
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.io.InMemoryDnsResolver
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.InMemoryDnsResolver
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.io.ConnectionShutdownException
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.ConnectionShutdownException
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.io.DefaultSchemePortResolver
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.DefaultSchemePortResolver
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.io.DefaultProxyRoutePlanner
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.routing.DefaultProxyRoutePlanner
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.io.DefaultRoutePlanner
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.routing.DefaultRoutePlanner
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.io.SystemDefaultRoutePlanner
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.routing.SystemDefaultRoutePlanner
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.io.DefaultHttpResponseParser
- newFullyQualifiedTypeName:
org.apache.hc.core5.http.impl.io.DefaultHttpResponseParser
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.io.PoolingClientConnectionManager
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.io.PoolingHttpClientConnectionManager
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.SchemeRegistryFactory
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.impl.DefaultSchemePortResolver
- oldFullyQualifiedTypeName:
- Rename package name
- oldPackageName:
org.apache.http.conn
- newPackageName:
org.apache.hc.client5.http
- oldPackageName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.ManagedHttpClientConnection
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.io.ManagedHttpClientConnection
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.HttpClientConnectionManager
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.io.HttpClientConnectionManager
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.HttpClientConnectionOperator
- newFullyQualifiedTypeName:
org.apache.hc.client5.http.io.HttpClientConnectionOperator
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.EofSensorWatcher
- newFullyQualifiedTypeName:
org.apache.hc.core5.http.io.EofSensorWatcher
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.EofSensorInputStream
- newFullyQualifiedTypeName:
org.apache.hc.core5.http.io.EofSensorInputStream
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.client5.http.HttpConnectionFactory
- newFullyQualifiedTypeName:
org.apache.hc.core5.http.io.HttpConnectionFactory
- oldFullyQualifiedTypeName:
- Rename package name
- oldPackageName:
org.apache.http
- newPackageName:
org.apache.hc.core5.http
- oldPackageName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.core5.http.RequestLine
- newFullyQualifiedTypeName:
org.apache.hc.core5.http.message.RequestLine
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.core5.http.RequestLine
- newFullyQualifiedTypeName:
org.apache.hc.core5.http.message.RequestLine
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.core5.http.HttpClientConnection
- newFullyQualifiedTypeName:
org.apache.hc.core5.http.io.HttpClientConnection
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.core5.http.StatusLine
- newFullyQualifiedTypeName:
org.apache.hc.core5.http.message.StatusLine
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.core5.http.HttpServerConnection
- newFullyQualifiedTypeName:
org.apache.hc.core5.http.io.HttpServerConnection
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.hc.core5.http.HttpConnectionFactory
- newFullyQualifiedTypeName:
org.apache.hc.core5.http.io.HttpConnectionFactory
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.http.HttpRequest
- newFullyQualifiedTypeName:
org.apache.hc.core5.http.ClassicHttpRequest
- oldFullyQualifiedTypeName:
- Change type
- oldFullyQualifiedTypeName:
org.apache.http.HttpResponse
- newFullyQualifiedTypeName:
org.apache.hc.core5.http.ClassicHttpResponse
- oldFullyQualifiedTypeName:
- Reorder method arguments
- methodPattern:
org.apache.hc.core5.http.HttpHost <constructor>(java.lang.String, int, java.lang.String)
- newParameterNames:
[scheme, hostname, port]
- oldParameterNames:
[hostname, port, scheme]
- methodPattern:
- Reorder method arguments
- methodPattern:
org.apache.hc.core5.http.HttpHost <constructor>(java.net.InetAddress, int, java.lang.String)
- newParameterNames:
[scheme, address, port]
- oldParameterNames:
[address, port, scheme]
- methodPattern:
- Reorder method arguments
- methodPattern:
org.apache.hc.core5.http.HttpHost <constructor>(java.net.InetAddress, java.lang.String, int, java.lang.String)
- newParameterNames:
[scheme, address, hostname, port]
- oldParameterNames:
[address, hostname, port, scheme]
- methodPattern:
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.apache.httpclient5.UpgradeApacheHttpClient_5_ClassMapping
displayName: Migrate to ApacheHttpClient 5.x Classes Namespace from 4.x
description: Mapping of all the compatible classes of ApacheHttpClient 5.x from 4.x.
recipeList:
- org.openrewrite.java.ChangePackage:
oldPackageName: org.apache.http.client.methods
newPackageName: org.apache.hc.client5.http.classic.methods
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.classic.methods.CloseableHttpResponse
newFullyQualifiedTypeName: org.apache.hc.client5.http.impl.classic.CloseableHttpResponse
- org.openrewrite.java.ChangePackage:
oldPackageName: org.apache.http.client.entity
newPackageName: org.apache.hc.client5.http.entity
- org.openrewrite.java.ChangePackage:
oldPackageName: org.apache.http.client.protocol
newPackageName: org.apache.hc.client5.http.protocol
- org.openrewrite.java.ChangePackage:
oldPackageName: org.apache.http.conn.socket
newPackageName: org.apache.hc.client5.http.socket
- org.openrewrite.java.ChangePackage:
oldPackageName: org.apache.http.ssl
newPackageName: org.apache.hc.core5.ssl
- org.openrewrite.java.ChangePackage:
oldPackageName: org.apache.http.concurrent
newPackageName: org.apache.hc.core5.concurrent
- org.openrewrite.java.ChangePackage:
oldPackageName: org.apache.http.impl.auth
newPackageName: org.apache.hc.client5.http.impl.auth
- org.openrewrite.java.ChangePackage:
oldPackageName: org.apache.http.impl.cookie
newPackageName: org.apache.hc.client5.http.impl.cookie
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.impl.cookie.PublicSuffixListParser
newFullyQualifiedTypeName: org.apache.hc.client5.http.psl.PublicSuffixListParser
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.impl.cookie.DateUtils
newFullyQualifiedTypeName: org.apache.hc.client5.http.utils.DateUtils
- org.openrewrite.java.ChangePackage:
oldPackageName: org.apache.http.impl.client
newPackageName: org.apache.hc.client5.http.impl.classic
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.http.impl.client.BasicAuthCache
newFullyQualifiedTypeName: org.apache.hc.client5.http.impl.auth.BasicAuthCache
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.impl.classic.BasicAuthCache
newFullyQualifiedTypeName: org.apache.hc.client5.http.impl.auth.BasicAuthCache
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.impl.classic.HttpAuthenticator
newFullyQualifiedTypeName: org.apache.hc.client5.http.impl.auth.HttpAuthenticator
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.impl.classic.SystemDefaultCredentialsProvider
newFullyQualifiedTypeName: org.apache.hc.client5.http.impl.auth.SystemDefaultCredentialsProvider
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.impl.classic.DefaultClientConnectionReuseStrategy
newFullyQualifiedTypeName: org.apache.hc.client5.http.impl.DefaultClientConnectionReuseStrategy
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.impl.classic.DefaultRedirectStrategy
newFullyQualifiedTypeName: org.apache.hc.client5.http.impl.DefaultRedirectStrategy
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.impl.classic.RedirectLocations
newFullyQualifiedTypeName: org.apache.hc.client5.http.protocol.RedirectLocations
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.impl.classic.BasicCookieStore
newFullyQualifiedTypeName: org.apache.hc.client5.http.cookie.BasicCookieStore
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.impl.classic.DefaultConnectionKeepAliveStrategy
newFullyQualifiedTypeName: org.apache.hc.client5.http.impl.DefaultConnectionKeepAliveStrategy
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.impl.classic.IdleConnectionEvictor
newFullyQualifiedTypeName: org.apache.hc.client5.http.impl.IdleConnectionEvictor
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.impl.classic.TunnelRefusedException
newFullyQualifiedTypeName: org.apache.hc.client5.http.impl.TunnelRefusedException
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.impl.classic.NoopUserTokenHandler
newFullyQualifiedTypeName: org.apache.hc.client5.http.impl.NoopUserTokenHandler
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.impl.classic.DefaultUserTokenHandler
newFullyQualifiedTypeName: org.apache.hc.client5.http.impl.DefaultUserTokenHandler
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.impl.classic.BasicCredentialsProvider
newFullyQualifiedTypeName: org.apache.hc.client5.http.impl.auth.BasicCredentialsProvider
- org.openrewrite.java.ChangePackage:
oldPackageName: org.apache.http.auth
newPackageName: org.apache.hc.client5.http.auth
- org.openrewrite.java.ChangePackage:
oldPackageName: org.apache.http.cookie
newPackageName: org.apache.hc.client5.http.cookie
- org.openrewrite.java.ChangePackage:
oldPackageName: org.apache.http.cookie
newPackageName: org.apache.hc.client5.http.cookie
- org.openrewrite.java.ChangePackage:
oldPackageName: org.apache.http.annotation
newPackageName: org.apache.hc.core5.annotation
- org.openrewrite.java.ChangePackage:
oldPackageName: org.apache.http.client.config
newPackageName: org.apache.hc.client5.http.config
- org.openrewrite.java.ReplaceConstantWithAnotherConstant:
existingFullyQualifiedConstantName: org.apache.hc.client5.http.config.CookieSpecs.IGNORE_COOKIES
fullyQualifiedConstantName: org.apache.hc.client5.http.cookie.StandardCookieSpec.IGNORE
- org.openrewrite.java.ReplaceConstantWithAnotherConstant:
existingFullyQualifiedConstantName: org.apache.hc.client5.http.config.CookieSpecs.STANDARD
fullyQualifiedConstantName: org.apache.hc.client5.http.cookie.StandardCookieSpec.RELAXED
- org.openrewrite.java.ReplaceConstantWithAnotherConstant:
existingFullyQualifiedConstantName: org.apache.hc.client5.http.config.CookieSpecs.STANDARD_STRICT
fullyQualifiedConstantName: org.apache.hc.client5.http.cookie.StandardCookieSpec.STRICT
- org.openrewrite.java.ChangePackage:
oldPackageName: org.apache.http.annotation
newPackageName: org.apache.hc.core5.annotation
- org.openrewrite.java.ChangePackage:
oldPackageName: org.apache.http.entity
newPackageName: org.apache.hc.core5.http.io.entity
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.core5.http.io.entity.ContentLengthStrategy
newFullyQualifiedTypeName: org.apache.hc.core5.http.ContentLengthStrategy
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.core5.http.io.entity.ContentType
newFullyQualifiedTypeName: org.apache.hc.core5.http.ContentType
- org.openrewrite.java.ChangePackage:
oldPackageName: org.apache.http.impl.bootstrap
newPackageName: org.apache.hc.core5.http.impl.bootstrap
- org.openrewrite.java.ChangePackage:
oldPackageName: org.apache.http.impl.execchain
newPackageName: org.apache.hc.client5.http.impl.classic
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.impl.classic.TunnelRefusedException
newFullyQualifiedTypeName: org.apache.hc.client5.http.impl.TunnelRefusedException
- org.openrewrite.java.ChangePackage:
oldPackageName: org.apache.http.impl.io
newPackageName: org.apache.hc.core5.http.impl.io
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.core5.http.impl.io.DefaultHttpResponseParserFactory
newFullyQualifiedTypeName: org.apache.hc.client5.http.impl.io.DefaultHttpResponseParserFactory
- org.openrewrite.java.ChangePackage:
oldPackageName: org.apache.http.io
newPackageName: org.apache.hc.core5.http.io
- org.openrewrite.java.ChangePackage:
oldPackageName: org.apache.http.message
newPackageName: org.apache.hc.core5.http.message
- org.openrewrite.java.ChangePackage:
oldPackageName: org.apache.http.pool
newPackageName: org.apache.hc.core5.pool
- org.openrewrite.java.ChangePackage:
oldPackageName: org.apache.http.protocol
newPackageName: org.apache.hc.core5.http.protocol
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.core5.http.protocol.HttpService
newFullyQualifiedTypeName: org.apache.hc.core5.http.impl.io.HttpService
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.core5.http.protocol.HttpRequestExecutor
newFullyQualifiedTypeName: org.apache.hc.core5.http.impl.io.HttpRequestExecutor
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.core5.http.protocol.HttpRequestHandler
newFullyQualifiedTypeName: org.apache.hc.core5.http.io.HttpRequestHandler
- org.openrewrite.java.ChangePackage:
oldPackageName: org.apache.http.util
newPackageName: org.apache.hc.core5.util
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.core5.util.EntityUtils
newFullyQualifiedTypeName: org.apache.hc.core5.http.io.entity.EntityUtils
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.http.client.utils.URIBuilder
newFullyQualifiedTypeName: org.apache.hc.core5.net.URIBuilder
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.http.client.utils.URLEncodedUtils
newFullyQualifiedTypeName: org.apache.hc.core5.net.URLEncodedUtils
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.http.client.utils.URIUtils
newFullyQualifiedTypeName: org.apache.hc.client5.http.utils.URIUtils
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.http.client.utils.DateUtils
newFullyQualifiedTypeName: org.apache.hc.client5.http.utils.DateUtils
- org.openrewrite.java.ChangePackage:
oldPackageName: org.apache.http.client
newPackageName: org.apache.hc.client5.http
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.CredentialsProvider
newFullyQualifiedTypeName: org.apache.hc.client5.http.auth.CredentialsProvider
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.AuthCache
newFullyQualifiedTypeName: org.apache.hc.client5.http.auth.AuthCache
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.BackoffManager
newFullyQualifiedTypeName: org.apache.hc.client5.http.classic.BackoffManager
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.HttpClient
newFullyQualifiedTypeName: org.apache.hc.client5.http.classic.HttpClient
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.ConnectionBackoffStrategy
newFullyQualifiedTypeName: org.apache.hc.client5.http.classic.ConnectionBackoffStrategy
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.CookieStore
newFullyQualifiedTypeName: org.apache.hc.client5.http.cookie.CookieStore
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.RedirectStrategy
newFullyQualifiedTypeName: org.apache.hc.client5.http.protocol.RedirectStrategy
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.classic.methods.RequestBuilder
newFullyQualifiedTypeName: org.apache.hc.core5.http.io.support.ClassicRequestBuilder
- org.openrewrite.java.ChangePackage:
oldPackageName: org.apache.http.config
newPackageName: org.apache.hc.core5.http.config
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.core5.http.config.SocketConfig
newFullyQualifiedTypeName: org.apache.hc.core5.http.io.SocketConfig
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.core5.http.config.SocketConfig.Builder
newFullyQualifiedTypeName: org.apache.hc.core5.http.io.SocketConfig.Builder
- org.openrewrite.java.ChangePackage:
oldPackageName: org.apache.http.impl
newPackageName: org.apache.hc.core5.http.impl.io
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.core5.http.impl.io.EnglishReasonPhraseCatalog
newFullyQualifiedTypeName: org.apache.hc.core5.http.impl.EnglishReasonPhraseCatalog
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.core5.http.impl.io.DefaultConnectionReuseStrategy
newFullyQualifiedTypeName: org.apache.hc.core5.http.impl.DefaultConnectionReuseStrategy
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.core5.http.impl.io.DefaultHttpRequestFactory
newFullyQualifiedTypeName: org.apache.hc.core5.http.impl.nio.DefaultHttpRequestFactory
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.core5.http.impl.io.DefaultHttpResponseFactory
newFullyQualifiedTypeName: org.apache.hc.core5.http.impl.nio.DefaultHttpResponseFactory
- org.openrewrite.java.ChangePackage:
oldPackageName: org.apache.http.conn.util
newPackageName: org.apache.hc.client5.http.psl
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.psl.DnsUtils
newFullyQualifiedTypeName: org.apache.hc.client5.http.utils.DnsUtils
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.psl.InetAddressUtils
newFullyQualifiedTypeName: org.apache.hc.core5.net.InetAddressUtils
- org.openrewrite.java.ChangePackage:
oldPackageName: org.apache.http.conn.routing
newPackageName: org.apache.hc.client5.http
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.BasicRouteDirector
newFullyQualifiedTypeName: org.apache.hc.client5.http.impl.routing.BasicRouteDirector
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.HttpRouteDirector
newFullyQualifiedTypeName: org.apache.hc.client5.http.routing.HttpRouteDirector
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.HttpRoutePlanner
newFullyQualifiedTypeName: org.apache.hc.client5.http.routing.HttpRoutePlanner
- org.openrewrite.java.ChangePackage:
oldPackageName: org.apache.http.conn.ssl
newPackageName: org.apache.hc.core5.ssl
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.core5.ssl.SSLConnectionSocketFactory
newFullyQualifiedTypeName: org.apache.hc.client5.http.ssl.SSLConnectionSocketFactory
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.core5.ssl.NoopHostnameVerifier
newFullyQualifiedTypeName: org.apache.hc.client5.http.ssl.NoopHostnameVerifier
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.core5.ssl.DefaultHostnameVerifier
newFullyQualifiedTypeName: org.apache.hc.client5.http.ssl.DefaultHostnameVerifier
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.core5.ssl.TrustSelfSignedStrategy
newFullyQualifiedTypeName: org.apache.hc.client5.http.ssl.TrustSelfSignedStrategy
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.core5.ssl.TrustAllStrategy
newFullyQualifiedTypeName: org.apache.hc.client5.http.ssl.TrustAllStrategy
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.core5.ssl.SubjectName
newFullyQualifiedTypeName: org.apache.hc.client5.http.ssl.SubjectName
- org.openrewrite.java.ChangePackage:
oldPackageName: org.apache.http.impl.conn
newPackageName: org.apache.hc.client5.http.impl.io
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.impl.io.SystemDefaultDnsResolver
newFullyQualifiedTypeName: org.apache.hc.client5.http.SystemDefaultDnsResolver
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.impl.io.Wire
newFullyQualifiedTypeName: org.apache.hc.client5.http.impl.Wire
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.impl.io.InMemoryDnsResolver
newFullyQualifiedTypeName: org.apache.hc.client5.http.impl.InMemoryDnsResolver
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.impl.io.ConnectionShutdownException
newFullyQualifiedTypeName: org.apache.hc.client5.http.impl.ConnectionShutdownException
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.impl.io.DefaultSchemePortResolver
newFullyQualifiedTypeName: org.apache.hc.client5.http.impl.DefaultSchemePortResolver
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.impl.io.DefaultProxyRoutePlanner
newFullyQualifiedTypeName: org.apache.hc.client5.http.impl.routing.DefaultProxyRoutePlanner
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.impl.io.DefaultRoutePlanner
newFullyQualifiedTypeName: org.apache.hc.client5.http.impl.routing.DefaultRoutePlanner
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.impl.io.SystemDefaultRoutePlanner
newFullyQualifiedTypeName: org.apache.hc.client5.http.impl.routing.SystemDefaultRoutePlanner
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.impl.io.DefaultHttpResponseParser
newFullyQualifiedTypeName: org.apache.hc.core5.http.impl.io.DefaultHttpResponseParser
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.impl.io.PoolingClientConnectionManager
newFullyQualifiedTypeName: org.apache.hc.client5.http.impl.io.PoolingHttpClientConnectionManager
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.impl.SchemeRegistryFactory
newFullyQualifiedTypeName: org.apache.hc.client5.http.impl.DefaultSchemePortResolver
- org.openrewrite.java.ChangePackage:
oldPackageName: org.apache.http.conn
newPackageName: org.apache.hc.client5.http
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.ManagedHttpClientConnection
newFullyQualifiedTypeName: org.apache.hc.client5.http.io.ManagedHttpClientConnection
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.HttpClientConnectionManager
newFullyQualifiedTypeName: org.apache.hc.client5.http.io.HttpClientConnectionManager
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.HttpClientConnectionOperator
newFullyQualifiedTypeName: org.apache.hc.client5.http.io.HttpClientConnectionOperator
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.EofSensorWatcher
newFullyQualifiedTypeName: org.apache.hc.core5.http.io.EofSensorWatcher
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.EofSensorInputStream
newFullyQualifiedTypeName: org.apache.hc.core5.http.io.EofSensorInputStream
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.client5.http.HttpConnectionFactory
newFullyQualifiedTypeName: org.apache.hc.core5.http.io.HttpConnectionFactory
- org.openrewrite.java.ChangePackage:
oldPackageName: org.apache.http
newPackageName: org.apache.hc.core5.http
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.core5.http.RequestLine
newFullyQualifiedTypeName: org.apache.hc.core5.http.message.RequestLine
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.core5.http.RequestLine
newFullyQualifiedTypeName: org.apache.hc.core5.http.message.RequestLine
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.core5.http.HttpClientConnection
newFullyQualifiedTypeName: org.apache.hc.core5.http.io.HttpClientConnection
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.core5.http.StatusLine
newFullyQualifiedTypeName: org.apache.hc.core5.http.message.StatusLine
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.core5.http.HttpServerConnection
newFullyQualifiedTypeName: org.apache.hc.core5.http.io.HttpServerConnection
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.hc.core5.http.HttpConnectionFactory
newFullyQualifiedTypeName: org.apache.hc.core5.http.io.HttpConnectionFactory
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.http.HttpRequest
newFullyQualifiedTypeName: org.apache.hc.core5.http.ClassicHttpRequest
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.http.HttpResponse
newFullyQualifiedTypeName: org.apache.hc.core5.http.ClassicHttpResponse
- org.openrewrite.java.ReorderMethodArguments:
methodPattern: org.apache.hc.core5.http.HttpHost <constructor>(java.lang.String, int, java.lang.String)
newParameterNames: [scheme, hostname, port]
oldParameterNames: [hostname, port, scheme]
- org.openrewrite.java.ReorderMethodArguments:
methodPattern: org.apache.hc.core5.http.HttpHost <constructor>(java.net.InetAddress, int, java.lang.String)
newParameterNames: [scheme, address, port]
oldParameterNames: [address, port, scheme]
- org.openrewrite.java.ReorderMethodArguments:
methodPattern: org.apache.hc.core5.http.HttpHost <constructor>(java.net.InetAddress, java.lang.String, int, java.lang.String)
newParameterNames: [scheme, address, hostname, port]
oldParameterNames: [address, hostname, port, scheme]
Usage
This recipe has no required configuration options. It can be activated by adding a dependency on org.openrewrite.recipe:rewrite-apache:1.8.2
in your build file or by running a shell command (in which case no build changes are needed):
- Gradle
- Gradle init script
- Maven POM
- Maven Command Line
- Moderne CLI
- Add the following to your
build.gradle
file:
plugins {
id("org.openrewrite.rewrite") version("6.27.1")
}
rewrite {
activeRecipe("org.openrewrite.apache.httpclient5.UpgradeApacheHttpClient_5_ClassMapping")
setExportDatatables(true)
}
repositories {
mavenCentral()
}
dependencies {
rewrite("org.openrewrite.recipe:rewrite-apache:1.8.2")
}
- Run
gradle rewriteRun
to run the recipe.
- Create a file named
init.gradle
in the root of your project.
initscript {
repositories {
maven { url "https://plugins.gradle.org/m2" }
}
dependencies { classpath("org.openrewrite:plugin:6.27.1") }
}
rootProject {
plugins.apply(org.openrewrite.gradle.RewritePlugin)
dependencies {
rewrite("org.openrewrite.recipe:rewrite-apache:1.8.2")
}
rewrite {
activeRecipe("org.openrewrite.apache.httpclient5.UpgradeApacheHttpClient_5_ClassMapping")
setExportDatatables(true)
}
afterEvaluate {
if (repositories.isEmpty()) {
repositories {
mavenCentral()
}
}
}
}
- Run the recipe.
gradle --init-script init.gradle rewriteRun
- Add the following to your
pom.xml
file:
<project>
<build>
<plugins>
<plugin>
<groupId>org.openrewrite.maven</groupId>
<artifactId>rewrite-maven-plugin</artifactId>
<version>5.45.0</version>
<configuration>
<exportDatatables>true</exportDatatables>
<activeRecipes>
<recipe>org.openrewrite.apache.httpclient5.UpgradeApacheHttpClient_5_ClassMapping</recipe>
</activeRecipes>
</configuration>
<dependencies>
<dependency>
<groupId>org.openrewrite.recipe</groupId>
<artifactId>rewrite-apache</artifactId>
<version>1.8.2</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project>
- Run
mvn rewrite:run
to run the recipe.
You will need to have Maven installed on your machine before you can run the following command.
mvn -U org.openrewrite.maven:rewrite-maven-plugin:run -Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-apache:RELEASE -Drewrite.activeRecipes=org.openrewrite.apache.httpclient5.UpgradeApacheHttpClient_5_ClassMapping -Drewrite.exportDatatables=true
You will need to have configured the Moderne CLI on your machine before you can run the following command.
mod run . --recipe UpgradeApacheHttpClient_5_ClassMapping
See how this recipe works across multiple open-source repositories
Run this recipe on OSS repos at scale with the Moderne SaaS.
The community edition of the Moderne platform enables you to easily run recipes across thousands of open-source repositories.
Please contact Moderne for more information about safely running the recipes on your own codebase in a private SaaS.
Data Tables
Source files that had results
org.openrewrite.table.SourcesFileResults
Source files that were modified by the recipe run.
Column Name | Description |
---|---|
Source path before the run | The source path of the file before the run. null when a source file was created during the run. |
Source path after the run | A recipe may modify the source path. This is the path after the run. null when a source file was deleted during the run. |
Parent of the recipe that made changes | In a hierarchical recipe, the parent of the recipe that made a change. Empty if this is the root of a hierarchy or if the recipe is not hierarchical at all. |
Recipe that made changes | The specific recipe that made a change. |
Estimated time saving | An estimated effort that a developer to fix manually instead of using this recipe, in unit of seconds. |
Cycle | The recipe cycle in which the change was made. |
Source files that errored on a recipe
org.openrewrite.table.SourcesFileErrors
The details of all errors produced by a recipe run.
Column Name | Description |
---|---|
Source path | The file that failed to parse. |
Recipe that made changes | The specific recipe that made a change. |
Stack trace | The stack trace of the failure. |
Recipe performance
org.openrewrite.table.RecipeRunStats
Statistics used in analyzing the performance of recipes.
Column Name | Description |
---|---|
The recipe | The recipe whose stats are being measured both individually and cumulatively. |
Source file count | The number of source files the recipe ran over. |
Source file changed count | The number of source files which were changed in the recipe run. Includes files created, deleted, and edited. |
Cumulative scanning time | The total time spent across the scanning phase of this recipe. |
99th percentile scanning time | 99 out of 100 scans completed in this amount of time. |
Max scanning time | The max time scanning any one source file. |
Cumulative edit time | The total time spent across the editing phase of this recipe. |
99th percentile edit time | 99 out of 100 edits completed in this amount of time. |
Max edit time | The max time editing any one source file. |