Package kos.api
Class MutableKosContext
java.lang.Object
kos.api.MutableKosContext
- All Implemented Interfaces:
KosContext
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface kos.api.KosContext
KosContext.RunnerThatMightFail, KosContext.SupplierThatMightFail<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate io.vertx.core.json.JsonObjectprivate final MutableKosContext.AvailablePayloadStrategiesprivate io.vertx.config.ConfigRetrieverprivate EventBusMessageCodecFactoryprivate kos.core.client.RestClientSerializerprivate Serializerprivate intprivate Validationprivate io.vertx.core.Vertxprivate io.vertx.ext.web.client.WebClientprivate ExceptionHandlerprivate io.vertx.core.http.HttpServerOptionsprivate ImplementationLoaderprivate PayloadSerializationStrategyprivate final Map<String,Serializer> private final ImplementationLoaderprivate StringConverter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> io.vertx.core.Future<T>computeBlocking(KosContext.SupplierThatMightFail<T> supplier) io.vertx.core.json.JsonObjectio.vertx.config.ConfigRetrieverio.vertx.core.Vertxio.vertx.ext.web.client.WebClientgetSerializerForContentType(String contentType) private io.vertx.config.ConfigRetrieverprivate Map<String,Serializer> io.vertx.core.Future<Void>toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface kos.api.KosContext
getDefaultEventBusCodecFactory, getDefaultRestClientSerializer, getDefaultSerializer, getDefaultStatusForEmptyResponses, getDefaultValidation, getExceptionHandler, getHttpServerOptions, getImplementationLoader, getPayloadSerializationStrategy, getSpi, getStringConverter
-
Field Details
-
availablePayloadStrategies
-
serializers
-
restClientSerializers
-
spi
-
implementationLoader
-
payloadSerializationStrategy
-
defaultStatusForEmptyResponses
private int defaultStatusForEmptyResponses -
httpServerOptions
private io.vertx.core.http.HttpServerOptions httpServerOptions -
defaultSerializer
-
defaultEventBusCodecFactory
-
defaultRestClientSerializer
private kos.core.client.RestClientSerializer defaultRestClientSerializer -
defaultVertx
private io.vertx.core.Vertx defaultVertx -
defaultVertxWebClient
private io.vertx.ext.web.client.WebClient defaultVertxWebClient -
stringConverter
-
exceptionHandler
-
defaultValidation
-
configRetriever
private io.vertx.config.ConfigRetriever configRetriever -
applicationConfig
private io.vertx.core.json.JsonObject applicationConfig
-
-
Constructor Details
-
MutableKosContext
public MutableKosContext() -
MutableKosContext
-
-
Method Details
-
getConfigRetriever
public io.vertx.config.ConfigRetriever getConfigRetriever()- Specified by:
getConfigRetrieverin interfaceKosContext- Returns:
- the default
ConfigRetrieverused to read the Vert.x configuration.
-
loadConfigRetriever
private io.vertx.config.ConfigRetriever loadConfigRetriever() -
getDefaultVertx
public io.vertx.core.Vertx getDefaultVertx()- Specified by:
getDefaultVertxin interfaceKosContext- Returns:
- the
Vertxinstance used by the whole application.
-
getDefaultVertxWebClient
public io.vertx.ext.web.client.WebClient getDefaultVertxWebClient()- Specified by:
getDefaultVertxWebClientin interfaceKosContext- Returns:
- the
WebClientinstance used by the Rest Clients.
-
loadSerializers
-
loadRestClientSerializers
-
getSerializerForContentType
- Specified by:
getSerializerForContentTypein interfaceKosContext- Returns:
- the
Serializerconfigured for a givencontentType.
-
getApplicationConfig
public io.vertx.core.json.JsonObject getApplicationConfig()- Specified by:
getApplicationConfigin interfaceKosContext- Returns:
- the read Vert.x configuration object.
-
computeBlocking
- Specified by:
computeBlockingin interfaceKosContext
-
runBlocking
- Specified by:
runBlockingin interfaceKosContext
-
toString
-