@Test public void defaultProxy_setsValuesCorrectly() { TestBuilder test = new TestBuilder().defaultProxy().name("test"); assertNotNull(test.initializationWrapper); assertTrue(test.exceptionHandler instanceof AwsProxyExceptionHandler); assertTrue(test.requestReader instanceof AwsProxyHttpServletRequestReader); assertTrue(test.responseWriter instanceof AwsProxyHttpServletResponseWriter); assertTrue(test.securityContextWriter instanceof AwsProxySecurityContextWriter); assertSame(test.requestTypeClass, AwsProxyRequest.class); assertSame(test.responseTypeClass, AwsProxyResponse.class); assertEquals("test", test.name); }
public Builder defaultProxy() { initializationWrapper(new InitializationWrapper()) .requestReader((RequestReader<RequestType, ContainerRequestType>) new AwsProxyHttpServletRequestReader()) .responseWriter((ResponseWriter<AwsHttpServletResponse, ResponseType>) new AwsProxyHttpServletResponseWriter()) .securityContextWriter((SecurityContextWriter<RequestType>) new AwsProxySecurityContextWriter()) .exceptionHandler((ExceptionHandler<ResponseType>) new AwsProxyExceptionHandler()) .requestTypeClass((Class<RequestType>) AwsProxyRequest.class) .responseTypeClass((Class<ResponseType>) AwsProxyResponse.class); return self(); }
ServletLambdaContainerHandlerBuilder { public Builder defaultProxy() { initializationWrapper(new InitializationWrapper()) .requestReader((RequestReader<RequestType, ContainerRequestType>) new AwsProxyHttpServletRequestReader()) .responseWriter((ResponseWriter<AwsHttpServletResponse, ResponseType>) new AwsProxyHttpServletResponseWriter()) .securityContextWriter((SecurityContextWriter<RequestType>) new AwsProxySecurityContextWriter()) .exceptionHandler((ExceptionHandler<ResponseType>) new AwsProxyExceptionHandler()) .requestTypeClass((Class<RequestType>) AwsProxyRequest.class) .responseTypeClass((Class<ResponseType>) AwsProxyResponse.class); return self(); } }
ServletLambdaContainerHandlerBuilder { public Builder defaultProxy() { initializationWrapper(new InitializationWrapper()) .requestReader((RequestReader<RequestType, ContainerRequestType>) new AwsProxyHttpServletRequestReader()) .responseWriter((ResponseWriter<AwsHttpServletResponse, ResponseType>) new AwsProxyHttpServletResponseWriter()) .securityContextWriter((SecurityContextWriter<RequestType>) new AwsProxySecurityContextWriter()) .exceptionHandler((ExceptionHandler<ResponseType>) new AwsProxyExceptionHandler()) .requestTypeClass((Class<RequestType>) AwsProxyRequest.class) .responseTypeClass((Class<ResponseType>) AwsProxyResponse.class); return self(); }  }
ServletLambdaContainerHandlerBuilder { public Builder defaultProxy() { initializationWrapper(new InitializationWrapper()) .requestReader((RequestReader<RequestType, ContainerRequestType>) new AwsProxyHttpServletRequestReader()) .responseWriter((ResponseWriter<AwsHttpServletResponse, ResponseType>) new AwsProxyHttpServletResponseWriter()) .securityContextWriter((SecurityContextWriter<RequestType>) new AwsProxySecurityContextWriter()) .exceptionHandler((ExceptionHandler<ResponseType>) new AwsProxyExceptionHandler()) .requestTypeClass((Class<RequestType>) AwsProxyRequest.class) .responseTypeClass((Class<ResponseType>) AwsProxyResponse.class); return self(); }  Builder defaultProxy(); Builder defaultHttpApiV2Proxy(); Builder initializationWrapper(InitializationWrapper initializationWrapper); Builder requestReader(RequestReader<RequestType, ContainerRequestType> requestReader); Builder responseWriter(ResponseWriter<AwsHttpServletResponse, ResponseType> responseWriter); Builder securityContextWriter(SecurityContextWriter<RequestType> securityContextWriter); Builder exceptionHandler(ExceptionHandler<ResponseType> exceptionHandler); Builder requestTypeClass(Class<RequestType> requestType); Builder responseTypeClass(Class<ResponseType> responseType); @Deprecated Builder asyncInit(long actualStartTime); Builder asyncInit(); abstract HandlerType build(); abstract HandlerType buildAndInitialize(); }
ServletLambdaContainerHandlerBuilder { public Builder defaultProxy() { initializationWrapper(new InitializationWrapper()) .requestReader((RequestReader<RequestType, ContainerRequestType>) new AwsProxyHttpServletRequestReader()) .responseWriter((ResponseWriter<AwsHttpServletResponse, ResponseType>) new AwsProxyHttpServletResponseWriter()) .securityContextWriter((SecurityContextWriter<RequestType>) new AwsProxySecurityContextWriter()) .exceptionHandler((ExceptionHandler<ResponseType>) new AwsProxyExceptionHandler()) .requestTypeClass((Class<RequestType>) AwsProxyRequest.class) .responseTypeClass((Class<ResponseType>) AwsProxyResponse.class); return self(); }  Builder defaultProxy(); Builder defaultHttpApiV2Proxy(); Builder initializationWrapper(InitializationWrapper initializationWrapper); Builder requestReader(RequestReader<RequestType, ContainerRequestType> requestReader); Builder responseWriter(ResponseWriter<AwsHttpServletResponse, ResponseType> responseWriter); Builder securityContextWriter(SecurityContextWriter<RequestType> securityContextWriter); Builder exceptionHandler(ExceptionHandler<ResponseType> exceptionHandler); Builder requestTypeClass(Class<RequestType> requestType); Builder responseTypeClass(Class<ResponseType> responseType); @Deprecated Builder asyncInit(long actualStartTime); Builder asyncInit(); abstract HandlerType build(); abstract HandlerType buildAndInitialize();  }