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 -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateConstantValueGenerator(java.lang.Object value) Sole constructor. -
Method Summary
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:
callin interfacejava.util.concurrent.Callable<java.lang.Object>
-