Package kos.api

Interface KosContext

  • All Known Implementing Classes:
    MutableKosContext

    public interface KosContext
    While Vert.x provides Json-based configuration out-of-box, it is not suitable to configure Vert.x internals. This object is read-only representation of all sensible configuration that have been previously defined at the Kos's launch.
    • Method Detail

      • getDefaultStatusForEmptyResponses

        int getDefaultStatusForEmptyResponses()
      • getLogDelegateFactory

        @NonNull
        io.vertx.core.spi.logging.LogDelegateFactory getLogDelegateFactory()
      • getDefaultSerializer

        @NonNull
        @NonNull Serializer getDefaultSerializer()
      • getDefaultRestClientSerializer

        @NonNull
        kos.core.client.RestClientSerializer getDefaultRestClientSerializer()
      • getDefaultVertx

        @NonNull
        io.vertx.core.Vertx getDefaultVertx()
      • getDefaultVertxWebClient

        @NonNull
        @NonNull io.vertx.ext.web.client.WebClient getDefaultVertxWebClient()
      • getStringConverter

        @NonNull
        @NonNull StringConverter getStringConverter()
      • getConfigRetriever

        @NonNull
        io.vertx.config.ConfigRetriever getConfigRetriever()
      • createLoggerFor

        @NonNull
        @NonNull io.vertx.core.logging.Logger createLoggerFor​(Class type)
      • readApplicationConfig

        @NonNull
        @NonNull io.vertx.core.json.JsonObject readApplicationConfig()
      • getSerializerForContentType

        @NonNull
        @NonNull Serializer getSerializerForContentType​(String contentType)
      • getHttpServerOptions

        @NonNull
        @NonNull io.vertx.core.http.HttpServerOptions getHttpServerOptions()
        The default server configuration. It will be triggered when the auto-discovery mechanism failed to find one in the classpath.