vy commented on code in PR #2072:
URL: https://github.com/apache/logging-log4j2/pull/2072#discussion_r1418773872
##########
log4j-core/src/main/java/org/apache/logging/log4j/core/net/UrlConnectionFactory.java:
##########
@@ -56,6 +56,17 @@ public class UrlConnectionFactory {
private static final String NO_PROTOCOLS = "_none";
public static final String ALLOWED_PROTOCOLS =
"log4j2.Configuration.allowedProtocols";
+ @Deprecated(since = "3.0.0", forRemoval = true)
+ public static <T extends URLConnection> T createConnection(
+ final URL url,
+ final long lastModifiedMillis,
+ final SslConfiguration sslConfiguration,
+ final AuthorizationProvider authorizationProvider)
+ throws IOException {
+ return createConnection(
+ url, lastModifiedMillis, sslConfiguration,
authorizationProvider, PropertiesUtil.getProperties());
+ }
+
Review Comment:
`Log4J2LoggingSystem` of Spring Boot uses this.
##########
log4j-core/src/main/java/org/apache/logging/log4j/core/net/UrlConnectionFactory.java:
##########
@@ -56,6 +56,17 @@ public class UrlConnectionFactory {
private static final String NO_PROTOCOLS = "_none";
public static final String ALLOWED_PROTOCOLS =
"log4j2.Configuration.allowedProtocols";
+ @Deprecated(since = "3.0.0", forRemoval = true)
+ public static <T extends URLConnection> T createConnection(
+ final URL url,
+ final long lastModifiedMillis,
+ final SslConfiguration sslConfiguration,
+ final AuthorizationProvider authorizationProvider)
+ throws IOException {
+ return createConnection(
+ url, lastModifiedMillis, sslConfiguration,
authorizationProvider, PropertiesUtil.getProperties());
+ }
+
Review Comment:
`Log4J2LoggingSystem` of Spring Boot 3 uses this.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]