Class AWSLambdaUtils

java.lang.Object
org.springframework.cloud.function.adapter.aws.AWSLambdaUtils

public final class AWSLambdaUtils extends Object
Author:
Oleg Zhurakousky
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The name of the headers that stores AWS Context object.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.springframework.messaging.Message<byte[]>
    generateMessage(byte[] payload, Type inputType, boolean isSupplier, JsonMapper jsonMapper)
     
    static org.springframework.messaging.Message<byte[]>
    generateMessage(byte[] payload, Type inputType, boolean isSupplier, JsonMapper jsonMapper, com.amazonaws.services.lambda.runtime.Context context)
     
    static org.springframework.messaging.Message
    generateMessage(InputStream payload, Type inputType, boolean isSupplier, JsonMapper jsonMapper, com.amazonaws.services.lambda.runtime.Context context)
     
    static byte[]
    generateOutput(org.springframework.messaging.Message requestMessage, org.springframework.messaging.Message<?> responseMessage, JsonMapper objectMapper, Type functionOutputType)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • AWS_CONTEXT

      public static final String AWS_CONTEXT
      The name of the headers that stores AWS Context object.
      See Also:
  • Method Details

    • generateMessage

      public static org.springframework.messaging.Message generateMessage(InputStream payload, Type inputType, boolean isSupplier, JsonMapper jsonMapper, com.amazonaws.services.lambda.runtime.Context context) throws IOException
      Throws:
      IOException
    • generateMessage

      public static org.springframework.messaging.Message<byte[]> generateMessage(byte[] payload, Type inputType, boolean isSupplier, JsonMapper jsonMapper)
    • generateMessage

      public static org.springframework.messaging.Message<byte[]> generateMessage(byte[] payload, Type inputType, boolean isSupplier, JsonMapper jsonMapper, com.amazonaws.services.lambda.runtime.Context context)
    • generateOutput

      public static byte[] generateOutput(org.springframework.messaging.Message requestMessage, org.springframework.messaging.Message<?> responseMessage, JsonMapper objectMapper, Type functionOutputType)