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

A

ACCEPTED - Static variable in interface kos.core.Response
 
afterStart(HttpServer) - Method in class kos.core.VertxWebServer
Executes as soon as the server is started.
and(K, V) - Method in class kos.core.Lang.MapBuilder
 
anyInstanceOf(Class<T>) - Method in interface kos.core.ImplementationLoader
Load the instance of the given type.
asFuture(Future<T>) - Static method in class kos.core.Lang
 
asFuture(T) - Static method in class kos.core.Lang
 
asString(boolean) - Method in interface kos.core.StringConverter
 
asString(char) - Method in interface kos.core.StringConverter
 
asString(double) - Method in interface kos.core.StringConverter
 
asString(int) - Method in interface kos.core.StringConverter
 
asString(long) - Method in interface kos.core.StringConverter
 
asString(Object) - Method in interface kos.core.StringConverter
 
await(Future<T>) - Static method in class kos.core.Lang
This method has been place here for the sake of convenience.

B

BAD_GATEWAY - Static variable in interface kos.core.Response
 
BAD_REQUEST - Static variable in interface kos.core.Response
 
basedOnHttpHeader(String) - Static method in interface kos.core.PayloadSerializationStrategy
Creates an strategy that reads uses the defined response Content-Type to pick an serializer and perform the serialization.
BeforeDeployEvent() - Constructor for class kos.core.WebServerEventListener.BeforeDeployEvent
 
beforeStart() - Method in class kos.core.VertxWebServer
Executes before the server is started.
buffer - Variable in class kos.core.RawResponse
 
build() - Method in class kos.core.Lang.MapBuilder
 
by(Supplier<T>) - Static method in class kos.core.Lang.Lazy
 

C

cause - Variable in class kos.core.Lang.Result
 
classFor(String) - Static method in class kos.core.Lang
 
config - Static variable in class kos.core.Kos
Default configuration.
config - Variable in class kos.core.WebServerEventListener.BeforeDeployEvent
 
configRetriever - Static variable in class kos.core.Kos
 
ConfigStoreOptionsFactory - Interface in kos.core
 
configureApp() - Method in class kos.core.Launcher
Configure a Kos application.
CONFLICT - Static variable in interface kos.core.Response
 
contentType() - Method in interface kos.core.Serializer
 
contentType() - Method in class kos.core.Serializer.JsonSerializer
 
contentType() - Method in class kos.core.Serializer.PlainTextSerializer
 
convert(Iterable<T>, Function<T, N>) - Static method in class kos.core.Lang
 
converters - Variable in class kos.core.StringConverter.DefaultStringConverter
 
convertTo(Class<T>, String) - Method in interface kos.core.StringConverter
 
convertTo(Class<T>, String) - Method in class kos.core.StringConverter.DefaultStringConverter
 
create() - Method in interface kos.core.ConfigStoreOptionsFactory
 
create(Injector, Class) - Method in class kos.core.VertxWebServerInjectorFactory
 
CREATED - Static variable in interface kos.core.Response
 
createServerOptions() - Method in class kos.core.VertxWebServer
The default server configuration.
currentHandler - Variable in class kos.core.RequestInterceptorHandler
 
customVerticles - Variable in class kos.core.Launcher
 

D

data - Variable in class kos.core.Lang.Lazy
 
data - Variable in class kos.core.Lang.MapBuilder
 
data - Variable in class kos.core.Lang.Result
 
defaultContentType - Variable in class kos.core.HeaderParserStrategy
 
DefaultContextAttributesMemorizer - Class in kos.core
 
DefaultContextAttributesMemorizer() - Constructor for class kos.core.DefaultContextAttributesMemorizer
 
DefaultExceptionHandler() - Constructor for class kos.core.ExceptionHandler.DefaultExceptionHandler
 
defaultRestClientSerializer - Static variable in class kos.core.Kos
Default Serializer for Rest Clients.
defaultSerializer - Static variable in class kos.core.Kos
Default Serializer for http requests.
defaultStatusForEmptyResponses - Static variable in class kos.core.Kos
Defines the default status code to sent when either no response body is defined or the response body is empty.
DefaultStringConverter() - Constructor for class kos.core.StringConverter.DefaultStringConverter
 
defaultVertx - Static variable in class kos.core.Kos
Default reference to a Vertx instance.
deploy(Verticle...) - Method in class kos.core.Launcher
Manually deploy the following verticles using the discovered configuration loaded by Kos.
deployVerticlesWithConfig(JsonObject) - Method in class kos.core.Launcher
 
deployVerticlesWithConfig(JsonObject, Iterable<Verticle>) - Method in class kos.core.Launcher
 
deserialize(Buffer, Class<T>) - Method in interface kos.core.Serializer
 
deserialize(Buffer, Class<T>) - Method in class kos.core.Serializer.JsonSerializer
 
deserialize(Buffer, Class<T>) - Method in class kos.core.Serializer.PlainTextSerializer
 

E

empty() - Static method in class kos.core.Lang.Result
 
empty() - Static method in interface kos.core.Response
Creates an empty response.
empty(int) - Static method in interface kos.core.Response
Creates an empty response for a given statusCode.
EmptyResponse - Class in kos.core
 
EmptyResponse() - Constructor for class kos.core.EmptyResponse
 
exceptionHandler - Static variable in class kos.core.Kos
ExceptionHandler - Interface in kos.core
Versatile exception handler abstraction.
ExceptionHandler.DefaultExceptionHandler - Class in kos.core
 
exposedClasses - Static variable in class io.vertx.core.VerticleExposedServicesLoader
 

F

failed() - Method in class kos.core.Lang.Result
 
failure(E) - Static method in class kos.core.Lang.Result
 
filter(Collection<T>, Function<T, Boolean>) - Static method in class kos.core.Lang
 
first(Iterable<T>) - Static method in class kos.core.Lang
 
first(Iterable<T>, Function<T, Boolean>) - Static method in class kos.core.Lang
 
FORBIDDEN - Static variable in interface kos.core.Response
 

G

GATEWAY_TIMEOUT - Static variable in interface kos.core.Response
 
get() - Method in class kos.core.Lang.Lazy
 
get() - Method in class kos.core.Lang.Result
 
getExposedClasses() - Method in class io.vertx.core.VerticleExposedServicesLoader
 
getExposedType() - Method in class io.vertx.core.VerticleExposedServicesLoader
 
getExposedType() - Method in class kos.core.VertxWebServerInjectorFactory
 
getLogger() - Method in class kos.core.LazyLogDelegate
 
GONE - Static variable in interface kos.core.Response
 

H

handle(HttpServerRequest) - Method in class kos.core.InterceptorWrapper
 
handle(HttpServerRequest) - Method in class kos.core.RequestInterceptorHandler
 
handle(HttpServerRequest) - Method in class kos.core.SimplifiedRouter
 
handle(HttpServerRequest, Handler<HttpServerRequest>) - Method in interface kos.core.RequestInterceptor
Handles a request.
handle(HttpServerRequest, HttpServerResponse) - Method in interface kos.core.RequestHandler
 
handle(RoutingContext) - Method in class kos.core.DefaultContextAttributesMemorizer
 
handle(RoutingContext) - Method in interface kos.core.RequestHandler
 
handle(RoutingContext) - Method in class kos.core.SimplifiedRouter.SafeRoutingContextHandler
 
handle(RoutingContext, Throwable) - Method in class kos.core.ExceptionHandler.DefaultExceptionHandler
 
handle(RoutingContext, Throwable) - Method in interface kos.core.ExceptionHandler
Handles exceptions by returning a Response object that will be send as http response to the client.
handler - Variable in class kos.core.SimplifiedRouter.SafeRoutingContextHandler
 
header - Variable in class kos.core.HeaderParserStrategy
 
HeaderParserStrategy - Class in kos.core
 
HeaderParserStrategy() - Constructor for class kos.core.HeaderParserStrategy
 
headers - Variable in class kos.core.EmptyResponse
 
headers() - Method in interface kos.core.Response
 
headers(Map<? extends CharSequence, ? extends CharSequence>) - Method in interface kos.core.Response
 
httpMethodsThatMayReadBody - Variable in class kos.core.SimplifiedRouter
 

I

implementationLoader - Static variable in class kos.core.Kos
The configured ImplementationLoader.
ImplementationLoader - Interface in kos.core
Loads implementations.
ImplementationLoader.SPIImplementationLoader - Class in kos.core
 
instance - Variable in class kos.core.VertxWebServerInjectorFactory
 
instanceOf(Class<T>) - Method in interface kos.core.ImplementationLoader
Load the instance of the given type.
instanceOf(Class<T>) - Method in class kos.core.ImplementationLoader.SPIImplementationLoader
 
instanceOfOrFail(Class<T>) - Method in interface kos.core.ImplementationLoader
Load the instance of the given type.
instancesExposedAs(Class<T>) - Method in interface kos.core.ImplementationLoader
Loads classes exposed by the given interfaceType.
instancesExposedAs(Class<T>) - Method in class kos.core.ImplementationLoader.SPIImplementationLoader
 
instantiate(Class<T>) - Static method in class kos.core.Lang
 
instantiate(String) - Static method in class kos.core.Lang
 
intercept(RequestInterceptor) - Method in class kos.core.SimplifiedRouter
Registers a Handler to intercept all requests.
interceptor - Variable in class kos.core.InterceptorWrapper
 
interceptorHandler - Variable in class kos.core.SimplifiedRouter
 
InterceptorWrapper - Class in kos.core
 
InterceptorWrapper() - Constructor for class kos.core.InterceptorWrapper
 
INVALID_SERIALIZER - Static variable in interface kos.core.PayloadSerializationStrategy
 
io.vertx.core - package io.vertx.core
 
isEmpty() - Method in class kos.core.Lang.Result
 
isPresent() - Method in class kos.core.Lang.Result
 

J

JsonSerializer() - Constructor for class kos.core.Serializer.JsonSerializer
 

K

Kos - Class in kos.core
Singleton class that holds kos context.
Kos() - Constructor for class kos.core.Kos
 
kos.core - package kos.core
 
KosException - Exception in kos.core
Convenient Exception class.
KosException(String, Object...) - Constructor for exception kos.core.KosException
 
KosException(Throwable) - Constructor for exception kos.core.KosException
 
KosException(Throwable, String, Object...) - Constructor for exception kos.core.KosException
 

L

Lang - Class in kos.core
Utility methods internally used by Kos.
Lang() - Constructor for class kos.core.Lang
 
Lang.Lazy<T> - Class in kos.core
Wraps elements that should be load lazily to avoid issues when loading them using Dependency Injection libraries other than SPI.
Lang.MapBuilder<K,​V> - Class in kos.core
Convenient HashMap builder.
Lang.Result<T> - Class in kos.core
 
Launcher - Class in kos.core
Simplified launcher wrapping Vert.x deployment of Verticles.
Launcher() - Constructor for class kos.core.Launcher
 
Lazy() - Constructor for class kos.core.Lang.Lazy
 
LazyLogDelegate - Class in kos.core
 
LazyLogDelegate() - Constructor for class kos.core.LazyLogDelegate
 
load(Injector) - Method in class io.vertx.core.VerticleExposedServicesLoader
 
loadConfigRetriever() - Static method in class kos.core.Kos
 
loadDefaultVertX() - Static method in class kos.core.Kos
 
loadedServices - Variable in class io.vertx.core.VerticleExposedServicesLoader
 
loadLogDelegateFactory() - Static method in class kos.core.Kos
Alternative log loader that uses SPI to load the log configuration but will otherwise honour the property defined by LoggerFactory.LOGGER_DELEGATE_FACTORY_CLASS_NAME.
loadLogDelegateFactory(String) - Static method in class kos.core.Kos
Reads the LogDelegateFactory by reflection.
loadRestClientSerializers() - Static method in class kos.core.Kos
 
loadSerializers() - Static method in class kos.core.Kos
 
loadServerOptions() - Method in class kos.core.VertxWebServer
Loads the HttpServerOptions from the Class Path.
log - Variable in class kos.core.ExceptionHandler.DefaultExceptionHandler
 
log - Variable in class kos.core.Launcher
 
log - Static variable in class kos.core.SimplifiedRouter
 
log - Static variable in class kos.core.VertxWebServer
 
logFactory - Static variable in class kos.core.Kos
 
logger - Variable in class kos.core.LazyLogDelegate
 
logger(Class) - Static method in class kos.core.Kos
Returns a Logger for a given class.
loggers - Static variable in class kos.core.Kos
 
loggerSupplier - Variable in class kos.core.LazyLogDelegate
 

M

main(String[]) - Static method in class kos.core.Launcher
 
map(Function<T, R>) - Method in class kos.core.Lang.Result
 
MapBuilder() - Constructor for class kos.core.Lang.MapBuilder
 
mapOf(K, V) - Static method in class kos.core.Lang
 
matches(Iterable<T>, Function<T, Boolean>) - Static method in class kos.core.Lang
 
METHOD_NOT_ALLOWED - Static variable in interface kos.core.Response
 

N

newInstance(Injector) - Method in class kos.core.VertxWebServerInjectorFactory
 
next - Variable in class kos.core.InterceptorWrapper
 
NO_CONTENT - Static variable in interface kos.core.Response
 
nonEmptySetOfString(Iterable<String>) - Static method in class kos.core.Lang
 
NOT_ACCEPTABLE - Static variable in interface kos.core.Response
 
NOT_FOUND - Static variable in interface kos.core.Response
 
NOT_IMPLEMENTED - Static variable in interface kos.core.Response
 
notifyWebServerDeploymentListeners(HttpServerOptions) - Method in class kos.core.VertxWebServer
 

O

of(T) - Static method in class kos.core.Lang.Result
 
of(T) - Static method in interface kos.core.Response
Wraps an object as a response.
ofNullable(T) - Static method in interface kos.core.Response
Wraps a nullable object as a response.
on(WebServerEventListener.BeforeDeployEvent) - Method in interface kos.core.WebServerEventListener
Called before deploy VertxWebServer verticle.
options - Variable in class kos.core.WebServerEventListener.BeforeDeployEvent
 
orElse(T) - Method in class kos.core.Lang.Result
 
orElseGet(Function<RuntimeException, T>) - Method in class kos.core.Lang.Result
 
orElseGet(Supplier<T>) - Method in class kos.core.Lang.Result
 
orElseThrow(Supplier<E>) - Method in class kos.core.Lang.Result
 

P

parseContentTypeHeader(MultiMap) - Method in class kos.core.HeaderParserStrategy
 
payload - Variable in class kos.core.SerializableResponse
 
payloadSerializationStrategy - Static variable in class kos.core.Kos
Serialization strategy used to serialize/deserialize objects.
PayloadSerializationStrategy - Interface in kos.core
Defines how Kos will handle the serialization and deserialization for every received request.
PlainTextSerializer() - Constructor for class kos.core.Serializer.PlainTextSerializer
 
priority() - Method in interface kos.core.ConfigStoreOptionsFactory
 

R

RawResponse - Class in kos.core
 
RawResponse() - Constructor for class kos.core.RawResponse
 
readBody(RoutingContext, String, Class<T>) - Method in class kos.core.Request
 
readConfig(Handler<JsonObject>) - Static method in class kos.core.Kos
Reads the configuration from the different ConfigStore and computes the final configuration.
readContext(RoutingContext, String, Class<T>) - Method in class kos.core.Request
 
readHeader(RoutingContext, String, Class<T>) - Method in class kos.core.Request
 
readParam(RoutingContext, String, Class<T>) - Method in class kos.core.Request
 
register(Class<T>, Function<String, T>) - Method in class kos.core.StringConverter.DefaultStringConverter
 
register(Class<T>, Function<String, T>) - Method in interface kos.core.StringConverter
 
register(RequestInterceptor) - Method in class kos.core.RequestInterceptorHandler
 
Request - Class in kos.core
Methods to read and parse data from the incoming request.
Request() - Constructor for class kos.core.Request
 
RequestHandler - Interface in kos.core
 
RequestInterceptor - Interface in kos.core
 
RequestInterceptorHandler - Class in kos.core
 
RequestInterceptorHandler() - Constructor for class kos.core.RequestInterceptorHandler
 
Response - Interface in kos.core
Represents a (mutable object) response to be sent to the http client.
restClientSerializers - Static variable in class kos.core.Kos
Found serializers for Rest Clients.
Result() - Constructor for class kos.core.Lang.Result
 
route(HttpMethod, String, Handler<RoutingContext>) - Method in class kos.core.SimplifiedRouter
Routes requests made to path to a particular handler.
route(HttpMethod, String, RequestHandler) - Method in class kos.core.SimplifiedRouter
Routes requests made to path to a particular handler.
router - Variable in class kos.core.SimplifiedRouter
 
router - Variable in class kos.core.VertxWebServer
 
router - Variable in class kos.core.WebServerEventListener.BeforeDeployEvent
 
router() - Method in class kos.core.VertxWebServer
Retrieves the current configured router.
run() - Method in class kos.core.Launcher
 

S

SafeRoutingContextHandler() - Constructor for class kos.core.SimplifiedRouter.SafeRoutingContextHandler
 
send(HttpServerResponse) - Method in class kos.core.EmptyResponse
 
send(HttpServerResponse) - Method in class kos.core.RawResponse
 
send(HttpServerResponse) - Method in interface kos.core.Response
 
send(HttpServerResponse) - Method in class kos.core.SerializableResponse
 
send(RoutingContext, Object) - Static method in interface kos.core.Response
Sends a response to the client.
send(RoutingContext, Response) - Static method in interface kos.core.Response
Sends a response to the client.
sendDefaultNoContent(RoutingContext) - Static method in interface kos.core.Response
Sends an empty response to the client.
sendError(RoutingContext, Throwable) - Static method in interface kos.core.Response
Serializes a Throwable and sends as a response to the client.
SerializableResponse<T> - Class in kos.core
 
SerializableResponse() - Constructor for class kos.core.SerializableResponse
 
serialize(Object) - Method in class kos.core.Serializer.PlainTextSerializer
 
serialize(Object) - Method in class kos.core.Serializer.JsonSerializer
 
serialize(Object) - Method in interface kos.core.Serializer
 
serializer - Variable in class kos.core.SingleSerializerStrategy
 
Serializer - Interface in kos.core
 
Serializer.JsonSerializer - Class in kos.core
 
Serializer.PlainTextSerializer - Class in kos.core
 
serializerFor(HttpServerRequest) - Method in class kos.core.HeaderParserStrategy
 
serializerFor(HttpServerRequest) - Method in interface kos.core.PayloadSerializationStrategy
 
serializerFor(HttpServerRequest) - Method in class kos.core.SingleSerializerStrategy
 
serializerFor(HttpServerResponse) - Method in class kos.core.HeaderParserStrategy
 
serializerFor(HttpServerResponse) - Method in interface kos.core.PayloadSerializationStrategy
 
serializerFor(HttpServerResponse) - Method in class kos.core.SingleSerializerStrategy
 
serializers - Static variable in class kos.core.Kos
Found serializers for Http Requests.
SERVICE_UNAVAILABLE - Static variable in interface kos.core.Response
 
set(T) - Method in class kos.core.Lang.Lazy
 
SimplifiedRouter - Class in kos.core
Small layer over Router that aims 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(Router, Map<HttpMethod, Boolean>) - Constructor for class kos.core.SimplifiedRouter
 
SimplifiedRouter(Router, RequestInterceptorHandler, Map<HttpMethod, Boolean>) - Constructor for class kos.core.SimplifiedRouter
 
SimplifiedRouter.SafeRoutingContextHandler - Class in kos.core
 
SingleSerializerStrategy - Class in kos.core
 
SingleSerializerStrategy() - Constructor for class kos.core.SingleSerializerStrategy
 
sorted(Iterable<T>, Comparator<T>) - Static method in class kos.core.Lang
 
spi - Static variable in class kos.core.Kos
 
SPIImplementationLoader() - Constructor for class kos.core.ImplementationLoader.SPIImplementationLoader
 
start() - Method in class kos.core.VertxWebServer
 
start(Promise<Void>) - Method in class kos.core.VertxWebServer
 
startServer(Promise<Void>) - Method in class kos.core.VertxWebServer
 
statusCode - Variable in class kos.core.EmptyResponse
 
statusCode() - Method in interface kos.core.Response
 
statusCode(int) - Method in interface kos.core.Response
 
stringConverter - Static variable in class kos.core.Kos
StringConverter - Interface in kos.core
Abstracts how kos can convert strings (like Headers and query parameters) into objects.
StringConverter.DefaultStringConverter - Class in kos.core
Default implementation of StringConverter.
supplier - Variable in class kos.core.Lang.Lazy
 

T

TOO_MANY_REQUESTS - Static variable in interface kos.core.Response
 

U

UNAUTHORIZED - Static variable in interface kos.core.Response
 
unwrap() - Method in class kos.core.SimplifiedRouter
Returns the wrapped Vert.x Router.
useDefaultSerializer() - Static method in interface kos.core.PayloadSerializationStrategy
Creates an strategy based on the default serializer (usually Json).
useSerializer(String) - Static method in interface kos.core.PayloadSerializationStrategy
Creates an strategy based on the default serializer (usually Json).

V

VerticleExposedServicesLoader - Class in io.vertx.core
 
VerticleExposedServicesLoader() - Constructor for class io.vertx.core.VerticleExposedServicesLoader
 
verticles - Variable in class kos.core.Launcher
 
vertx - Variable in class kos.core.WebServerEventListener.BeforeDeployEvent
 
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() - Constructor for class kos.core.VertxWebServer
 
VertxWebServerInjectorFactory - Class in kos.core
 
VertxWebServerInjectorFactory() - Constructor for class kos.core.VertxWebServerInjectorFactory
 

W

webClient - Static variable in class kos.core.Kos
Default WebClient.
WebServerEventListener - Interface in kos.core
Called by VertxWebServer, implementations of this interface will have the opportunity to enhance or change the web server configuration before it is started.
WebServerEventListener.BeforeDeployEvent - Class in kos.core
Data available before deploy the web server.
wrap(Buffer) - Static method in interface kos.core.Response
Wraps a Buffer into a response.
wrapWithAutoBodyReader(Router) - Static method in class kos.core.SimplifiedRouter
Creates an instance of SimplifiedRouter that will automatically read the request body payload for PATCH, POST and PUT.
wrapWithNoAuthBodyReader(Router) - Static method in class kos.core.SimplifiedRouter
Creates a basic instance of SimplifiedRouter.
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