Restore getUseRelativeRedirects in deprecated form
Restore the `getUseRelativeRedirects` method with a `Boolean` object result and introduce `isUseRelativeRedirects` for the primitive boolean variant. See gh-20796
This commit is contained in:
@@ -537,7 +537,12 @@ public class ServerProperties {
|
||||
this.redirectContextRoot = redirectContextRoot;
|
||||
}
|
||||
|
||||
public boolean getUseRelativeRedirects() {
|
||||
@Deprecated
|
||||
public Boolean getUseRelativeRedirects() {
|
||||
return this.useRelativeRedirects;
|
||||
}
|
||||
|
||||
public boolean isUseRelativeRedirects() {
|
||||
return this.useRelativeRedirects;
|
||||
}
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ public class TomcatServletWebServerFactoryCustomizer
|
||||
if (tomcatProperties.getRedirectContextRoot() != null) {
|
||||
customizeRedirectContextRoot(factory, tomcatProperties.getRedirectContextRoot());
|
||||
}
|
||||
customizeUseRelativeRedirects(factory, tomcatProperties.getUseRelativeRedirects());
|
||||
customizeUseRelativeRedirects(factory, tomcatProperties.isUseRelativeRedirects());
|
||||
factory.setDisableMBeanRegistry(!tomcatProperties.getMbeanregistry().isEnabled());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user