C
- CACHE - enum entry in io.javalin.plugin.bundled.GlobalHeadersConfig.ClearSiteData
Indicates that the server wishes to remove locally cached data (the browser cache) for the origin of the response URL. Depending on the browser, this might also clear out things like pre-rendered pages, script caches, WebGL shader caches, or address bar suggestions.
- cacheAndSetSessionAttribute(java.lang.String,java.lang.Object,jakarta.servlet.http.HttpServletRequest) - function in io.javalin.http.servlet.JavalinServletContextKt
- cacheDirectory(java.lang.String) - function in io.javalin.config.MultipartConfig
- Sets the location of the cache directory used to write file uploads
- cachedSessionAttribute(java.lang.String) - function in io.javalin.http.Context
- Gets specified attribute from the request attribute cache, or the user session, or null.
- cachedSessionAttribute(java.lang.String) - function in io.javalin.http.Context
- Gets specified attribute from the request attribute cache, or the user session, or null.
- cachedSessionAttribute(java.lang.String,java.lang.Object) - function in io.javalin.http.Context
- Sets an attribute for the user session, and caches it on the request
- cachedSessionAttribute(java.lang.String,java.lang.Object) - function in io.javalin.http.Context
- Sets an attribute for the user session, and caches it on the request
- cachedSessionAttributeOrCompute(java.lang.String,kotlin.jvm.functions.Function1) - function in io.javalin.http.Context
- Gets specified attribute from the request attribute cache, or the user session, or computes the value from callback.
- cachedSessionAttributeOrCompute(java.lang.String,kotlin.jvm.functions.Function1) - function in io.javalin.http.Context
- Gets specified attribute from the request attribute cache, or the user session, or computes the value from callback.
- cachedSessionAttributeOrCompute(kotlin.jvm.functions.Function1,java.lang.String,io.javalin.http.Context) - function in io.javalin.http.servlet.JavalinServletContextKt
- canHandle(io.javalin.http.Context) - function in io.javalin.http.SinglePageHandler
- canHandle(io.javalin.http.Context) - function in io.javalin.http.staticfiles.ResourceHandler
- canHandle(io.javalin.http.Context) - function in io.javalin.jetty.JettyResourceHandler
- canHandle(java.lang.Throwable) - function in io.javalin.router.exception.HttpResponseExceptionMapper
- changeBaseRequest(jakarta.servlet.http.HttpServletRequest) - function in io.javalin.http.servlet.JavalinServletContext
- changeSessionId() - function in jakarta.servlet.http.HttpServletRequestWrapper
- characterEncoding() - function in io.javalin.http.Context
- Try to obtain request encoding from Header.CONTENT_TYPE header
- characterEncoding() - function in io.javalin.http.servlet.JavalinServletContext
- Try to obtain request encoding from Header.CONTENT_TYPE header
- check(io.javalin.validation.Check,io.javalin.validation.ValidationError) - function in io.javalin.validation.BodyValidator
- check(io.javalin.validation.Check,java.lang.String) - function in io.javalin.validation.BodyValidator
- check(java.lang.String,io.javalin.validation.Check,io.javalin.validation.ValidationError) - function in io.javalin.validation.BodyValidator
- check(java.lang.String,io.javalin.validation.Check,java.lang.String) - function in io.javalin.validation.BodyValidator
- check(io.javalin.validation.Check,io.javalin.validation.ValidationError) - function in io.javalin.validation.NullableValidator
- check(io.javalin.validation.Check,java.lang.String) - function in io.javalin.validation.NullableValidator
- check(io.javalin.validation.Check,io.javalin.validation.ValidationError) - function in io.javalin.validation.Validator
- check(io.javalin.validation.Check,java.lang.String) - function in io.javalin.validation.Validator
- classExists(java.lang.String) - function in io.javalin.util.Util
- CLASSPATH - enum entry in io.javalin.http.staticfiles.Location
Static resources are available in the classpath (jar)
- clear() - function in io.javalin.http.util.CookieStore
- Clears cookie store in the context and from the response.
- clearCache() - function in io.javalin.jetty.JettyPrecompressingResourceHandler
- clearSiteData(io.javalin.plugin.bundled.GlobalHeadersConfig.ClearSiteData) - function in io.javalin.plugin.bundled.GlobalHeadersConfig
- Adds a Clear-Site-Data header.
- clearStaticJavalin() - function in io.javalin.apibuilder.ApiBuilder
- close() - function in com.aayushatharva.brotli4j.encoder.BrotliOutputStream
- close() - function in io.javalin.http.sse.SseClient
- Close the SseClient
- close() - function in java.util.zip.DeflaterOutputStream
- closeSession() - function in io.javalin.websocket.WsContext
- Close the session
- closeSession() - function in io.javalin.websocket.WsContext
- Close the session
- closeSession(io.javalin.websocket.WsCloseStatus,java.lang.String) - function in io.javalin.websocket.WsContext
- Close the session with a WsCloseStatus
- closeSession(io.javalin.websocket.WsCloseStatus) - function in io.javalin.websocket.WsContext
- Close the session with a WsCloseStatus
- closeSession(io.javalin.websocket.WsCloseStatus,java.lang.String) - function in io.javalin.websocket.WsContext
- Close the session with a WsCloseStatus
- closeSession(io.javalin.websocket.WsCloseStatus) - function in io.javalin.websocket.WsContext
- Close the session with a WsCloseStatus
- closeSession(java.lang.Integer,java.lang.String) - function in io.javalin.websocket.WsContext
- Close the session with a code and reason
- closeSession(java.lang.Integer,java.lang.String) - function in io.javalin.websocket.WsContext
- Close the session with a code and reason
- closeSession(org.eclipse.jetty.websocket.api.CloseStatus) - function in io.javalin.websocket.WsContext
- Close the session with a CloseStatus
- closeSession(org.eclipse.jetty.websocket.api.CloseStatus) - function in io.javalin.websocket.WsContext
- Close the session with a CloseStatus
- closeStatus() - function in io.javalin.websocket.WsCloseContext
- The enum status for why connection was closed
- collectErrors(io.javalin.validation.BaseValidator) - function in io.javalin.validation.Validation.Companion
- collectErrors(java.lang.Iterable) - function in io.javalin.validation.Validation.Companion
- collectErrors(java.lang.Iterable) - function in io.javalin.validation.ValidationKt
- compress(java.io.OutputStream) - function in io.javalin.compression.Brotli4jCompressor
- compress(java.io.OutputStream) - function in io.javalin.compression.Compressor
- compress(java.io.OutputStream) - function in io.javalin.compression.GzipCompressor
- CompressionStrategy - class in io.javalin.compression
- This class is a settings container for Javalin's content compression.
- CompressionStrategy.Companion - class in io.javalin.compression.CompressionStrategy
- CompressionStrategyKt - class in io.javalin.compression
- CompressionType - class in io.javalin.compression
- CompressionType.Companion - class in io.javalin.compression.CompressionType
- Compressor - class in io.javalin.compression
- A compressor is used to compress an output stream
- ConcurrencyUtil - class in io.javalin.util
- ConcurrencyUtilKt - class in io.javalin.util
- ConfigurableHandler - class in io.javalin.jetty
- CONFLICT - enum entry in io.javalin.http.HttpStatus
This response is sent when a request conflicts with the current state of the server.
- ConflictResponse - class in io.javalin.http
- CONNECT - enum entry in io.javalin.http.HandlerType
The HTTP CONNECT method starts two-way communications with the requested resource. It can be used to open a tunnel.
- consumeSessionAttribute(java.lang.String) - function in io.javalin.http.Context
- Get session attribute, and set value to null
- consumeSessionAttribute(java.lang.String) - function in io.javalin.http.Context
- Get session attribute, and set value to null
- contains(java.lang.Object) - function in org.eclipse.jetty.util.component.ContainerLifeCycle
- content() - function in io.javalin.http.UploadedFile
- CONTENT_TOO_LARGE - enum entry in io.javalin.http.HttpStatus
Request entity is larger than limits defined by server. The server might close the connection or return an Retry-After header field.
- contentAndClose(kotlin.jvm.functions.Function1) - function in io.javalin.http.UploadedFile
- contentLength() - function in io.javalin.http.Context
- Gets the request content length.
- contentLength() - function in io.javalin.http.Context
- Gets the request content length.
- contentSecurityPolicy(java.lang.String) - function in io.javalin.plugin.bundled.GlobalHeadersConfig
- Adds the Content-Security-Policy header.
- ContentTooLargeResponse - class in io.javalin.http
- ContentType - class in io.javalin.http
- List of mime types for the most common file types.
- contentType() - function in io.javalin.http.Context
- Gets the request content type, or null.
- contentType() - function in io.javalin.http.Context
- Gets the request content type, or null.
- contentType(io.javalin.http.ContentType) - function in io.javalin.http.Context
- Sets response content type to specified ContentType value.
- contentType(io.javalin.http.ContentType) - function in io.javalin.http.Context
- Sets response content type to specified ContentType value.
- contentType(java.lang.String) - function in io.javalin.http.Context
- Sets response content type to specified String value.
- contentType(java.lang.String) - function in io.javalin.http.Context
- Sets response content type to specified String value.
- contentType() - function in io.javalin.http.UploadedFile
- ContentType.Companion - class in io.javalin.http.ContentType
- Context - class in io.javalin.http
- Provides access to functions for handling the request and response
- ContextKt - class in io.javalin.http
- contextPath() - function in io.javalin.http.Context
- Gets the request context path.
- contextPath() - function in io.javalin.http.Context
- Gets the request context path.
- ContextPlugin - class in io.javalin.plugin
- ContextResolverConfig - class in io.javalin.config
- Configure the implementation for Context functions.
- CONTINUE - enum entry in io.javalin.http.HttpStatus
This interim response indicates that the client should continue the request or ignore the response if the request is already finished.
- ContinueResponse - class in io.javalin.http
- cookie(io.javalin.http.Cookie) - function in io.javalin.http.Context
- Sets a Cookie.
- cookie(io.javalin.http.Cookie) - function in io.javalin.http.Context
- Sets a Cookie.
- cookie(java.lang.String) - function in io.javalin.http.Context
- Gets a request cookie by name, or null.
- cookie(java.lang.String) - function in io.javalin.http.Context
- Gets a request cookie by name, or null.
- cookie(java.lang.String,java.lang.String) - function in io.javalin.http.Context
- Sets a cookie with name, value, and max-age = -1.
- cookie(java.lang.String,java.lang.String) - function in io.javalin.http.Context
- Sets a cookie with name, value, and max-age = -1.
- cookie(java.lang.String,java.lang.String,java.lang.Integer) - function in io.javalin.http.Context
- Sets a cookie with name, value and max-age property
- cookie(java.lang.String,java.lang.String,java.lang.Integer) - function in io.javalin.http.Context
- Sets a cookie with name, value and max-age property
- Cookie - class in io.javalin.http
- An HTTP cookie (web cookie, browser cookie) is a small piece of data that a server sends to a user's web browser.
- cookie(java.lang.String) - function in io.javalin.websocket.WsContext
- Gets a request cookie by name, or null.
- cookie(java.lang.String) - function in io.javalin.websocket.WsContext
- Gets a request cookie by name, or null.
- CookieKt - class in io.javalin.http
- cookieMap() - function in io.javalin.http.Context
- Gets a map with all the cookie keys and values on the request().
- cookieMap() - function in io.javalin.http.Context
- Gets a map with all the cookie keys and values on the request().
- cookieMap() - function in io.javalin.websocket.WsContext
- Gets a Map with all the request cookies
- cookieMap() - function in io.javalin.websocket.WsContext
- Gets a Map with all the request cookies
- COOKIES - enum entry in io.javalin.plugin.bundled.GlobalHeadersConfig.ClearSiteData
Indicates that the server wishes to remove all cookies for the origin of the response URL. HTTP authentication credentials are also cleared out. This affects the entire registered domain, including subdomains. So https://example.com as well as https://stage.example.com, will have cookies cleared.
- cookieStore() - function in io.javalin.http.Context
- Gets cookie store used by this request
- cookieStore() - function in io.javalin.http.servlet.JavalinServletContext
- Gets cookie store used by this request
- CookieStore - class in io.javalin.http.util
- CookieStore.Companion - class in io.javalin.http.util.CookieStore
- CoreDependency - class in io.javalin.util
- CorsPlugin - class in io.javalin.plugin.bundled
- The CORS plugin bundles the functionality to set CORS headers for some or all origins as required.
- CorsPluginConfig - class in io.javalin.plugin.bundled
- Configuration for the CorsPlugin
- CorsPluginConfig.CorsRule - class in io.javalin.plugin.bundled.CorsPluginConfig
- create() - function in io.javalin.Javalin
- Creates a new instance without any custom configuration.
- create(java.util.function.Consumer) - function in io.javalin.Javalin
- Creates a new instance with the user provided configuration.
- create(io.javalin.http.Context) - function in io.javalin.apibuilder.CrudHandler
- create(io.javalin.http.HandlerType,java.lang.String) - function in io.javalin.router.Endpoint.Companion
- createAndStart(java.util.function.Consumer) - function in io.javalin.Javalin
- Creates a new instance with the user provided configuration and starts it immediately.
- CREATED - enum entry in io.javalin.http.HttpStatus
The request succeeded, and a new resource was created as a result. This is typically the response sent after POST requests, or some PUT requests.
- CreatedResponse - class in io.javalin.http
- createExtension(io.javalin.http.Context) - function in io.javalin.plugin.ContextPlugin
- createHtmlOverview(java.util.List,java.util.List) - function in io.javalin.plugin.bundled.RouteOverviewUtil
- createJsonOverview(java.util.List,java.util.List) - function in io.javalin.plugin.bundled.RouteOverviewUtil
- createLazy(java.util.function.Supplier) - function in io.javalin.util.Util
- createTasks(kotlin.jvm.functions.Function2,io.javalin.http.servlet.JavalinServlet,CTX,java.lang.String) - function in io.javalin.http.servlet.TaskInitializer
- CROSS_ORIGIN - enum entry in io.javalin.plugin.bundled.GlobalHeadersConfig.CrossOriginResourcePolicy
Requests from any origin (both same-site and cross-site) can read the resource. This is useful when COEP is used.
- crossOriginEmbedderPolicy(io.javalin.plugin.bundled.GlobalHeadersConfig.CrossOriginEmbedderPolicy) - function in io.javalin.plugin.bundled.GlobalHeadersConfig
- Adds a Cross-Origin-Embedder-Policy (COEP) header.
- crossOriginOpenerPolicy(io.javalin.plugin.bundled.GlobalHeadersConfig.CrossOriginOpenerPolicy) - function in io.javalin.plugin.bundled.GlobalHeadersConfig
- Adds a Cross-Origin-Opener-Policy (COOP) header.
- crossOriginResourcePolicy(io.javalin.plugin.bundled.GlobalHeadersConfig.CrossOriginResourcePolicy) - function in io.javalin.plugin.bundled.GlobalHeadersConfig
- Adds a Cross-Origin Resource Policy (CORP) header.
- crud(io.javalin.apibuilder.CrudHandler) - function in io.javalin.apibuilder.ApiBuilder
- Adds a CrudHandler handler to the current path to the Javalin instance.
- crud(io.javalin.apibuilder.CrudHandler,kotlin.Array) - function in io.javalin.apibuilder.ApiBuilder
- Adds a CrudHandler handler to the current path with the given roles to the Javalin instance.
- crud(java.lang.String,io.javalin.apibuilder.CrudHandler) - function in io.javalin.apibuilder.ApiBuilder
- Adds a CrudHandler handler to the specified path to the Javalin instance.
- crud(java.lang.String,io.javalin.apibuilder.CrudHandler,kotlin.Array) - function in io.javalin.apibuilder.ApiBuilder
- Adds a CrudHandler handler to the specified path with the given roles to the Javalin instance.
- CrudHandler - class in io.javalin.apibuilder
- The CrudHandler is an interface for handling the five most common CRUD operations.
- ctx() - function in io.javalin.http.sse.SseClient
- customCompression(io.javalin.compression.CompressionStrategy) - function in io.javalin.config.HttpConfig
- Sets a custom CompressionStrategy.