Class CorsConfigBuilder.ConstantValueGenerator

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

private static final class CorsConfigBuilder.ConstantValueGenerator extends java.lang.Object implements java.util.concurrent.Callable<java.lang.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 Summary

    Fields
    Modifier and Type
    Field
    Description
    private final java.lang.Object
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    ConstantValueGenerator(java.lang.Object value)
    Sole constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    java.lang.Object
     

    Methods inherited from class java.lang.Object

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

    • value

      private final java.lang.Object value
  • Constructor Details

    • ConstantValueGenerator

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

    • call

      public java.lang.Object call()
      Specified by:
      call in interface java.util.concurrent.Callable<java.lang.Object>