Class LightLambdaExchange.Attachable<T extends MiddlewareHandler>

java.lang.Object
com.networknt.aws.lambda.LightLambdaExchange.Attachable<T>
Type Parameters:
T - -
Enclosing class:
LightLambdaExchange

public static class LightLambdaExchange.Attachable<T extends MiddlewareHandler> extends Object
Attachment key class to attach data to the exchange.
  • Method Details

    • getKey

      public Class<T> getKey()
    • createAttachable

      public static <T extends MiddlewareHandler> LightLambdaExchange.Attachable<T> createAttachable(Class<T> middleware)
      Creates a new attachable key.
      Type Parameters:
      T - - given class has to implement the MiddlewareHandler interface.
      Parameters:
      middleware - - class to create a key for.
      Returns:
      - returns new attachable instance.