Class WebEnvironment
java.lang.Object
io.vertx.reactivex.ext.web.common.WebEnvironment
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate
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 the original non RX-ified interface using Vert.x codegen.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.vertx.lang.rx.TypeArg<WebEnvironment> static final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanWill return true if the mode is not null and equals ignoring case the string "dev"booleaninthashCode()static Stringmode()The current mode from the system properties with fallback to environment variablesstatic WebEnvironmenttoString()
-
Field Details
-
__TYPE_ARG
-
SYSTEM_PROPERTY_NAME
- See Also:
-
ENV_VARIABLE_NAME
- See Also:
-
-
Constructor Details
-
WebEnvironment
-
WebEnvironment
-
-
Method Details
-
toString
-
equals
-
hashCode
-
getDelegate
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
development
public static boolean development()Will return true if the mode is not null and equals ignoring case the string "dev"- Returns:
- always boolean
-
mode
The current mode from the system properties with fallback to environment variables- Returns:
- String with mode value or null
-
newInstance
-