This is an automated email from the ASF dual-hosted git repository.
fanningpj pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko-http.git
The following commit(s) were added to refs/heads/main by this push:
new f75abe2a2 remove deprecate methods related to defaultServerHttpContext
(#766)
f75abe2a2 is described below
commit f75abe2a253e0a33862247958a6123c22f7518bf
Author: PJ Fanning <[email protected]>
AuthorDate: Fri Sep 12 12:17:28 2025 +0100
remove deprecate methods related to defaultServerHttpContext (#766)
---
.../remove-deprecated-methods.excludes | 4 ++++
.../scala/org/apache/pekko/http/javadsl/Http.scala | 20 --------------------
.../org/apache/pekko/http/scaladsl/Http.scala | 22 ----------------------
3 files changed, 4 insertions(+), 42 deletions(-)
diff --git
a/http-core/src/main/mima-filters/2.0.x.backwards.excludes/remove-deprecated-methods.excludes
b/http-core/src/main/mima-filters/2.0.x.backwards.excludes/remove-deprecated-methods.excludes
index a04f68b0e..23ad02cc7 100644
---
a/http-core/src/main/mima-filters/2.0.x.backwards.excludes/remove-deprecated-methods.excludes
+++
b/http-core/src/main/mima-filters/2.0.x.backwards.excludes/remove-deprecated-methods.excludes
@@ -27,6 +27,8 @@
ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.http.javads
ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.http.javadsl.Http.createServerHttpsContext")
ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.http.javadsl.Http.createClientHttpsContext")
ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.http.javadsl.Http.createDefaultClientHttpsContext")
+ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.http.javadsl.Http.defaultServerHttpContext")
+ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.http.javadsl.Http.setDefaultServerHttpContext")
ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.http.javadsl.HttpConnectionContext.sslConfig")
ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.http.javadsl.HttpsConnectionContext.getEnabledCipherSuites")
ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.http.javadsl.HttpsConnectionContext.getEnabledProtocols")
@@ -84,6 +86,8 @@
ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.http.scalad
ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.http.scaladsl.HttpExt.createDefaultClientHttpsContext")
ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.http.scaladsl.HttpExt.createServerHttpsContext")
ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.http.scaladsl.HttpExt.createClientHttpsContext")
+ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.http.scaladsl.HttpExt.defaultServerHttpContext")
+ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.http.scaladsl.HttpExt.setDefaultServerHttpContext")
ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.http.scaladsl.HttpExt.sslConfig")
ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.http.scaladsl.HttpExt.validateAndWarnAboutLooseSettings")
ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.http.scaladsl.HttpsConnectionContext.<init>$*")
diff --git a/http-core/src/main/scala/org/apache/pekko/http/javadsl/Http.scala
b/http-core/src/main/scala/org/apache/pekko/http/javadsl/Http.scala
index 44629bd36..534236bfe 100644
--- a/http-core/src/main/scala/org/apache/pekko/http/javadsl/Http.scala
+++ b/http-core/src/main/scala/org/apache/pekko/http/javadsl/Http.scala
@@ -551,26 +551,6 @@ class Http(system: ExtendedActorSystem) extends
pekko.actor.Extension {
*/
def shutdownAllConnectionPools(): CompletionStage[Unit] =
delegate.shutdownAllConnectionPools().asJava
- /**
- * Gets the current default server-side [[ConnectionContext]] – defaults to
plain HTTP.
- * Can be modified using [[setDefaultServerHttpContext]], and will then
apply for servers bound after that call has completed.
- *
- * @deprecated since Akka HTTP 10.2.0: set context explicitly when binding
- */
- @Deprecated @deprecated("Set context explicitly when binding", since = "Akka
HTTP 10.2.0")
- def defaultServerHttpContext: ConnectionContext =
- delegate.defaultServerHttpContext
-
- /**
- * Sets the default server-side [[ConnectionContext]].
- * If it is an instance of [[HttpsConnectionContext]] then the server will
be bound using HTTPS.
- *
- * @deprecated since Akka HTTP 10.2.0: set context explicitly when binding
- */
- @Deprecated @deprecated("Set context explicitly when binding", since = "Akka
HTTP 10.2.0")
- def setDefaultServerHttpContext(context: ConnectionContext): Unit =
- delegate.setDefaultServerHttpContext(context.asScala)
-
/**
* Gets the current default client-side [[ConnectionContext]].
*/
diff --git a/http-core/src/main/scala/org/apache/pekko/http/scaladsl/Http.scala
b/http-core/src/main/scala/org/apache/pekko/http/scaladsl/Http.scala
index 391f5071e..42e352a2f 100644
--- a/http-core/src/main/scala/org/apache/pekko/http/scaladsl/Http.scala
+++ b/http-core/src/main/scala/org/apache/pekko/http/scaladsl/Http.scala
@@ -674,28 +674,6 @@ class HttpExt @InternalStableApi /* constructor signature
is hardcoded in Teleme
*/
def shutdownAllConnectionPools(): Future[Unit] =
poolMaster.shutdownAll().map(_ => ())(system.dispatcher)
- /**
- * Gets the current default server-side [[ConnectionContext]] – defaults to
plain HTTP.
- * Can be modified using [[setDefaultServerHttpContext]], and will then
apply for servers bound after that call has completed.
- */
- @deprecated("Set context explicitly when binding", since = "Akka HTTP
10.2.0")
- def defaultServerHttpContext: ConnectionContext =
- synchronized {
- if (_defaultServerConnectionContext == null)
- _defaultServerConnectionContext = ConnectionContext.noEncryption()
- _defaultServerConnectionContext
- }
-
- /**
- * Sets the default server-side [[ConnectionContext]].
- * If it is an instance of [[HttpsConnectionContext]] then the server will
be bound using HTTPS.
- */
- @deprecated("Set context explicitly when binding", since = "Akka HTTP
10.2.0")
- def setDefaultServerHttpContext(context: ConnectionContext): Unit =
- synchronized {
- _defaultServerConnectionContext = context
- }
-
/**
* Gets the current default client-side [[HttpsConnectionContext]].
* Defaults used here can be configured using ssl-config or the context can
be replaced using [[setDefaultClientHttpsContext]]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]