Skip to content

Commit 84612f3

Browse files
committed
Move UseApr enum inside the Tomcat class
See gh-44033
1 parent 75413d9 commit 84612f3

File tree

4 files changed

+25
-25
lines changed

4 files changed

+25
-25
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java

+22-22
Original file line numberDiff line numberDiff line change
@@ -1132,6 +1132,28 @@ public void setTrustedProxies(String trustedProxies) {
11321132

11331133
}
11341134

1135+
/**
1136+
* When to use APR.
1137+
*/
1138+
public enum UseApr {
1139+
1140+
/**
1141+
* Always use APR and fail if it's not available.
1142+
*/
1143+
ALWAYS,
1144+
1145+
/**
1146+
* Use APR if it is available.
1147+
*/
1148+
WHEN_AVAILABLE,
1149+
1150+
/**
1151+
* Never user APR.
1152+
*/
1153+
NEVER
1154+
1155+
}
1156+
11351157
}
11361158

11371159
/**
@@ -1937,26 +1959,4 @@ public enum ForwardHeadersStrategy {
19371959

19381960
}
19391961

1940-
/**
1941-
* When to use APR.
1942-
*/
1943-
public enum UseApr {
1944-
1945-
/**
1946-
* Always use APR and fail if it's not available.
1947-
*/
1948-
ALWAYS,
1949-
1950-
/**
1951-
* Use APR if it is available.
1952-
*/
1953-
WHEN_AVAILABLE,
1954-
1955-
/**
1956-
* Never user APR.
1957-
*/
1958-
NEVER
1959-
1960-
}
1961-
19621962
}

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/reactive/TomcatReactiveWebServerFactoryCustomizer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
import org.springframework.boot.autoconfigure.web.ServerProperties;
2222
import org.springframework.boot.autoconfigure.web.ServerProperties.Tomcat;
23-
import org.springframework.boot.autoconfigure.web.ServerProperties.UseApr;
23+
import org.springframework.boot.autoconfigure.web.ServerProperties.Tomcat.UseApr;
2424
import org.springframework.boot.web.embedded.tomcat.TomcatReactiveWebServerFactory;
2525
import org.springframework.boot.web.server.WebServerFactoryCustomizer;
2626
import org.springframework.util.Assert;

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/servlet/TomcatServletWebServerFactoryCustomizer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import org.apache.catalina.core.AprLifecycleListener;
2020

2121
import org.springframework.boot.autoconfigure.web.ServerProperties;
22-
import org.springframework.boot.autoconfigure.web.ServerProperties.UseApr;
22+
import org.springframework.boot.autoconfigure.web.ServerProperties.Tomcat.UseApr;
2323
import org.springframework.boot.web.embedded.tomcat.ConfigurableTomcatWebServerFactory;
2424
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
2525
import org.springframework.boot.web.server.WebServerFactoryCustomizer;

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/ServerPropertiesTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
import reactor.netty.http.HttpDecoderSpec;
4141

4242
import org.springframework.boot.autoconfigure.web.ServerProperties.Tomcat.Accesslog;
43-
import org.springframework.boot.autoconfigure.web.ServerProperties.UseApr;
43+
import org.springframework.boot.autoconfigure.web.ServerProperties.Tomcat.UseApr;
4444
import org.springframework.boot.context.properties.bind.Bindable;
4545
import org.springframework.boot.context.properties.bind.Binder;
4646
import org.springframework.boot.context.properties.source.ConfigurationPropertySource;

0 commit comments

Comments
 (0)