S
- SAME_ORIGIN - enum entry in io.javalin.plugin.bundled.GlobalHeadersConfig.CrossOriginOpenerPolicy
Isolates the browsing context exclusively to same-origin documents. Cross-origin documents are not loaded in the same browsing context.
- SAME_ORIGIN - enum entry in io.javalin.plugin.bundled.GlobalHeadersConfig.CrossOriginResourcePolicy
Only requests from the same origin (i.e. scheme + host + port) can read the resource.
- SAME_ORIGIN - enum entry in io.javalin.plugin.bundled.GlobalHeadersConfig.ReferrerPolicy
Send the origin, path, and query string for same-origin requests. Don't send the Referer header for cross-origin requests.
- SAME_ORIGIN_ALLOW_POPUPS - enum entry in io.javalin.plugin.bundled.GlobalHeadersConfig.CrossOriginOpenerPolicy
Retains references to newly opened windows or tabs that either don't set COOP or that opt out of isolation by setting a COOP of unsafe-none.
- SAME_SITE - enum entry in io.javalin.plugin.bundled.GlobalHeadersConfig.CrossOriginResourcePolicy
Only requests from the same Site can read the resource.
- SAMEORIGIN - enum entry in io.javalin.plugin.bundled.GlobalHeadersConfig.XFrameOptions
The page can only be displayed if all ancestor frames are same origin to the page itself.
- SameSite - class in io.javalin.http
- Value to define the
SameSite
property of a cookie. - scheme() - function in io.javalin.http.Context
- Gets the request scheme.
- scheme() - function in io.javalin.http.Context
- Gets the request scheme.
- SEE_OTHER - enum entry in io.javalin.http.HttpStatus
The server sent this response to direct the client to get the requested resource at another URI with a GET request.
- SeekableWriter - class in io.javalin.http.util
- SeeOtherResponse - class in io.javalin.http
- send(java.nio.ByteBuffer) - function in io.javalin.websocket.WsContext
- Sends a ByteBuffer over the socket
- send(java.nio.ByteBuffer) - function in io.javalin.websocket.WsContext
- Sends a ByteBuffer over the socket
- send(java.lang.Object) - function in io.javalin.websocket.WsContext
- Serializes object to a JSON-string using the registered io.javalin.json.JsonMapper and sends it over the socket
- send(java.lang.Object) - function in io.javalin.websocket.WsContext
- Serializes object to a JSON-string using the registered io.javalin.json.JsonMapper and sends it over the socket
- send(java.lang.String) - function in io.javalin.websocket.WsContext
- Sends a String over the socket
- send(java.lang.String) - function in io.javalin.websocket.WsContext
- Sends a String over the socket
- sendAsClass(T) - function in io.javalin.websocket.WsContext
- Reified version of sendAsClass (Kotlin only)
- sendAsClass(T) - function in io.javalin.websocket.WsContext
- Reified version of sendAsClass (Kotlin only)
- sendAsClass(java.lang.Object,java.lang.reflect.Type) - function in io.javalin.websocket.WsContext
- Serializes object to a JSON-string using the registered io.javalin.json.JsonMapper and sends it over the socket
- sendAsClass(java.lang.Object,java.lang.reflect.Type) - function in io.javalin.websocket.WsContext
- Serializes object to a JSON-string using the registered io.javalin.json.JsonMapper and sends it over the socket
- sendComment(java.lang.String) - function in io.javalin.http.sse.SseClient
- Attempt to send a comment.
- sendEvent(java.lang.Object) - function in io.javalin.http.sse.SseClient
- Calls sendEvent with event set to "message"
- sendEvent(java.lang.String,java.lang.Object,java.lang.String) - function in io.javalin.http.sse.SseClient
- Attempt to send an event.
- sendEvent(java.lang.String,java.lang.Object) - function in io.javalin.http.sse.SseClient
- Attempt to send an event.
- sendPing(java.nio.ByteBuffer) - function in io.javalin.websocket.WsContext
- Sends a ping over the socket
- sendPing() - function in io.javalin.websocket.WsContext
- Sends a ping over the socket
- sendPing(java.nio.ByteBuffer) - function in io.javalin.websocket.WsContext
- Sends a ping over the socket
- sendPing() - function in io.javalin.websocket.WsContext
- Sends a ping over the socket
- server() - function in io.javalin.jetty.JettyServer
- SERVER_ERROR - enum entry in io.javalin.websocket.WsCloseStatus
The server is terminating the connection because it encountered an unexpected condition that prevented it from fulfilling the request.
- SERVER_START_FAILED - enum entry in io.javalin.event.JavalinLifecycleEvent
Event fired when an exception occurs while starting the Jetty Webserver
- SERVER_STARTED - enum entry in io.javalin.event.JavalinLifecycleEvent
Event fired when the Jetty Webserver was started successfully
- SERVER_STARTING - enum entry in io.javalin.event.JavalinLifecycleEvent
Event fired when attempting to start the Jetty Webserver
- SERVER_STOP_FAILED - enum entry in io.javalin.event.JavalinLifecycleEvent
Event fired when an exception occurs while stopping the Jetty Webserver
- SERVER_STOPPED - enum entry in io.javalin.event.JavalinLifecycleEvent
Event fired after the Jetty Webserver was stopped successfully
- SERVER_STOPPING - enum entry in io.javalin.event.JavalinLifecycleEvent
Event fired when attempting to stop the Jetty Webserver
- serverStarted(io.javalin.event.LifecycleEventListener) - function in io.javalin.config.EventConfig
- Adds a callback to react on the Server Started event.
- serverStartFailed(io.javalin.event.LifecycleEventListener) - function in io.javalin.config.EventConfig
- Adds a callback to react on the Server Start Failed event.
- serverStarting(io.javalin.event.LifecycleEventListener) - function in io.javalin.config.EventConfig
- Adds a callback to react on the Server Starting event.
- serverStopFailed(io.javalin.event.LifecycleEventListener) - function in io.javalin.config.EventConfig
- Adds a callback to react on the Server Stop Failed event.
- serverStopped(io.javalin.event.LifecycleEventListener) - function in io.javalin.config.EventConfig
- Adds a callback to react on the Server Stopped event.
- serverStopping(io.javalin.event.LifecycleEventListener) - function in io.javalin.config.EventConfig
- Adds a callback to react on the Server Stopping event.
- service(jakarta.servlet.ServletRequest,jakarta.servlet.ServletResponse) - function in jakarta.servlet.http.HttpServlet
- SERVICE_RESTART - enum entry in io.javalin.websocket.WsCloseStatus
The server is terminating the connection because it is restarting.
- SERVICE_UNAVAILABLE - enum entry in io.javalin.http.HttpStatus
The server is not ready to handle the request. Common causes are a server that is down for maintenance or that is overloaded.
- ServiceUnavailableResponse - class in io.javalin.http
- ServletEntry - class in io.javalin.http.servlet
- sessionAttribute(java.lang.String) - function in io.javalin.http.Context
- Gets specified attribute from the user session, or null.
- sessionAttribute(java.lang.String) - function in io.javalin.http.Context
- Gets specified attribute from the user session, or null.
- sessionAttribute(java.lang.String,java.lang.Object) - function in io.javalin.http.Context
- Sets an attribute for the user session.
- sessionAttribute(java.lang.String,java.lang.Object) - function in io.javalin.http.Context
- Sets an attribute for the user session.
- sessionAttribute(java.lang.String) - function in io.javalin.websocket.WsContext
- Gets a session attribute by name
- sessionAttribute(java.lang.String) - function in io.javalin.websocket.WsContext
- Gets a session attribute by name
- sessionAttributeMap() - function in io.javalin.http.Context
- Gets a map of all the attributes in the user session.
- sessionAttributeMap() - function in io.javalin.http.Context
- Gets a map of all the attributes in the user session.
- sessionAttributeMap() - function in io.javalin.websocket.WsContext
- Gets a Map with all the session attributes
- sessionAttributeMap() - function in io.javalin.websocket.WsContext
- Gets a Map with all the session attributes
- sessionId() - function in io.javalin.websocket.WsContext
- Returns a String of the session id
- sessionId() - function in io.javalin.websocket.WsContext
- Returns a String of the session id
- set(java.lang.String,java.lang.Object) - function in io.javalin.http.util.CookieStore
- Sets cookie store value for specified key.
- setAcceptRanges(java.lang.Boolean) - function in org.eclipse.jetty.server.handler.ResourceHandler
- setAllowedMimeTypes(java.util.List) - function in io.javalin.compression.CompressionStrategy
- these mime types will always be allowed
- setAttribute(java.lang.String,java.lang.Object) - function in jakarta.servlet.ServletRequestWrapper
- setBaseResource(org.eclipse.jetty.util.resource.Resource) - function in org.eclipse.jetty.server.handler.ResourceHandler
- setBeans(java.util.Collection) - function in org.eclipse.jetty.util.component.ContainerLifeCycle
- setCacheControl(java.lang.String) - function in org.eclipse.jetty.server.handler.ResourceHandler
- setCharacterEncoding(java.lang.String) - function in jakarta.servlet.ServletRequestWrapper
- setChunkSize(java.lang.Integer) - function in io.javalin.http.util.SeekableWriter
- setComment(java.lang.String) - function in io.javalin.http.Cookie
- setCOOKIE_NAME(java.lang.String) - function in io.javalin.http.util.CookieStore.Companion
- setDefaultMinSizeForCompression(java.lang.Integer) - function in io.javalin.compression.CompressionStrategy
- 1500 is the size of a packet, compressing responses smaller than this serves no purpose
- setDirAllowed(java.lang.Boolean) - function in org.eclipse.jetty.server.handler.ResourceHandler
- setDirectoriesListed(java.lang.Boolean) - function in org.eclipse.jetty.server.handler.ResourceHandler
- setDomain(java.lang.String) - function in io.javalin.http.Cookie
- setEtags(java.lang.Boolean) - function in org.eclipse.jetty.server.handler.ResourceHandler
- setEventListeners(java.util.Collection) - function in org.eclipse.jetty.util.component.AbstractLifeCycle
- setExceptionOccurred(java.lang.Boolean) - function in io.javalin.http.servlet.JavalinServletContext
- setExcludedMimeTypes(java.util.List) - function in io.javalin.compression.CompressionStrategy
- these mime types will be processed using NONE compression strategy
- setGzipEquivalentFileExtensions(java.util.List) - function in org.eclipse.jetty.server.handler.ResourceHandler
- setHandler(org.eclipse.jetty.server.Handler) - function in org.eclipse.jetty.server.handler.HandlerWrapper
- setHandlerAddedHandlers(java.util.Set) - function in io.javalin.event.EventManager
- setHttpOnly(java.lang.Boolean) - function in io.javalin.http.Cookie
- setJavalinCookie(jakarta.servlet.http.HttpServletResponse,io.javalin.http.Cookie) - function in io.javalin.http.CookieKt
- setKeyFunction(kotlin.jvm.functions.Function1) - function in io.javalin.http.util.RateLimitUtil
- setMaxAge(java.lang.Integer) - function in io.javalin.http.Cookie
- setMimeTypes(org.eclipse.jetty.http.MimeTypes) - function in org.eclipse.jetty.server.handler.ResourceHandler
- setName(java.lang.String) - function in io.javalin.http.Cookie
- setPath(java.lang.String) - function in io.javalin.http.Cookie
- setPathInfoOnly(java.lang.Boolean) - function in org.eclipse.jetty.server.handler.ResourceHandler
- setPrecompressedFormats(kotlin.Array) - function in org.eclipse.jetty.server.handler.ResourceHandler
- setPreUploadFunction(kotlin.jvm.functions.Function1) - function in io.javalin.http.util.MultipartUtil
- setRedirectWelcome(java.lang.Boolean) - function in org.eclipse.jetty.server.handler.ResourceHandler
- setRequest(jakarta.servlet.ServletRequest) - function in jakarta.servlet.ServletRequestWrapper
- setResourceBase(java.lang.String) - function in org.eclipse.jetty.server.handler.ResourceHandler
- setSameSite(io.javalin.http.SameSite) - function in io.javalin.http.Cookie
- setSecure(java.lang.Boolean) - function in io.javalin.http.Cookie
- setServer(org.eclipse.jetty.server.Server) - function in org.eclipse.jetty.server.handler.AbstractHandlerContainer
- setStackTrace(kotlin.Array) - function in kotlin.Throwable
- setStaticJavalin(io.javalin.router.JavalinDefaultRoutingApi) - function in io.javalin.apibuilder.ApiBuilder
- setStylesheet(java.lang.String) - function in org.eclipse.jetty.server.handler.ResourceHandler
- setup(SETUP) - function in io.javalin.router.RoutingSetupScope
- setValue(java.lang.String) - function in io.javalin.http.Cookie
- setValue(java.lang.Object) - function in io.javalin.validation.ValidationError
- setVersion(java.lang.Integer) - function in io.javalin.http.Cookie
- setWelcomeFiles(kotlin.Array) - function in org.eclipse.jetty.server.handler.ResourceHandler
- SinglePageHandler - class in io.javalin.http
- This is just a glorified 404 handler.
- SinglePageHandler.Page - class in io.javalin.http.SinglePageHandler
- size() - function in io.javalin.http.UploadedFile
- SizeUnit - class in io.javalin.config
- This class represents the potential file size descriptors to avoid the use of hard-coded multipliers
- skipRemainingHandlers() - function in io.javalin.http.Context
- skipRemainingHandlers() - function in io.javalin.http.servlet.JavalinServletContext
- SLF4JSIMPLE - enum entry in io.javalin.util.CoreDependency
- SpaRootConfig - class in io.javalin.config
- Configures a Single Page Application root.
- splitKeyValueStringAndGroupByKey(java.lang.String,java.lang.String) - function in io.javalin.http.servlet.JavalinServletContextKt
- sse(java.lang.String,java.util.function.Consumer) - function in io.javalin.apibuilder.ApiBuilder
- sse(java.lang.String,java.util.function.Consumer,kotlin.Array) - function in io.javalin.apibuilder.ApiBuilder
- sse(java.util.function.Consumer) - function in io.javalin.apibuilder.ApiBuilder
- sse(java.util.function.Consumer,kotlin.Array) - function in io.javalin.apibuilder.ApiBuilder
- sse(java.lang.String,java.util.function.Consumer) - function in io.javalin.router.JavalinDefaultRoutingApi
- Adds a lambda handler for a Server Sent Event connection on the specified path.
- sse(java.lang.String,io.javalin.http.sse.SseHandler) - function in io.javalin.router.JavalinDefaultRoutingApi
- Adds a lambda handler for a Server Sent Event connection on the specified path.
- sse(java.lang.String,io.javalin.http.sse.SseHandler) - function in io.javalin.router.JavalinDefaultRoutingApi
- Adds a lambda handler for a Server Sent Event connection on the specified path.
- sse(java.lang.String,java.util.function.Consumer) - function in io.javalin.router.JavalinDefaultRoutingApi
- Adds a lambda handler for a Server Sent Event connection on the specified path.
- sse(java.lang.String,java.util.function.Consumer) - function in io.javalin.router.JavalinDefaultRoutingApi
- Adds a lambda handler for a Server Sent Event connection on the specified path.
- sse(java.lang.String,java.util.function.Consumer,io.javalin.security.RouteRole) - function in io.javalin.router.JavalinDefaultRoutingApi
- Adds a lambda handler for a Server Sent Event connection on the specified path.
- sse(java.lang.String,java.util.function.Consumer,io.javalin.security.RouteRole) - function in io.javalin.router.JavalinDefaultRoutingApi
- Adds a lambda handler for a Server Sent Event connection on the specified path.
- SseClient - class in io.javalin.http.sse
- SseHandler - class in io.javalin.http.sse
- SslRedirectPlugin - class in io.javalin.plugin.bundled
- SslRedirectPlugin has to be the first registered plugin to properly handle all requests in 'before' handler.
- SslRedirectPlugin.Config - class in io.javalin.plugin.bundled.SslRedirectPlugin
- start() - function in io.javalin.Javalin
- Synchronously starts the application instance on the configured port, or on the configured ServerConnectors if the Jetty server has been manually configured.
- start(int) - function in io.javalin.Javalin
- Synchronously starts the application instance on the specified port.
- start(java.lang.String,int) - function in io.javalin.Javalin
- Synchronously starts the application instance on the specified port with the given host IP to bind to.
- start(java.lang.String,java.lang.Integer) - function in io.javalin.jetty.JettyServer
- start() - function in org.eclipse.jetty.util.component.AbstractLifeCycle
- startAsync() - function in jakarta.servlet.ServletRequestWrapper
- startAsync(jakarta.servlet.ServletRequest,jakarta.servlet.ServletResponse) - function in jakarta.servlet.ServletRequestWrapper
- started() - function in io.javalin.jetty.JettyServer
- startPlugins() - function in io.javalin.plugin.PluginManager
- startup(java.lang.String) - function in io.javalin.util.JavalinLogger
- state(io.javalin.http.Context) - function in io.javalin.vue.VueComponent
- state(io.javalin.http.Context) - function in io.javalin.vue.VueHandler
- StaticFileConfig - class in io.javalin.http.staticfiles
- The configuration for Static Files.
- StaticFilesConfig - class in io.javalin.config
- Configuration for static files and webjars.
- staticInstance() - function in io.javalin.apibuilder.ApiBuilder
- status() - function in io.javalin.http.Context
- Gets the response status.
- status() - function in io.javalin.http.Context
- Gets the response status.
- status(io.javalin.http.HttpStatus) - function in io.javalin.http.Context
- Sets the response status.
- status(io.javalin.http.HttpStatus) - function in io.javalin.http.Context
- Sets the response status.
- status(java.lang.Integer) - function in io.javalin.http.Context
- Sets the response status.
- status(java.lang.Integer) - function in io.javalin.http.Context
- Sets the response status.
- status() - function in io.javalin.websocket.WsCloseContext
- The int status for why connection was closed
- statusCode() - function in io.javalin.http.Context
- Gets the response status code
- statusCode() - function in io.javalin.http.Context
- Gets the response status code
- stop() - function in io.javalin.Javalin
- Synchronously stops the application instance.
- stop() - function in io.javalin.jetty.JettyServer
- stop() - function in org.eclipse.jetty.util.component.AbstractLifeCycle
- STORAGE - enum entry in io.javalin.plugin.bundled.GlobalHeadersConfig.ClearSiteData
Indicates that the server wishes to remove all DOM storage for the origin of the response URL. This includes storage mechanisms such as:localStorage, sessionStorage, IndexedDB, Service worker registrations, Web SQL databases (deprecated), FileSystem API data, Plugin data.
- streamToFile(java.io.InputStream,java.lang.String) - function in io.javalin.util.FileUtil
- STRICT - enum entry in io.javalin.http.SameSite
Means that the browser sends the cookie only for same-site requests, that is, requests originating from the same site that set the cookie. If a request originates from a different domain or scheme (even with the same domain), no cookies with the SameSite=Strict attribute are sent.
- STRICT_ORIGIN - enum entry in io.javalin.plugin.bundled.GlobalHeadersConfig.ReferrerPolicy
Send only the origin when the protocol security level stays the same (HTTPS→HTTPS). Don't send the Referer header to less secure destinations (HTTPS→HTTP).
- STRICT_ORIGIN_WHEN_CROSS_ORIGIN - enum entry in io.javalin.plugin.bundled.GlobalHeadersConfig.ReferrerPolicy
Send the origin, path, and querystring when performing a same-origin request. For cross-origin requests send the origin (only) when the protocol security level stays same (HTTPS→HTTPS). Don't send the Referer header to less secure destinations (HTTPS→HTTP).
- strictTransportSecurity(java.time.Duration,java.lang.Boolean) - function in io.javalin.plugin.bundled.GlobalHeadersConfig
- Adds a Strict-Transport-Security header.
- submitAsyncTask(io.javalin.http.Context,io.javalin.http.util.AsyncTaskConfig,io.javalin.util.function.ThrowingRunnable) - function in io.javalin.http.util.AsyncExecutor
- Utility method that executes task asynchronously using executor (defaultExecutor by default).
- SubmitOrder - class in io.javalin.http.servlet
- SWITCHING_PROTOCOLS - enum entry in io.javalin.http.HttpStatus
This code is sent in response to an Upgrade request header from the client and indicates the protocol the server is switching to.
- SwitchingProtocolsResponse - class in io.javalin.http