Package io.vertx.mutiny.ext.web.common
Class WebEnvironment
- java.lang.Object
-
- io.vertx.mutiny.ext.web.common.WebEnvironment
-
public class WebEnvironment extends Object
Utility API to verify which environment is the web application running. The utility will check initially for the existence of a system property under the name `vertx.mode`, if there is no such property then it will look under the environment variables under the name `VERTX_MODE`. This value will be then used when the API is invoked. By itself this utility will not affect the behavior of your application, however you can use it to simplify your handlers, e.g.: When the development mode is active you can log more information or disable caches. NOTE: This class has been automatically generated from theoriginal
non Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<WebEnvironment>
__TYPE_ARG
static String
ENV_VARIABLE_NAME
static String
SYSTEM_PROPERTY_NAME
-
Constructor Summary
Constructors Constructor Description WebEnvironment(io.vertx.ext.web.common.WebEnvironment delegate)
WebEnvironment(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
development()
boolean
equals(Object o)
io.vertx.ext.web.common.WebEnvironment
getDelegate()
int
hashCode()
static String
mode()
static WebEnvironment
newInstance(io.vertx.ext.web.common.WebEnvironment arg)
String
toString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<WebEnvironment> __TYPE_ARG
-
SYSTEM_PROPERTY_NAME
public static final String SYSTEM_PROPERTY_NAME
- See Also:
- Constant Field Values
-
ENV_VARIABLE_NAME
public static final String ENV_VARIABLE_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WebEnvironment
public WebEnvironment(io.vertx.ext.web.common.WebEnvironment delegate)
-
WebEnvironment
public WebEnvironment(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.ext.web.common.WebEnvironment getDelegate()
-
development
public static boolean development()
- Returns:
- always boolean
-
mode
public static String mode()
- Returns:
- String with mode value or null
-
newInstance
public static WebEnvironment newInstance(io.vertx.ext.web.common.WebEnvironment arg)
-
-