|
|
|
@ -19,7 +19,6 @@ package org.springframework.boot.web.embedded.tomcat;
|
|
|
|
|
import java.io.File;
|
|
|
|
|
import java.io.IOException;
|
|
|
|
|
import java.net.URISyntaxException;
|
|
|
|
|
import java.net.URL;
|
|
|
|
|
import java.nio.charset.Charset;
|
|
|
|
|
import java.nio.charset.StandardCharsets;
|
|
|
|
|
import java.time.Duration;
|
|
|
|
@ -54,7 +53,6 @@ import org.apache.catalina.core.StandardWrapper;
|
|
|
|
|
import org.apache.catalina.startup.Tomcat;
|
|
|
|
|
import org.apache.catalina.util.CharsetMapper;
|
|
|
|
|
import org.apache.catalina.valves.RemoteIpValve;
|
|
|
|
|
import org.apache.catalina.webresources.TomcatURLStreamHandlerFactory;
|
|
|
|
|
import org.apache.coyote.ProtocolHandler;
|
|
|
|
|
import org.apache.coyote.http11.AbstractHttp11Protocol;
|
|
|
|
|
import org.apache.jasper.servlet.JspServlet;
|
|
|
|
@ -76,7 +74,6 @@ import org.springframework.http.HttpHeaders;
|
|
|
|
|
import org.springframework.http.HttpStatus;
|
|
|
|
|
import org.springframework.http.MediaType;
|
|
|
|
|
import org.springframework.http.ResponseEntity;
|
|
|
|
|
import org.springframework.test.util.ReflectionTestUtils;
|
|
|
|
|
import org.springframework.util.FileSystemUtils;
|
|
|
|
|
import org.springframework.util.LinkedMultiValueMap;
|
|
|
|
|
import org.springframework.util.MultiValueMap;
|
|
|
|
@ -106,8 +103,6 @@ class TomcatServletWebServerFactoryTests extends AbstractServletWebServerFactory
|
|
|
|
|
|
|
|
|
|
@AfterEach
|
|
|
|
|
void restoreTccl() {
|
|
|
|
|
ReflectionTestUtils.setField(TomcatURLStreamHandlerFactory.class, "instance", null);
|
|
|
|
|
ReflectionTestUtils.setField(URL.class, "factory", null);
|
|
|
|
|
Thread.currentThread().setContextClassLoader(getClass().getClassLoader());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|