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

com.amazonaws.serverless.proxy.struts2.Struts2LambdaHandler Maven / Gradle / Ivy

There is a newer version: 1.8.2
Show newest version
package com.amazonaws.serverless.proxy.struts2;

import com.amazonaws.serverless.proxy.internal.LambdaContainerHandler;
import com.amazonaws.serverless.proxy.model.AwsProxyRequest;
import com.amazonaws.serverless.proxy.model.AwsProxyResponse;
import com.amazonaws.services.lambda.runtime.Context;
import com.amazonaws.services.lambda.runtime.RequestStreamHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

/**
 * The lambda handler to handle the requests.
 * 

* * com.amazonaws.serverless.proxy.struts2.Struts2LambdaHandler::handleRequest * */ public class Struts2LambdaHandler implements RequestStreamHandler { private static final Logger log = LoggerFactory.getLogger(Struts2LambdaHandler.class); private final Struts2LambdaContainerHandler handler = Struts2LambdaContainerHandler .getAwsProxyHandler(); @Override public void handleRequest(InputStream inputStream, OutputStream outputStream, Context context) throws IOException { handler.proxyStream(inputStream, outputStream, context); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy