All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.genexus.cloud.serverless.aws.handler.internal.GxJerseyLambdaContainerHandlerFactory Maven / Gradle / Ivy

Go to download

Core classes for the runtime used by Java and Android apps generated with GeneXus

There is a newer version: 4.6.8
Show newest version
package com.genexus.cloud.serverless.aws.handler.internal;

import com.amazonaws.serverless.proxy.*;
import com.amazonaws.serverless.proxy.internal.servlet.*;
import com.amazonaws.serverless.proxy.jersey.JerseyLambdaContainerHandler;
import com.amazonaws.serverless.proxy.model.AwsProxyResponse;
import com.amazonaws.serverless.proxy.model.HttpApiV2ProxyRequest;

import javax.ws.rs.core.Application;

public class GxJerseyLambdaContainerHandlerFactory {
	public static JerseyLambdaContainerHandler getHttpApiV2ProxyHandler(Application jaxRsApplication) {
		JerseyLambdaContainerHandler newHandler = new JerseyLambdaContainerHandler<>(
			HttpApiV2ProxyRequest.class,
			AwsProxyResponse.class,
			new GxAwsHttpApiV2HttpServletRequestReader(),
			new AwsProxyHttpServletResponseWriter(true),
			new AwsHttpApiV2SecurityContextWriter(),
			new AwsProxyExceptionHandler(),
			jaxRsApplication);
		newHandler.initialize();
		return newHandler;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy