|
18 | 18 | import com.amazonaws.serverless.proxy.internal.testutils.Timer; |
19 | 19 | import com.amazonaws.serverless.proxy.model.AwsProxyRequest; |
20 | 20 | import com.amazonaws.serverless.proxy.model.AwsProxyResponse; |
21 | | -import com.amazonaws.serverless.proxy.spring.embedded.ServerlessReactiveEmbeddedServerFactory; |
| 21 | +import com.amazonaws.serverless.proxy.spring.embedded.ServerlessReactiveServletEmbeddedServerFactory; |
22 | 22 | import com.amazonaws.serverless.proxy.spring.embedded.ServerlessServletEmbeddedServerFactory; |
23 | 23 | import com.amazonaws.services.lambda.runtime.Context; |
24 | 24 | import org.slf4j.Logger; |
@@ -54,7 +54,7 @@ public class SpringBootLambdaContainerHandler<RequestType, ResponseType> extends |
54 | 54 | * We need to rely on the static instance of this for SpringBoot because we need it to access the ServletContext. |
55 | 55 | * Normally, SpringBoot would initialize its own embedded container through the <code>SpringApplication.run()</code> |
56 | 56 | * method. However, in our case we need to rely on the pre-initialized handler and need to fetch information from it |
57 | | - * for our mock {@link com.amazonaws.serverless.proxy.spring.embedded.ServerlessReactiveEmbeddedServerFactory}. |
| 57 | + * for our mock {@link ServerlessReactiveServletEmbeddedServerFactory}. |
58 | 58 | * |
59 | 59 | * @return The initialized instance |
60 | 60 | */ |
@@ -167,7 +167,7 @@ private Class<?>[] getEmbeddedContainerClasses() { |
167 | 167 | // if HandlerAdapter is available we assume they are using WebFlux. Otherwise plain servlet. |
168 | 168 | this.getClass().getClassLoader().loadClass("org.springframework.web.reactive.HandlerAdapter"); |
169 | 169 | log.debug("Found WebFlux HandlerAdapter on classpath, using reactive server factory"); |
170 | | - classes[0] = ServerlessReactiveEmbeddedServerFactory.class; |
| 170 | + classes[0] = ServerlessReactiveServletEmbeddedServerFactory.class; |
171 | 171 | } catch (ClassNotFoundException e) { |
172 | 172 | classes[0] = ServerlessServletEmbeddedServerFactory.class; |
173 | 173 | } |
|
0 commit comments