55import com .amazonaws .serverless .proxy .model .HttpApiV2ProxyRequest ;
66import com .amazonaws .services .lambda .runtime .Context ;
77import com .amazonaws .services .lambda .runtime .RequestHandler ;
8- import com .genexus .ApplicationContext ;
98import com .genexus .cloud .serverless .aws .LambdaHandler ;
109import com .genexus .diagnostics .core .ILogger ;
11- import com .genexus .specific .java .Connect ;
1210import com .genexus .specific .java .LogManager ;
13- import com .genexus .util .IniFile ;
1411import org .glassfish .jersey .server .ResourceConfig ;
15-
16- import javax .ws .rs .core .Application ;
1712import java .util .Map ;
1813
1914public class LambdaHttpApiHandler implements RequestHandler <HttpApiV2ProxyRequest , AwsProxyResponse > {
2015 private static final String BASE_REST_PATH = "/rest/" ;
21- private static final String GX_APPLICATION_CLASS = "GXApplication" ;
2216 public static JerseyLambdaContainerHandler <HttpApiV2ProxyRequest , AwsProxyResponse > handler = null ;
2317 private static ILogger logger = null ;
2418 private static ResourceConfig jerseyApplication = null ;
@@ -29,9 +23,7 @@ public LambdaHttpApiHandler() throws Exception {
2923 logger = LogManager .initialize ("." , LambdaHandler .class );
3024 LambdaHttpApiHandler .jerseyApplication = ResourceConfig .forApplication (LambdaHelper .initialize ());
3125 if (jerseyApplication .getClasses ().size () == 0 ) {
32- String errMsg = "No endpoints found for this application" ;
33- logger .error (errMsg );
34- throw new Exception (errMsg );
26+ logger .error ("No HTTP endpoints found for this application" );
3527 }
3628 LambdaHttpApiHandler .handler = JerseyLambdaContainerHandler .getHttpApiV2ProxyHandler (LambdaHttpApiHandler .jerseyApplication );
3729 }
0 commit comments