Class 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 java.lang.Object value  
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object call()  
      • Methods inherited from class java.lang.Object

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

      • value

        private final java.lang.Object value
    • Constructor Detail

      • ConstantValueGenerator

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

      • call

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