Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
e81f7d58
Commit
e81f7d58
authored
Nov 25, 2016
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove deprecated code
See gh-7362
parent
f260cd9a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
44 deletions
+0
-44
ServerProperties.java
...ingframework/boot/autoconfigure/web/ServerProperties.java
+0
-19
ServerPropertiesTests.java
...amework/boot/autoconfigure/web/ServerPropertiesTests.java
+0
-25
No files found.
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java
View file @
e81f7d58
...
...
@@ -145,11 +145,6 @@ public class ServerProperties
*/
private
int
maxHttpHeaderSize
=
0
;
// bytes
/**
* Maximum size in bytes of the HTTP post content.
*/
private
int
maxHttpPostSize
=
0
;
// bytes
/**
* Time in milliseconds that connectors will wait for another HTTP request before
* closing the connection. When not set, the connector's container-specific default
...
...
@@ -362,20 +357,6 @@ public class ServerProperties
this
.
maxHttpHeaderSize
=
maxHttpHeaderSize
;
}
@Deprecated
@DeprecatedConfigurationProperty
(
reason
=
"Use dedicated property for each container."
)
public
int
getMaxHttpPostSize
()
{
return
this
.
maxHttpPostSize
;
}
@Deprecated
public
void
setMaxHttpPostSize
(
int
maxHttpPostSize
)
{
this
.
maxHttpPostSize
=
maxHttpPostSize
;
this
.
jetty
.
setMaxHttpPostSize
(
maxHttpPostSize
);
this
.
tomcat
.
setMaxHttpPostSize
(
maxHttpPostSize
);
this
.
undertow
.
setMaxHttpPostSize
(
maxHttpPostSize
);
}
protected
final
boolean
getOrDeduceUseForwardHeaders
()
{
if
(
this
.
useForwardHeaders
!=
null
)
{
return
this
.
useForwardHeaders
;
...
...
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/ServerPropertiesTests.java
View file @
e81f7d58
...
...
@@ -305,16 +305,6 @@ public class ServerPropertiesTests {
assertThat
(
this
.
properties
.
getMaxHttpHeaderSize
()).
isEqualTo
(
9999
);
}
@Test
public
void
testCustomizePostSize
()
throws
Exception
{
Map
<
String
,
String
>
map
=
new
HashMap
<
String
,
String
>();
map
.
put
(
"server.maxHttpPostSize"
,
"9999"
);
bindProperties
(
map
);
assertThat
(
this
.
properties
.
getJetty
().
getMaxHttpPostSize
()).
isEqualTo
(
9999
);
assertThat
(
this
.
properties
.
getTomcat
().
getMaxHttpPostSize
()).
isEqualTo
(
9999
);
assertThat
(
this
.
properties
.
getUndertow
().
getMaxHttpPostSize
()).
isEqualTo
(
9999
);
}
@Test
public
void
testCustomizeJettyAcceptors
()
throws
Exception
{
Map
<
String
,
String
>
map
=
new
HashMap
<
String
,
String
>();
...
...
@@ -492,21 +482,6 @@ public class ServerPropertiesTests {
.
isEqualTo
(
10000
);
}
@Test
@Deprecated
public
void
customTomcatMaxHttpPostSizeWithDeprecatedProperty
()
{
Map
<
String
,
String
>
map
=
new
HashMap
<
String
,
String
>();
map
.
put
(
"server.max-http-post-size"
,
"2000"
);
bindProperties
(
map
);
TomcatEmbeddedServletContainerFactory
container
=
new
TomcatEmbeddedServletContainerFactory
();
this
.
properties
.
customize
(
container
);
TomcatEmbeddedServletContainer
embeddedContainer
=
(
TomcatEmbeddedServletContainer
)
container
.
getEmbeddedServletContainer
();
assertThat
(
embeddedContainer
.
getTomcat
().
getConnector
().
getMaxPostSize
())
.
isEqualTo
(
2000
);
}
@Test
public
void
customizeUndertowAccessLog
()
{
Map
<
String
,
String
>
map
=
new
HashMap
<
String
,
String
>();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment