A B C D E F G H I J K L M N O P R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- AbstractResponse - Class in kos.api
- AbstractResponse() - Constructor for class kos.api.AbstractResponse
- ACCEPTED - Static variable in interface kos.api.Response
- add(Predicate<Throwable>, ExceptionHandler) - Method in class kos.core.exception.PredicateExceptionHandler
- addHeader(CharSequence, CharSequence) - Method in class kos.api.EmptyResponse
- addHeader(CharSequence, CharSequence) - Method in class kos.api.RawResponse
- addHeader(CharSequence, CharSequence) - Method in interface kos.api.Response
- addHeader(CharSequence, CharSequence) - Method in class kos.api.SerializableResponse
- address - Variable in class kos.api.EventBusSink.EventBusSyncInitializationRequest
- address - Variable in class kos.core.events.AlwaysConsistentMessageProducer
- address() - Method in class kos.core.events.AlwaysConsistentMessageProducer
- address() - Method in class kos.core.events.EventBusSinkManager.CodecAwareMessageProducer
- afterStart(HttpServer) - Method in class kos.core.VertxWebServer
-
Executes as soon as the server is started.
- AlwaysConsistentMessageProducer<T> - Class in kos.core.events
-
A bespoke
MessageProducerimplementation designed to provide always consistent semantics when sending messages to Vertx' EventBus. - AlwaysConsistentMessageProducer() - Constructor for class kos.core.events.AlwaysConsistentMessageProducer
- AlwaysValid() - Constructor for class kos.core.validation.DefaultValidation.AlwaysValid
- and(K, V) - Method in class kos.core.Lang.MapBuilder
- anyInstanceOf(Class<T>) - Method in interface kos.api.ImplementationLoader
-
Load the instance of the given
type. - applicationConfig - Variable in class kos.api.ConfigurationLoadedEventListener.ConfigurationLoadedEvent
- applicationConfig - Variable in class kos.api.EventBusSink.EventBusSyncInitializationRequest
- applicationConfig - Variable in class kos.api.MutableKosContext
- applicationConfig - Variable in class kos.api.WebServerEventListener.BeforeDeployWebServerEvent
- asFuture(Future<T>) - Method in class kos.core.VertxFutures
- asFuture(CompletableFuture<T>) - Method in class kos.core.VertxFutures
- asFuture(Future<T>) - Method in class kos.core.VertxFutures
- asFuture(T) - Method in class kos.core.VertxFutures
- asString(boolean) - Method in interface kos.api.StringConverter
- asString(char) - Method in interface kos.api.StringConverter
- asString(double) - Method in interface kos.api.StringConverter
- asString(int) - Method in interface kos.api.StringConverter
- asString(long) - Method in interface kos.api.StringConverter
- asString(Object) - Method in interface kos.api.StringConverter
- async(Function<Message<T>, Future<Void>>) - Static method in interface kos.core.events.EventHandler
- AsyncEventHandler<T> - Class in kos.core.events
- AsyncEventHandler() - Constructor for class kos.core.events.AsyncEventHandler
- AttachAndForward() - Constructor for class kos.core.validation.WebPointcutValidation.AttachAndForward
- availablePayloadStrategies - Variable in class kos.api.MutableKosContext
- AvailablePayloadStrategies() - Constructor for class kos.api.MutableKosContext.AvailablePayloadStrategies
B
- BAD_GATEWAY - Static variable in interface kos.api.Response
- BAD_REQUEST - Static variable in interface kos.api.Response
- BadRequestException(String) - Constructor for exception kos.core.Request.BadRequestException
- BeforeDeployWebServerEvent() - Constructor for class kos.api.WebServerEventListener.BeforeDeployWebServerEvent
- beforeStart() - Method in class kos.core.VertxWebServer
-
Executes before the server is started.
- buffer - Variable in class kos.api.RawResponse
- build() - Method in class kos.core.Lang.MapBuilder
C
- cause - Variable in class kos.api.ImplementationLoader.Result
- classesWhichCodedHaveBeenRegistered - Variable in class kos.core.events.EventBusSinkManager
- classFor(String) - Static method in class kos.core.Lang
- close() - Method in class kos.core.events.AlwaysConsistentMessageProducer
- close() - Method in class kos.core.events.EventBusSinkManager.CodecAwareMessageProducer
- close(Handler<AsyncResult<Void>>) - Method in class kos.core.events.AlwaysConsistentMessageProducer
- close(Handler<AsyncResult<Void>>) - Method in class kos.core.events.EventBusSinkManager.CodecAwareMessageProducer
- CodecAwareMessageProducer() - Constructor for class kos.core.events.EventBusSinkManager.CodecAwareMessageProducer
- codecs - Variable in class kos.core.events.DefaultEventBusMessageCodecFactory
- computeBlocking(KosContext.SupplierThatMightFail<T>) - Method in interface kos.api.KosContext
- computeBlocking(KosContext.SupplierThatMightFail<T>) - Method in class kos.api.MutableKosContext
- conf - Variable in class kos.core.Launcher
- configRetriever - Variable in class kos.api.MutableKosContext
- ConfigurationLoadedEvent() - Constructor for class kos.api.ConfigurationLoadedEventListener.ConfigurationLoadedEvent
- ConfigurationLoadedEventListener - Interface in kos.api
-
A listener for "Configuration Loaded" event.
- ConfigurationLoadedEventListener.ConfigurationLoadedEvent - Class in kos.api
- configure(MutableKosContext) - Method in interface kos.api.Plugin
- configure(MutableKosContext) - Method in class kos.core.validation.ValidationPlugin
- configureDefaultValidation(MutableKosContext) - Method in class kos.core.validation.ValidationPlugin
- CONFLICT - Static variable in interface kos.api.Response
- constructCodecFor(Class<T>) - Method in interface kos.api.EventBusMessageCodecFactory
- constructCodecFor(Class<T>) - Method in class kos.core.events.DefaultEventBusMessageCodecFactory
- constructPublishingRequestFor(String, Class<T>) - Method in class kos.core.events.EventBusSinkManager
- contentType() - Method in interface kos.api.Serializer
- contentType() - Method in class kos.api.Serializer.JsonSerializer
- contentType() - Method in class kos.api.Serializer.PlainTextSerializer
- convert(Iterable<T>, Function<T, N>) - Static method in class kos.core.Lang
- converters - Variable in class kos.api.StringConverter.DefaultStringConverter
- convertIndex(Iterable<T>, BiFunction<Integer, T, N>) - Static method in class kos.core.Lang
- convertThrowableToMessage(Throwable) - Method in class kos.core.events.DefaultAsyncEventReplier
- convertTo(Class<T>, String) - Method in interface kos.api.StringConverter
- convertTo(Class<T>, String) - Method in class kos.api.StringConverter.DefaultStringConverter
- create(Injector, Class) - Method in class kos.core.DefaultConfigurationLoaderInjectorFactory
- create(Injector, Class) - Method in class kos.core.events.EventBusSinkManagerInjectorFactory
- create(Injector, Class) - Method in class kos.core.validation.ValidationPluginInjectorFactory
- create(Injector, Class) - Method in class kos.core.validation.WebPointcutValidationInjectorFactory
- create(Injector, Class) - Method in class kos.core.VertxFuturesInjectorFactory
- CREATED - Static variable in interface kos.api.Response
- createProducer(String, Class<T>) - Method in class kos.core.events.EventBusSinkManager
-
Creates a
MessageProducerthat expects messages of typeEventBusSinkManager. - currentHandler - Variable in class kos.core.RequestInterceptorHandler
D
- data - Variable in class kos.api.ImplementationLoader.Result
- data - Variable in class kos.core.Lang.MapBuilder
- decodeFromWire(int, Buffer) - Method in class kos.core.events.JsonServiceBusCodec
- DefaultAsyncEventReplier<T> - Class in kos.core.events
-
Automatically replies to async events received from EventBus.
- DefaultAsyncEventReplier(Message<T>) - Constructor for class kos.core.events.DefaultAsyncEventReplier
- DefaultConfigurationLoader - Class in kos.core
-
Automatically configures Vert.x components managed by Kos.
- DefaultConfigurationLoader() - Constructor for class kos.core.DefaultConfigurationLoader
- DefaultConfigurationLoaderInjectorFactory - Class in kos.core
- DefaultConfigurationLoaderInjectorFactory() - Constructor for class kos.core.DefaultConfigurationLoaderInjectorFactory
- defaultContentType - Variable in class kos.api.HeaderParserStrategy
- DefaultContextAttributesMemorizer - Class in kos.core
- DefaultContextAttributesMemorizer() - Constructor for class kos.core.DefaultContextAttributesMemorizer
- defaultEventBusCodecFactory - Variable in class kos.api.MutableKosContext
- DefaultEventBusMessageCodecFactory - Class in kos.core.events
- DefaultEventBusMessageCodecFactory() - Constructor for class kos.core.events.DefaultEventBusMessageCodecFactory
- defaultRestClientSerializer - Variable in class kos.api.MutableKosContext
- defaultSerializer - Variable in class kos.api.MutableKosContext
- defaultStatusForEmptyResponses - Variable in class kos.api.MutableKosContext
- DefaultStringConverter() - Constructor for class kos.api.StringConverter.DefaultStringConverter
- defaultValidation - Variable in class kos.api.MutableKosContext
- DefaultValidation - Class in kos.core.validation
-
A predicate-based
Validation. - DefaultValidation() - Constructor for class kos.core.validation.DefaultValidation
- DefaultValidation.AlwaysValid - Class in kos.core.validation
-
A
Validationthat assume all objects are valid. - defaultVertx - Variable in class kos.api.MutableKosContext
- defaultVertxWebClient - Variable in class kos.api.MutableKosContext
- delegated - Variable in class kos.core.events.EventBusSinkManager.CodecAwareMessageProducer
- deliveryOptions(DeliveryOptions) - Method in class kos.core.events.AlwaysConsistentMessageProducer
- deliveryOptions(DeliveryOptions) - Method in class kos.core.events.EventBusSinkManager.CodecAwareMessageProducer
- deploy(ConfigurationLoadedEventListener.ConfigurationLoadedEvent, Verticle) - Method in class kos.core.Launcher
- deployVerticles(ConfigurationLoadedEventListener.ConfigurationLoadedEvent) - Method in class kos.core.Launcher
- deployWebServer(ConfigurationLoadedEventListener.ConfigurationLoadedEvent) - Method in class kos.core.Launcher
- deserialize(Buffer, Class<T>) - Method in class kos.api.Serializer.JsonSerializer
- deserialize(Buffer, Class<T>) - Method in interface kos.api.Serializer
- deserialize(Buffer, Class<T>) - Method in class kos.api.Serializer.PlainTextSerializer
E
- empty() - Static method in class kos.api.ImplementationLoader.Result
- empty() - Static method in interface kos.api.Response
-
Creates an empty response (defaults to 204 HTTP Status).
- empty(int) - Static method in interface kos.api.Response
-
Creates an empty response for a given
statusCode. - EmptyResponse - Class in kos.api
- EmptyResponse() - Constructor for class kos.api.EmptyResponse
- EmptyResponse(int, Map<CharSequence, CharSequence>) - Constructor for class kos.api.EmptyResponse
- encodeToWire(Buffer, T) - Method in class kos.core.events.JsonServiceBusCodec
- ensureEventBusCanSerializeType(Class<T>) - Method in class kos.core.events.EventBusSinkManager
- event - Variable in class kos.core.validation.WebPointcutValidation.AttachAndForward
- eventBus - Variable in class kos.core.events.AlwaysConsistentMessageProducer
- EventBusMessageCodecFactory - Interface in kos.api
- EventBusSink - Interface in kos.api
-
Bridges the communication between the local EventBus with a remote broker (e.g.
- EventBusSink.EventBusSyncInitializationRequest<T> - Class in kos.api
- EventBusSink.Result - Class in kos.api
-
Represents the outcome of an attempt to initialise either
EventSubscriptionSinkorEventPublisherSink. - EventBusSinkManager - Class in kos.core.events
- EventBusSinkManager(KosContext, Iterable<EventSubscriptionSink>, Iterable<EventPublisherSink>) - Constructor for class kos.core.events.EventBusSinkManager
- EventBusSinkManager.CodecAwareMessageProducer<T> - Class in kos.core.events
-
Ensures that the type
EventBusSinkManager.CodecAwareMessageProducerwill be serialisable using the default Codec. - EventBusSinkManager.InitializationResult - Class in kos.core.events
- EventBusSinkManagerInjectorFactory - Class in kos.core.events
- EventBusSinkManagerInjectorFactory() - Constructor for class kos.core.events.EventBusSinkManagerInjectorFactory
- EventBusSyncInitializationRequest() - Constructor for class kos.api.EventBusSink.EventBusSyncInitializationRequest
- EventHandler<T> - Interface in kos.core.events
-
Handles received events asynchronously.
- EventPublisher<REQ> - Interface in kos.api
- EventPublisherSink - Interface in kos.api
-
Defines an EventBus publisher.
- eventPublisherSinks - Variable in class kos.core.events.EventBusSinkManager
- eventSubscriberSinks - Variable in class kos.core.events.EventBusSinkManager
- EventSubscriptionSink - Interface in kos.api
-
Defines how to listen message from externally managed brokers (e.g.
- eventuallyConsistent - Variable in class kos.api.EventBusSink.Result
- eventuallyConsistent - Variable in class kos.core.events.EventBusSinkManager.InitializationResult
- exceptionHandler - Variable in class kos.api.MutableKosContext
- ExceptionHandler - Interface in kos.api
-
Versatile exception handler abstraction.
- expectedType - Variable in class kos.api.EventBusSink.EventBusSyncInitializationRequest
- exposedClasses - Static variable in class kos.api.PluginExposedServicesLoader
- exposedClasses - Static variable in class kos.api.WebServerEventListenerExposedServicesLoader
F
- failed() - Method in class kos.api.ImplementationLoader.Result
- failure(E) - Static method in class kos.api.ImplementationLoader.Result
- failure(Throwable) - Static method in class kos.api.EventBusSink.Result
-
Generates a result indicating a failure.
- failureCause - Variable in class kos.api.EventBusSink.Result
-
Holds the cause of a possible failure.
- failureType - Variable in exception kos.core.validation.ValidationException
- FailureType - Enum in kos.core.validation
- FailureType() - Constructor for enum kos.core.validation.FailureType
- fallbackValidation - Variable in class kos.core.validation.DefaultValidation
-
The fallback
Validationimplementation. - filter(Collection<T>, Predicate<T>) - Static method in class kos.core.Lang
- first(Iterable<T>) - Static method in class kos.core.Lang
- first(Iterable<T>, Predicate<T>) - Static method in class kos.core.Lang
- firstNotNull(T...) - Static method in class kos.core.Lang
- FORBIDDEN - Static variable in interface kos.api.Response
G
- GATEWAY_TIMEOUT - Static variable in interface kos.api.Response
- get() - Method in class kos.api.ImplementationLoader.Result
- get() - Method in interface kos.api.KosContext.SupplierThatMightFail
- getAddress() - Method in interface kos.api.EventPublisher
- getApplicationConfig() - Method in interface kos.api.KosContext
- getApplicationConfig() - Method in class kos.api.MutableKosContext
- getConfigRetriever() - Method in interface kos.api.KosContext
- getConfigRetriever() - Method in class kos.api.MutableKosContext
- getDefaultEventBusCodecFactory() - Method in interface kos.api.KosContext
- getDefaultRestClientSerializer() - Method in interface kos.api.KosContext
- getDefaultSerializer() - Method in interface kos.api.KosContext
- getDefaultStatusForEmptyResponses() - Method in interface kos.api.KosContext
- getDefaultValidation() - Method in interface kos.api.KosContext
- getDefaultVertx() - Method in interface kos.api.KosContext
- getDefaultVertx() - Method in class kos.api.MutableKosContext
- getDefaultVertxWebClient() - Method in interface kos.api.KosContext
- getDefaultVertxWebClient() - Method in class kos.api.MutableKosContext
- getExceptionHandler() - Method in interface kos.api.KosContext
- getExposedClasses() - Method in class kos.api.PluginExposedServicesLoader
- getExposedClasses() - Method in class kos.api.WebServerEventListenerExposedServicesLoader
- getExposedType() - Method in class kos.api.PluginExposedServicesLoader
- getExposedType() - Method in class kos.api.WebServerEventListenerExposedServicesLoader
- getExposedType() - Method in class kos.core.DefaultConfigurationLoaderInjectorFactory
- getExposedType() - Method in class kos.core.events.EventBusSinkManagerInjectorFactory
- getExposedType() - Method in class kos.core.validation.ValidationPluginInjectorFactory
- getExposedType() - Method in class kos.core.validation.WebPointcutValidationInjectorFactory
- getExposedType() - Method in class kos.core.VertxFuturesInjectorFactory
- getHttpServerOptions() - Method in interface kos.api.KosContext
-
The default server configuration.
- getImplementationLoader() - Method in interface kos.api.KosContext
- getMessageProducer() - Method in interface kos.api.EventPublisher
- getPayloadSerializationStrategy() - Method in interface kos.api.KosContext
- getPriority() - Method in interface kos.api.EventBusSink
-
Defines the resolution priority, where the bigger the returned value higher the priority.
- getRewrittenAddressOr(String) - Method in class kos.api.EventBusSink.Result
- getSerializerForContentType(String) - Method in interface kos.api.KosContext
- getSerializerForContentType(String) - Method in class kos.api.MutableKosContext
- getSpi() - Method in interface kos.api.KosContext
- getStringConverter() - Method in interface kos.api.KosContext
- getTypeOfTheObjectBeingValidated() - Method in interface kos.api.Validation
-
Returns a static representation of the object being validated.
- getTypeOfTheObjectBeingValidated() - Method in class kos.core.validation.DefaultValidation.AlwaysValid
- getTypeOfTheObjectBeingValidated() - Method in class kos.core.validation.DefaultValidation
- GONE - Static variable in interface kos.api.Response
H
- handle(AsyncResult<Void>) - Method in class kos.core.events.DefaultAsyncEventReplier
- handle(Message<T>) - Method in interface kos.core.events.EventHandler
- handle(HttpServerRequest) - Method in class kos.core.RequestInterceptorHandler
- handle(HttpServerRequest) - Method in class kos.core.RequestInterceptorHandler.InterceptorWrapper
- handle(HttpServerRequest) - Method in class kos.core.SimplifiedRouter
- handle(HttpServerRequest, Handler<HttpServerRequest>) - Method in interface kos.api.RequestInterceptor
-
Handles a request.
- handle(HttpServerRequest, Handler<HttpServerRequest>) - Method in class kos.core.SimplifiedRouter.SafeRequestInterceptor
- handle(HttpServerRequest, HttpServerResponse) - Method in interface kos.api.RequestHandler
- handle(HttpServerRequest, Throwable) - Method in interface kos.api.ExceptionHandler
-
Handles exceptions by returning a
Responseobject that will be send as http response to the client. - handle(HttpServerRequest, Throwable) - Method in class kos.core.exception.PredicateExceptionHandler
- handle(HttpServerRequest, Throwable) - Method in class kos.core.validation.ValidationExceptionHandler
- handle(RoutingContext) - Method in interface kos.api.RequestHandler
- handle(RoutingContext) - Method in class kos.core.DefaultContextAttributesMemorizer
- handle(RoutingContext) - Method in class kos.core.SimplifiedRouter.SafeRoutingContextHandler
- handle(T) - Method in class kos.core.validation.WebPointcutValidation.AttachAndForward
- handler - Variable in class kos.core.events.AsyncEventHandler
- handler - Variable in class kos.core.events.SyncEventHandler
- handler - Variable in class kos.core.exception.PredicateExceptionHandler.PredicateAndHandler
- handler - Variable in class kos.core.SimplifiedRouter.SafeRoutingContextHandler
- handleUnknownError(HttpServerRequest, Throwable) - Method in class kos.core.exception.PredicateExceptionHandler
- header - Variable in class kos.api.HeaderParserStrategy
- HeaderParserStrategy - Class in kos.api
- HeaderParserStrategy() - Constructor for class kos.api.HeaderParserStrategy
- headers - Variable in class kos.api.AbstractResponse
- headers() - Method in interface kos.api.Response
- headers(Map<CharSequence, CharSequence>) - Method in interface kos.api.Response
- httpMethodsThatMayReadBody - Variable in class kos.core.SimplifiedRouter
- httpServerOptions - Variable in class kos.api.MutableKosContext
I
- identifier - Variable in class kos.core.validation.WebPointcutValidation.AttachAndForward
- implementationLoader - Variable in class kos.api.MutableKosContext
- ImplementationLoader - Interface in kos.api
-
Loads implementations.
- ImplementationLoader.Result<T> - Class in kos.api
-
Customized optional result.
- ImplementationLoader.SPIImplementationLoader - Class in kos.api
- inferSerializerFromHttpHeader(String) - Method in class kos.api.MutableKosContext.AvailablePayloadStrategies
-
Creates an strategy that reads uses the defined response Content-Type to pick an serializer and perform the serialization.
- initialised - Variable in class kos.api.EventBusSink.Result
-
Tells whether the Sink was initialised or not.
- InitializationResult() - Constructor for class kos.core.events.EventBusSinkManager.InitializationResult
- initialize(EventBusSink.EventBusSyncInitializationRequest<T>) - Method in interface kos.api.EventBusSink
-
Initialises the Sink.
- instance - Variable in class kos.core.DefaultConfigurationLoaderInjectorFactory
- instance - Variable in class kos.core.events.EventBusSinkManagerInjectorFactory
- instance - Variable in class kos.core.validation.ValidationPluginInjectorFactory
- instance - Variable in class kos.core.validation.WebPointcutValidationInjectorFactory
- instance - Variable in class kos.core.VertxFuturesInjectorFactory
- instanceOf(Class<T>) - Method in interface kos.api.ImplementationLoader
-
Load the instance of the given
type. - instanceOf(Class<T>) - Method in class kos.api.ImplementationLoader.SPIImplementationLoader
- instanceOfOrFail(Class<T>) - Method in interface kos.api.ImplementationLoader
-
Load the instance of the given
type. - instances - Variable in class kos.api.ImplementationLoader.SPIImplementationLoader
- instancesExposedAs(Class<T>) - Method in interface kos.api.ImplementationLoader
-
Loads classes exposed by the given
interfaceType. - instancesExposedAs(Class<T>) - Method in class kos.api.ImplementationLoader.SPIImplementationLoader
- instantiate(Class<T>) - Static method in class kos.core.Lang
- instantiate(String) - Static method in class kos.core.Lang
- intercept(Handler<RoutingContext>) - Method in class kos.core.SimplifiedRouter
-
Registers a
Handlerto intercept all received requests. - intercept(RequestInterceptor) - Method in class kos.core.SimplifiedRouter
-
Registers a
RequestInterceptorto intercept all requests. - intercept(RequestInterceptor, boolean) - Method in class kos.core.SimplifiedRouter
-
Registers a
RequestInterceptorto intercept all requests. - interceptor - Variable in class kos.core.RequestInterceptorHandler.InterceptorWrapper
- interceptor - Variable in class kos.core.SimplifiedRouter.SafeRequestInterceptor
- interceptorHandler - Variable in class kos.core.SimplifiedRouter
- InterceptorWrapper() - Constructor for class kos.core.RequestInterceptorHandler.InterceptorWrapper
- INVALID_SERIALIZER - Static variable in interface kos.api.Serializer
- isEmpty() - Method in class kos.api.ImplementationLoader.Result
- isPresent() - Method in class kos.api.ImplementationLoader.Result
J
- JsonSerializer() - Constructor for class kos.api.Serializer.JsonSerializer
- JsonServiceBusCodec<T> - Class in kos.core.events
- JsonServiceBusCodec() - Constructor for class kos.core.events.JsonServiceBusCodec
K
- kos.api - package kos.api
- kos.core - package kos.core
- kos.core.events - package kos.core.events
- kos.core.exception - package kos.core.exception
- kos.core.validation - package kos.core.validation
- kosContext - Variable in class kos.api.ConfigurationLoadedEventListener.ConfigurationLoadedEvent
- kosContext - Variable in class kos.api.EventBusSink.EventBusSyncInitializationRequest
- kosContext - Variable in class kos.api.HeaderParserStrategy
- kosContext - Variable in class kos.api.Serializer.PlainTextSerializer
- kosContext - Variable in class kos.api.WebServerEventListener.BeforeDeployWebServerEvent
- kosContext - Variable in class kos.core.events.EventBusSinkManager
- kosContext - Variable in class kos.core.SimplifiedRouter
- kosContext - Variable in class kos.core.SimplifiedRouter.SafeRequestInterceptor
- kosContext - Variable in class kos.core.SimplifiedRouter.SafeRoutingContextHandler
- kosContext - Variable in class kos.core.validation.WebPointcutValidation
- kosContext - Variable in class kos.core.VertxWebServer
- KosContext - Interface in kos.api
-
This object is read-only representation of all sensible configuration that have been previously defined at the Kos' application initialization.
- KosContext.RunnerThatMightFail - Interface in kos.api
- KosContext.SupplierThatMightFail<T> - Interface in kos.api
- KosException - Exception in kos.core.exception
-
Convenient
Exceptionclass. - KosException(String, Object...) - Constructor for exception kos.core.exception.KosException
- KosException(Throwable) - Constructor for exception kos.core.exception.KosException
- KosException(Throwable, String, Object...) - Constructor for exception kos.core.exception.KosException
L
- Lang - Class in kos.core
-
Utility methods internally used by Kos.
- Lang() - Constructor for class kos.core.Lang
- Lang.MapBuilder<K,V> - Class in kos.core
-
Convenient HashMap builder.
- Launcher - Class in kos.core
-
Simplified launcher wrapping Vert.x deployment of
Verticles. - Launcher() - Constructor for class kos.core.Launcher
- load(Injector) - Method in class kos.api.PluginExposedServicesLoader
- load(Injector) - Method in class kos.api.WebServerEventListenerExposedServicesLoader
- loadConfigRetriever() - Method in class kos.api.MutableKosContext
- loadDefaultRouter(KosContext, boolean) - Static method in class kos.core.VertxWebServer
- loadedServices - Variable in class kos.api.PluginExposedServicesLoader
- loadedServices - Variable in class kos.api.WebServerEventListenerExposedServicesLoader
- loadRestClientSerializers() - Method in class kos.api.MutableKosContext
- loadSerializers() - Method in class kos.api.MutableKosContext
- logger - Variable in class kos.core.events.EventBusSinkManager
M
- main(String[]) - Static method in class kos.core.Launcher
- MALFORMED_ENTITY - kos.core.validation.FailureType
-
Indicates that the server cannot or will not process the entity due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).
- map(Function<T, R>) - Method in class kos.api.ImplementationLoader.Result
- MapBuilder() - Constructor for class kos.core.Lang.MapBuilder
- mapOf(K, V) - Static method in class kos.core.Lang
- matches(Iterable<T>, Predicate<T>) - Static method in class kos.core.Lang
- memorise(Validation) - Method in class kos.core.validation.DefaultValidation
- message - Variable in class kos.core.events.DefaultAsyncEventReplier
- METHOD_NOT_ALLOWED - Static variable in interface kos.api.Response
- MutableKosContext - Class in kos.api
- MutableKosContext() - Constructor for class kos.api.MutableKosContext
- MutableKosContext(ImplementationLoader) - Constructor for class kos.api.MutableKosContext
- MutableKosContext.AvailablePayloadStrategies - Class in kos.api
N
- name() - Method in class kos.core.events.JsonServiceBusCodec
- newInstance(Injector) - Method in class kos.core.DefaultConfigurationLoaderInjectorFactory
- newInstance(Injector) - Method in class kos.core.events.EventBusSinkManagerInjectorFactory
- newInstance(Injector) - Method in class kos.core.validation.ValidationPluginInjectorFactory
- newInstance(Injector) - Method in class kos.core.validation.WebPointcutValidationInjectorFactory
- newInstance(Injector) - Method in class kos.core.VertxFuturesInjectorFactory
- next - Variable in class kos.core.RequestInterceptorHandler.InterceptorWrapper
- next - Variable in class kos.core.validation.WebPointcutValidation.AttachAndForward
- NO_CONTENT - Static variable in interface kos.api.Response
- nonEmptySetOfString(Iterable<String>) - Static method in class kos.core.Lang
- NOT_ACCEPTABLE - Static variable in interface kos.api.Response
- NOT_ATTEMPTED - Static variable in class kos.api.EventBusSink.Result
-
Identifies that a given sink haven't tried to be initialised.
- NOT_FOUND - Static variable in interface kos.api.Response
- NOT_IMPLEMENTED - Static variable in interface kos.api.Response
- notifyWebServerDeploymentListeners() - Method in class kos.core.VertxWebServer
O
- of(T) - Static method in class kos.api.ImplementationLoader.Result
- of(T) - Static method in interface kos.api.Response
-
Wraps an object as a response (defaults to 200 HTTP Status).
- ofNullable(T) - Static method in interface kos.api.Response
-
Wraps a nullable object as a response.
- on(ConfigurationLoadedEventListener.ConfigurationLoadedEvent) - Method in interface kos.api.ConfigurationLoadedEventListener
- on(WebServerEventListener.BeforeDeployWebServerEvent) - Method in interface kos.api.WebServerEventListener
-
Called before deploy
VertxWebSerververticle. - on(WebServerEventListener.BeforeDeployWebServerEvent) - Method in class kos.core.DefaultConfigurationLoader
- orElse(T) - Method in class kos.api.ImplementationLoader.Result
- orElseGet(Function<RuntimeException, T>) - Method in class kos.api.ImplementationLoader.Result
- orElseGet(Supplier<T>) - Method in class kos.api.ImplementationLoader.Result
- orElseThrow(Supplier<E>) - Method in class kos.api.ImplementationLoader.Result
- OTHER - kos.core.validation.FailureType
-
Other failure reason
P
- parseContentTypeHeader(MultiMap) - Method in class kos.api.HeaderParserStrategy
- payload - Variable in class kos.api.SerializableResponse
- payloadSerializationStrategy - Variable in class kos.api.MutableKosContext
- PayloadSerializationStrategy - Interface in kos.api
-
Defines how Kos will handle the serialization and deserialization for every received request.
- performInitialization(String, Class<T>, Iterable<? extends EventBusSink>) - Method in class kos.core.events.EventBusSinkManager
- PlainTextSerializer() - Constructor for class kos.api.Serializer.PlainTextSerializer
- Plugin - Interface in kos.api
-
Allows external plugins to configures Kos.
- PluginExposedServicesLoader - Class in kos.api
- PluginExposedServicesLoader() - Constructor for class kos.api.PluginExposedServicesLoader
- populateWithClassAndItsInterfaces(Queue<Class>, Class) - Method in class kos.core.validation.DefaultValidation
- predicate - Variable in class kos.core.exception.PredicateExceptionHandler.PredicateAndHandler
- PredicateAndHandler() - Constructor for class kos.core.exception.PredicateExceptionHandler.PredicateAndHandler
- PredicateExceptionHandler - Class in kos.core.exception
-
The default Exception Handler mechanism.
- PredicateExceptionHandler() - Constructor for class kos.core.exception.PredicateExceptionHandler
-
Constructs this class with an empty, but mutable, list of predicates.
- PredicateExceptionHandler.PredicateAndHandler - Class in kos.core.exception
- predicatesAndHandlers - Variable in class kos.core.exception.PredicateExceptionHandler
-
This is a naive implementation, which the performance degrades linearly as the number of predicates grows.
- priority() - Method in interface kos.api.Plugin
- priority() - Method in interface kos.api.WebServerEventListener
- priority() - Method in class kos.core.DefaultConfigurationLoader
-
Ensures the configuration will be applied prior to the user defined ones.
R
- RawResponse - Class in kos.api
- RawResponse(int, Map<CharSequence, CharSequence>, Buffer) - Constructor for class kos.api.RawResponse
- RawResponse(Buffer) - Constructor for class kos.api.RawResponse
- readBody(KosContext, RoutingContext, String, Class<T>) - Method in class kos.core.Request
- readContext(KosContext, RoutingContext, String, Class<T>) - Method in class kos.core.Request
- readDeploymentConfig(Handler<ConfigurationLoadedEventListener.ConfigurationLoadedEvent>) - Method in class kos.core.Launcher
- readHeader(KosContext, RoutingContext, String, Class<T>) - Method in class kos.core.Request
- readParam(KosContext, RoutingContext, String, Class<T>) - Method in class kos.core.Request
- register(Class<T>, Function<String, T>) - Method in class kos.api.StringConverter.DefaultStringConverter
- register(Class<T>, Function<String, T>) - Method in interface kos.api.StringConverter
- register(Class<T>, T) - Method in interface kos.api.ImplementationLoader
- register(Class<T>, T) - Method in class kos.api.ImplementationLoader.SPIImplementationLoader
- register(RequestInterceptor) - Method in class kos.core.RequestInterceptorHandler
- registerExceptionHandler(MutableKosContext) - Method in class kos.core.validation.ValidationPlugin
- Request - Class in kos.core
-
Methods to read and parse data from the incoming request.
- Request() - Constructor for class kos.core.Request
- Request.BadRequestException - Exception in kos.core
- RequestHandler - Interface in kos.api
- RequestInterceptor - Interface in kos.api
- RequestInterceptorHandler - Class in kos.core
- RequestInterceptorHandler() - Constructor for class kos.core.RequestInterceptorHandler
- RequestInterceptorHandler.InterceptorWrapper - Class in kos.core
- Response - Interface in kos.api
-
Represents a (mutable object) response to be sent to the http client.
- restClientSerializers - Variable in class kos.api.MutableKosContext
- Result() - Constructor for class kos.api.EventBusSink.Result
- Result() - Constructor for class kos.api.ImplementationLoader.Result
- rewrittenAddress - Variable in class kos.api.EventBusSink.Result
-
The local address which Kos will use to bridge the communication between Producers and Consumers.
- rewrittenAddress - Variable in class kos.core.events.EventBusSinkManager.InitializationResult
- route(HttpMethod, String, Handler<RoutingContext>) - Method in class kos.core.SimplifiedRouter
-
Routes requests made to
pathto a particular handler. - route(HttpMethod, String, RequestHandler) - Method in class kos.core.SimplifiedRouter
-
Routes requests made to
pathto a particular handler. - router - Variable in class kos.api.WebServerEventListener.BeforeDeployWebServerEvent
- router - Variable in class kos.core.SimplifiedRouter
- router - Variable in class kos.core.VertxWebServer
- run() - Method in interface kos.api.KosContext.RunnerThatMightFail
- run() - Method in class kos.core.Launcher
- runBlocking(KosContext.RunnerThatMightFail) - Method in interface kos.api.KosContext
- runBlocking(KosContext.RunnerThatMightFail) - Method in class kos.api.MutableKosContext
- runPluginsAndConfigureKos() - Method in class kos.core.Launcher
S
- SafeRequestInterceptor() - Constructor for class kos.core.SimplifiedRouter.SafeRequestInterceptor
- SafeRoutingContextHandler() - Constructor for class kos.core.SimplifiedRouter.SafeRoutingContextHandler
- send(KosContext, HttpServerResponse) - Method in class kos.api.AbstractResponse
- send(KosContext, HttpServerResponse) - Method in class kos.api.RawResponse
- send(KosContext, HttpServerResponse) - Method in interface kos.api.Response
- send(KosContext, HttpServerResponse) - Method in class kos.api.SerializableResponse
- send(KosContext, HttpServerResponse, Object) - Static method in interface kos.api.Response
-
Sends a response to the client.
- send(KosContext, RoutingContext, Object) - Static method in interface kos.api.Response
-
Sends a response to the client.
- send(KosContext, RoutingContext, Response) - Static method in interface kos.api.Response
-
Sends a response to the client.
- send(REQ) - Method in interface kos.api.EventPublisher
- sendDefaultNoContent(KosContext, RoutingContext) - Static method in interface kos.api.Response
-
Sends an empty response to the client.
- sendError(KosContext, HttpServerRequest, Throwable) - Static method in interface kos.api.Response
-
Serializes a
Throwableand sends as a response to the client. - sendError(KosContext, RoutingContext, Throwable) - Static method in interface kos.api.Response
-
Serializes a
Throwableand sends as a response to the client. - sendStatusAndHeader(HttpServerResponse) - Method in class kos.api.AbstractResponse
- SerializableResponse<T> - Class in kos.api
- SerializableResponse(int, Map<CharSequence, CharSequence>, T) - Constructor for class kos.api.SerializableResponse
- SerializableResponse(T) - Constructor for class kos.api.SerializableResponse
- serialize(Object) - Method in class kos.api.Serializer.PlainTextSerializer
- serialize(Object) - Method in class kos.api.Serializer.JsonSerializer
- serialize(Object) - Method in interface kos.api.Serializer
- serializer - Variable in class kos.api.SingleSerializerStrategy
- Serializer - Interface in kos.api
- Serializer.JsonSerializer - Class in kos.api
- Serializer.PlainTextSerializer - Class in kos.api
- serializerFor(HttpServerRequest) - Method in class kos.api.HeaderParserStrategy
- serializerFor(HttpServerRequest) - Method in interface kos.api.PayloadSerializationStrategy
- serializerFor(HttpServerRequest) - Method in class kos.api.SingleSerializerStrategy
- serializerFor(HttpServerResponse) - Method in class kos.api.HeaderParserStrategy
- serializerFor(HttpServerResponse) - Method in interface kos.api.PayloadSerializationStrategy
- serializerFor(HttpServerResponse) - Method in class kos.api.SingleSerializerStrategy
- serializers - Variable in class kos.api.MutableKosContext
- SERVICE_UNAVAILABLE - Static variable in interface kos.api.Response
- SimplifiedRouter - Class in kos.core
-
Small layer that wraps
Routeraiming to simplify a few common aspects regarding route configuration, like intercepting requests and the reading body requests in a POST, PUT and PATCH requests. - SimplifiedRouter(KosContext, Router, Map<HttpMethod, Boolean>) - Constructor for class kos.core.SimplifiedRouter
- SimplifiedRouter(KosContext, Router, RequestInterceptorHandler, Map<HttpMethod, Boolean>) - Constructor for class kos.core.SimplifiedRouter
- SimplifiedRouter.SafeRequestInterceptor - Class in kos.core
- SimplifiedRouter.SafeRoutingContextHandler - Class in kos.core
- SingleSerializerStrategy - Class in kos.api
- SingleSerializerStrategy() - Constructor for class kos.api.SingleSerializerStrategy
- sorted(Iterable<T>, Comparator<T>) - Static method in class kos.core.Lang
- spi - Variable in class kos.api.MutableKosContext
- SPIImplementationLoader() - Constructor for class kos.api.ImplementationLoader.SPIImplementationLoader
- start() - Method in class kos.core.VertxWebServer
- start(Promise<Void>) - Method in class kos.core.VertxWebServer
- statusCode - Variable in class kos.api.AbstractResponse
- statusCode() - Method in interface kos.api.Response
- statusCode(int) - Method in interface kos.api.Response
- stringConverter - Variable in class kos.api.MutableKosContext
- StringConverter - Interface in kos.api
-
Abstracts how
koscan convert strings (like Headers and query parameters) into objects. - StringConverter.DefaultStringConverter - Class in kos.api
-
Default implementation of
StringConverter. - subscribe(String, Class<T>, Handler<Message<T>>) - Method in class kos.core.events.EventBusSinkManager
-
Registers a message consumer
messageHandlerthat will receive messages of the typeEventBusSinkManagerpublished into the givenaddress. - succeededAtAddress(String) - Static method in class kos.api.EventBusSink.Result
-
Returns a Result object indicating that the Sink managed to start the communication with the remote broker.
- succeededAtAddress(String, Boolean) - Static method in class kos.api.EventBusSink.Result
-
Returns a Result object indicating that the Sink managed to start the communication with the remote broker.
- sync(Consumer<Message<T>>) - Static method in interface kos.core.events.EventHandler
- SyncEventHandler<T> - Class in kos.core.events
- SyncEventHandler() - Constructor for class kos.core.events.SyncEventHandler
- systemCodecID() - Method in class kos.core.events.JsonServiceBusCodec
T
- targetClass - Variable in class kos.core.events.JsonServiceBusCodec
- TOO_MANY_REQUESTS - Static variable in interface kos.api.Response
- toString() - Method in class kos.api.ImplementationLoader.Result
- toString() - Method in class kos.api.MutableKosContext
- transform(T) - Method in class kos.core.events.JsonServiceBusCodec
- trigger(ConfigurationLoadedEventListener.ConfigurationLoadedEvent) - Method in class kos.core.Launcher
- tryHandle(Message<T>) - Method in class kos.core.events.AsyncEventHandler
- tryHandle(Message<T>) - Method in interface kos.core.events.EventHandler
- tryHandle(Message<T>) - Method in class kos.core.events.SyncEventHandler
- tryInitializeSink(String, Class<T>, Iterable<? extends EventBusSink>) - Method in class kos.core.events.EventBusSinkManager
-
Initializes the Sink responsible for bridging the communication between the local
EventBuswith a remote broker, if any. - tryToStartServer() - Method in class kos.core.VertxWebServer
U
- UNAUTHORIZED - Static variable in interface kos.api.Response
- UNPROCESSABLE_ENTITY - kos.core.validation.FailureType
-
Indicates that the server understands the content of this entity and, apparently, all statically required attributes is present.
- unwrap() - Method in class kos.core.SimplifiedRouter
-
Returns the wrapped Vert.x
Router. - unwrapForBody(RoutingContext, String) - Method in class kos.core.validation.WebPointcutValidation
- useDefaultSerializer() - Method in class kos.api.MutableKosContext.AvailablePayloadStrategies
-
Creates an strategy based on the default serializer (usually Json).
- useSerializerForContentType(String) - Method in class kos.api.MutableKosContext.AvailablePayloadStrategies
-
Creates an strategy based on the default serializer (usually Json).
V
- validate(Object, Class) - Method in class kos.core.validation.DefaultValidation
- validate(Object, Class<Object>) - Method in class kos.core.validation.DefaultValidation.AlwaysValid
- validate(T, Class<T>) - Method in interface kos.api.Validation
-
Validates the
object. - Validation<T> - Interface in kos.api
-
A validation rule for the given type.
- validationCache - Variable in class kos.core.validation.DefaultValidation
- ValidationException - Exception in kos.core.validation
- ValidationException(FailureType, String) - Constructor for exception kos.core.validation.ValidationException
- ValidationExceptionHandler - Class in kos.core.validation
- ValidationExceptionHandler() - Constructor for class kos.core.validation.ValidationExceptionHandler
- ValidationPlugin - Class in kos.core.validation
-
Automatically configures the
DefaultValidationand memorises all found validations in the class path. - ValidationPlugin() - Constructor for class kos.core.validation.ValidationPlugin
- ValidationPluginInjectorFactory - Class in kos.core.validation
- ValidationPluginInjectorFactory() - Constructor for class kos.core.validation.ValidationPluginInjectorFactory
- valueOf(String) - Static method in enum kos.core.validation.FailureType
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum kos.core.validation.FailureType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- vertx - Variable in class kos.api.WebServerEventListener.BeforeDeployWebServerEvent
- vertx - Variable in class kos.core.VertxFutures
- VertxFutures - Class in kos.core
- VertxFutures(KosContext) - Constructor for class kos.core.VertxFutures
- VertxFuturesInjectorFactory - Class in kos.core
- VertxFuturesInjectorFactory() - Constructor for class kos.core.VertxFuturesInjectorFactory
- VertxWebServer - Class in kos.core
-
Abstracts the creation of a Vert.x web server, automating a few repetitive tasks, automatically loading routes if available, and avoiding common mistakes made during the application bootstrap.
- VertxWebServer(KosContext) - Constructor for class kos.core.VertxWebServer
-
Constructs a VertxWebServer.
- VertxWebServer(KosContext, boolean) - Constructor for class kos.core.VertxWebServer
-
Constructs VertxWebServer.
- VertxWebServer(KosContext, SimplifiedRouter) - Constructor for class kos.core.VertxWebServer
-
Constructs a VertxWebServer.
W
- waitFor(Future<T>) - Static method in class kos.core.Lang
-
This method has been place here for the sake of convenience.
- waitFor(AtomicReference<T>) - Static method in class kos.core.Lang
- WebPointcutValidation - Class in kos.core.validation
- WebPointcutValidation() - Constructor for class kos.core.validation.WebPointcutValidation
- WebPointcutValidation.AttachAndForward<T> - Class in kos.core.validation
- WebPointcutValidationInjectorFactory - Class in kos.core.validation
- WebPointcutValidationInjectorFactory() - Constructor for class kos.core.validation.WebPointcutValidationInjectorFactory
- WebServerEventListener - Interface in kos.api
-
Called by
VertxWebServer, implementations of this interface will have the opportunity to enhance or change the web server configuration before it is started. - WebServerEventListener.BeforeDeployWebServerEvent - Class in kos.api
-
Data available before deploy the web server.
- WebServerEventListenerExposedServicesLoader - Class in kos.api
- WebServerEventListenerExposedServicesLoader() - Constructor for class kos.api.WebServerEventListenerExposedServicesLoader
- wrap(Buffer) - Static method in interface kos.api.Response
-
Wraps a Buffer into a response (defaults to 200 HTTP Status).
- wrapForBody(Class<T>, String, Handler<RoutingContext>) - Method in class kos.core.validation.WebPointcutValidation
- wrapWithAutoBodyReader(KosContext, Router) - Static method in class kos.core.SimplifiedRouter
-
Creates an instance of
SimplifiedRouterthat will automatically read the request body payload for PATCH, POST and PUT. - wrapWithNoAutoBodyReader(KosContext, Router) - Static method in class kos.core.SimplifiedRouter
-
Creates a basic instance of
SimplifiedRouter. - write(T) - Method in class kos.core.events.AlwaysConsistentMessageProducer
- write(T) - Method in class kos.core.events.EventBusSinkManager.CodecAwareMessageProducer
- write(T, Handler<AsyncResult<Void>>) - Method in class kos.core.events.AlwaysConsistentMessageProducer
- write(T, Handler<AsyncResult<Void>>) - Method in class kos.core.events.EventBusSinkManager.CodecAwareMessageProducer
All Classes All Packages