Class CorsConfigBuilder.ConstantValueGenerator

java.lang.Object
io.netty.handler.codec.http.cors.CorsConfigBuilder.ConstantValueGenerator
All Implemented Interfaces:
Callable<Object>
Enclosing class:
CorsConfigBuilder

private static final class CorsConfigBuilder.ConstantValueGenerator extends Object implements Callable<Object>
This class is used for preflight HTTP response values that do not need to be generated, but instead the value is "static" in that the same value will be returned for each call.
  • Field Details

    • value

      private final Object value
  • Constructor Details

    • ConstantValueGenerator

      private ConstantValueGenerator(Object value)
      Sole constructor.
      Parameters:
      value - the value that will be returned when the call method is invoked.
  • Method Details