Index

A B C D E F G H I J L M N O P Q R S T U V W X Z 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

AbstractRouter - Class in dev.relism.flash.routing
Base router contract.
AbstractRouter() - Constructor for class dev.relism.flash.routing.AbstractRouter
 
AbstractRouter.ExceptionHandler - Interface in dev.relism.flash.routing
 
AbstractWsRouter - Class in dev.relism.flash.routing
 
AbstractWsRouter() - Constructor for class dev.relism.flash.routing.AbstractWsRouter
 
ACCEPTED - Enum constant in enum class dev.relism.flash.http.HttpStatus
 
addAnnotationProcessor(AnnotationProcessor) - Method in class dev.relism.flash.extension.FlashContext
Registers an AnnotationProcessor.
addMiddleware(Middleware) - Method in class dev.relism.flash.extension.FlashApp
 
addMiddleware(Middleware) - Method in class dev.relism.flash.extension.FlashRegistrar
Registers a middleware in this registrar's own scope (global or scope-level).
addMiddleware(Middleware) - Method in class dev.relism.flash.extension.FlashScope
 
addRoute(HttpMethod, String, RequestHandler) - Method in class dev.relism.flash.routing.AbstractRouter
 
addRoute(HttpMethod, String, RequestHandler) - Method in class dev.relism.flash.routing.routers.fastpathrouter.FastPathRouterImpl
 
addRoute(HttpMethod, String, RequestHandler, List<Middleware>) - Method in class dev.relism.flash.extension.FlashApp
 
addRoute(HttpMethod, String, RequestHandler, List<Middleware>) - Method in class dev.relism.flash.extension.FlashRegistrar
Adds a route immediately to this registrar's deferred compilation list.
addRoute(HttpMethod, String, RequestHandler, List<Middleware>) - Method in class dev.relism.flash.extension.FlashScope
 
addRoute(HttpMethod, String, WebSocketHandler) - Method in class dev.relism.flash.routing.AbstractWsRouter
 
addRoute(HttpMethod, String, WebSocketHandler) - Method in class dev.relism.flash.routing.routers.fastpathrouter.FastPathWsRouterImpl
 
addRouteListener(RouteListener) - Method in class dev.relism.flash.extension.FlashContext
Registers a boot-time RouteListener.
addWsRoute(String, WebSocketEndpoint) - Method in class dev.relism.flash.extension.FlashApp
 
addWsRoute(String, WebSocketEndpoint) - Method in class dev.relism.flash.extension.FlashRegistrar
 
addWsRoute(String, WebSocketEndpoint) - Method in class dev.relism.flash.extension.FlashScope
 
all() - Method in class dev.relism.flash.models.HeaderMap
Returns all header values in declaration order.
all(String) - Method in class dev.relism.flash.models.HeaderMap
Returns all values of header name in declaration order, or an empty list.
AnnotationProcessor - Interface in dev.relism.flash.extension
Inspects a handler class at registration time and returns zero or more middlewares to inject automatically.
AUDIO_MPEG - Enum constant in enum class dev.relism.flash.http.ContentType
 
AUDIO_OGG - Enum constant in enum class dev.relism.flash.http.ContentType
 

B

BAD_GATEWAY - Enum constant in enum class dev.relism.flash.http.HttpStatus
 
BAD_REQUEST - Enum constant in enum class dev.relism.flash.http.HttpStatus
 
badRequest(String) - Static method in exception class dev.relism.flash.exceptions.HttpException
 
BINARY - Enum constant in enum class dev.relism.flash.http.ContentType
 
bind(FlashContext) - Method in class dev.relism.flash.models.RequestHandler
Called once by the framework after instantiation, before the first request.
bind(FlashContext) - Method in class dev.relism.flash.websocket.WebSocketEndpoint
Called once by framework at boot.
body() - Method in class dev.relism.flash.models.Request
Returns the request body accessor.
body(byte[]) - Method in class dev.relism.flash.models.Response
 
body(String) - Method in class dev.relism.flash.models.Response
 
byteAt(int) - Method in class dev.relism.flash.routing.routers.fastpathrouter.FastPathViews.MethodPathByteView
 
byteAt(int) - Method in class dev.relism.flash.routing.routers.fastpathrouter.FastPathViews.RequestByteView
 
byteAt(int) - Method in class dev.relism.flash.routing.routers.fastpathrouter.FastPathViews.SocketByteView
 
byteAt(int) - Method in class dev.relism.flash.routing.routers.fastpathrouter.FastPathViews.StringByteView
 
bytes() - Method in enum class dev.relism.flash.http.HttpStatus
Pre-encoded "200 OK" bytes — zero allocation on the write path.
bytes() - Method in class dev.relism.flash.models.RequestBody
Materialises and caches the full body.
bytesForCode(int) - Static method in enum class dev.relism.flash.http.HttpStatus
Returns pre-compiled status bytes for the given code.
ByteTemplate - Class in dev.relism.flash.template
Precompiled, allocation-minimal byte template.
ByteTemplate(String) - Constructor for class dev.relism.flash.template.ByteTemplate
 

C

CBOR - Enum constant in enum class dev.relism.flash.http.ContentType
 
child() - Method in class dev.relism.flash.extension.FlashContext
Creates a child context that inherits this context's services and processors.
chunked(InputStream) - Method in class dev.relism.flash.models.Response
Streaming response with unknown length; written with Transfer-Encoding: chunked.
close(int) - Method in class dev.relism.flash.websocket.WebSocketSession
Sends a CLOSE frame exactly once.
closeCode() - Method in class dev.relism.flash.websocket.WebSocketSession
 
closeFromPeer(WebSocketFrame) - Method in class dev.relism.flash.websocket.WebSocketSession
 
code() - Method in enum class dev.relism.flash.http.HttpStatus
Numeric status code (e.g.
commons - Static variable in class dev.relism.flash.Flash
 
Commons() - Constructor for class dev.relism.flash.Flash.Commons
 
conflict(String) - Static method in exception class dev.relism.flash.exceptions.HttpException
 
CONFLICT - Enum constant in enum class dev.relism.flash.http.HttpStatus
 
connect(String, SimpleHandler.FunctionalHandler, Middleware...) - Method in class dev.relism.flash.extension.FlashRegistrar
 
CONNECT - Enum constant in enum class dev.relism.flash.http.HttpMethod
 
CONNECT - Annotation Interface in dev.relism.flash.routing
Shorthand for @Route(method = HttpMethod.CONNECT, path = "…").
contentLength() - Method in class dev.relism.flash.models.RequestBody
Declared body size in bytes.
contentType() - Method in class dev.relism.flash.api.multipart.Part
Content-Type declared in the part headers, or null if absent.
ContentType - Enum Class in dev.relism.flash.http
Pre-compiled byte representations of common HTTP Content-Type values.
CONTINUE - Enum constant in enum class dev.relism.flash.http.HttpStatus
 
copyPayload() - Method in class dev.relism.flash.websocket.WebSocketFrame
Copies the payload into a fresh array.
cors() - Method in class dev.relism.flash.Flash.Middlewares
 
cors(Flash.Middlewares.CorsConfig) - Method in class dev.relism.flash.Flash.Middlewares
 
cors(Consumer<Flash.Middlewares.CorsConfig>) - Method in class dev.relism.flash.Flash.Middlewares
 
CorsConfig() - Constructor for class dev.relism.flash.Flash.Middlewares.CorsConfig
 
create(int) - Static method in class dev.relism.flash.extension.FlashApp
 
create(FlashConfiguration) - Static method in class dev.relism.flash.extension.FlashApp
 
create(FlashConfiguration, AbstractRouter, AbstractWsRouter) - Static method in interface dev.relism.flash.ServerHandle
 
CREATED - Enum constant in enum class dev.relism.flash.http.HttpStatus
 
credentials() - Method in class dev.relism.flash.Flash.Middlewares.CorsConfig
 
credentials(boolean) - Method in class dev.relism.flash.Flash.Middlewares.CorsConfig
 
ctx() - Method in class dev.relism.flash.extension.FlashApp
 
ctx() - Method in class dev.relism.flash.extension.FlashRegistrar
Returns the FlashContext for this registrar.
ctx() - Method in class dev.relism.flash.extension.FlashScope
 

D

DEFAULT - Enum constant in enum class dev.relism.flash.extension.ExtensionPhase
Normal application extensions.
Default error handlers - Search tag in class dev.relism.flash.extension.FlashApp
Section
Default error handlers - Search tag in class dev.relism.flash.routing.AbstractRouter
Section
delete(String, SimpleHandler.FunctionalHandler, Middleware...) - Method in class dev.relism.flash.extension.FlashRegistrar
 
DELETE - Enum constant in enum class dev.relism.flash.http.HttpMethod
 
DELETE - Annotation Interface in dev.relism.flash.routing
Shorthand for @Route(method = HttpMethod.DELETE, path = "…").
DEV - Static variable in class dev.relism.flash.Flash
 
dev.relism.flash - package dev.relism.flash
 
dev.relism.flash.api.multipart - package dev.relism.flash.api.multipart
 
dev.relism.flash.exceptions - package dev.relism.flash.exceptions
 
dev.relism.flash.extension - package dev.relism.flash.extension
 
dev.relism.flash.http - package dev.relism.flash.http
 
dev.relism.flash.models - package dev.relism.flash.models
 
dev.relism.flash.routing - package dev.relism.flash.routing
 
dev.relism.flash.routing.routers.fastpathrouter - package dev.relism.flash.routing.routers.fastpathrouter
 
dev.relism.flash.routing.routers.radix - package dev.relism.flash.routing.routers.radix
 
dev.relism.flash.template - package dev.relism.flash.template
 
dev.relism.flash.websocket - package dev.relism.flash.websocket
 
Dev mode - Search tag in class dev.relism.flash.Flash
Section
doRegister(HttpMethod, String, RequestHandler, Middleware[]) - Method in class dev.relism.flash.routing.AbstractRouter
Registers a handler with a pre-built middleware array.
drain() - Method in class dev.relism.flash.models.Request
Discards unread body bytes; called by the server after each request on keep-alive connections.

E

Eager vs lazy registration - Search tag in class dev.relism.flash.extension.FlashContext
Section
EARLY - Enum constant in enum class dev.relism.flash.extension.ExtensionPhase
Security guards, rate limiting — must short-circuit before expensive processing.
echo(WebSocketFrame) - Method in class dev.relism.flash.websocket.WebSocketSession
 
EMPTY - Static variable in class dev.relism.flash.models.QueryParams
 
equals(Object) - Method in record class dev.relism.flash.extension.RouteEvent
Indicates whether some other object is "equal to" this one.
ErrorPages - Class in dev.relism.flash.template
Precompiled error page templates.
ErrorPages() - Constructor for class dev.relism.flash.template.ErrorPages
 
Example - Search tag in interface dev.relism.flash.extension.FlashExtension
Section
exceptionHandler - Variable in class dev.relism.flash.routing.AbstractRouter
 
ExtensionPhase - Enum Class in dev.relism.flash.extension
Semantic execution phases for FlashExtension.priority().

F

FastPathRouterImpl - Class in dev.relism.flash.routing.routers.fastpathrouter
Router backed by the fpr-core byte-level state machine.
FastPathRouterImpl() - Constructor for class dev.relism.flash.routing.routers.fastpathrouter.FastPathRouterImpl
 
FastPathViews - Class in dev.relism.flash.routing.routers.fastpathrouter
ByteView implementations used on the router and parser hot paths.
FastPathViews() - Constructor for class dev.relism.flash.routing.routers.fastpathrouter.FastPathViews
 
FastPathViews.MethodPathByteView - Class in dev.relism.flash.routing.routers.fastpathrouter
Mutable composite view: method bytes + path.
FastPathViews.RequestByteView - Class in dev.relism.flash.routing.routers.fastpathrouter
 
FastPathViews.SocketByteView - Class in dev.relism.flash.routing.routers.fastpathrouter
 
FastPathViews.StringByteView - Class in dev.relism.flash.routing.routers.fastpathrouter
 
FastPathWsRouterImpl - Class in dev.relism.flash.routing.routers.fastpathrouter
 
FastPathWsRouterImpl() - Constructor for class dev.relism.flash.routing.routers.fastpathrouter.FastPathWsRouterImpl
 
field(String) - Method in class dev.relism.flash.api.multipart.Multipart
Returns the text value of the first field named name, or null.
file(String) - Method in class dev.relism.flash.api.multipart.Multipart
Returns the first file part named name, or null.
filename() - Method in class dev.relism.flash.api.multipart.Part
Original filename from filename="...", or null for text fields.
find(Class<T>) - Method in class dev.relism.flash.extension.FlashContext
Returns the service for type, or empty if not found in this scope or any parent.
find(Class<T>) - Method in class dev.relism.flash.models.RequestHandler
Looks up an optional service from the FlashContext.
find(Class<T>) - Method in class dev.relism.flash.websocket.WebSocketEndpoint
 
first(String) - Method in class dev.relism.flash.models.HeaderMap
Returns the first value of header name (case-insensitive), or null.
Flash - Class in dev.relism.flash
Global Flash constants and runtime environment flags.
Flash.Commons - Class in dev.relism.flash
 
Flash.Middlewares - Class in dev.relism.flash
 
Flash.Middlewares.CorsConfig - Class in dev.relism.flash
 
FlashApp - Class in dev.relism.flash.extension
Single entry point for Flash.
FlashConfiguration - Class in dev.relism.flash.extension
Configuration for a FlashApp instance.
FlashConfiguration() - Constructor for class dev.relism.flash.extension.FlashConfiguration
 
FlashContext - Class in dev.relism.flash.extension
Central service registry and boot-time hook coordinator.
FlashContext() - Constructor for class dev.relism.flash.extension.FlashContext
 
FlashExtension - Interface in dev.relism.flash.extension
Two-phase contract for all Flash extensions.
FlashRegistrar<SELF> - Class in dev.relism.flash.extension
Common route-registration surface shared by FlashApp and FlashScope.
FlashRegistrar() - Constructor for class dev.relism.flash.extension.FlashRegistrar
 
FlashScope - Class in dev.relism.flash.extension
Scoped builder for namespace-prefixed routes.
FONT_WOFF - Enum constant in enum class dev.relism.flash.http.ContentType
 
FONT_WOFF2 - Enum constant in enum class dev.relism.flash.http.ContentType
 
forbidden() - Static method in exception class dev.relism.flash.exceptions.HttpException
 
FORBIDDEN - Enum constant in enum class dev.relism.flash.http.HttpStatus
 
forceClose() - Method in class dev.relism.flash.websocket.WebSocketSession
 
FORM_URLENCODED - Enum constant in enum class dev.relism.flash.http.ContentType
 
forParsed(RequestLine, InputStream, long, byte[], int, int, InetSocketAddress) - Static method in class dev.relism.flash.models.Request
 
FOUND - Enum constant in enum class dev.relism.flash.http.HttpStatus
 
fromBytes(byte[], int, int) - Static method in enum class dev.relism.flash.http.HttpMethod
Resolves the HttpMethod from a byte buffer segment using O(1) dispatch.

G

GATEWAY_TIMEOUT - Enum constant in enum class dev.relism.flash.http.HttpStatus
 
generation() - Method in class dev.relism.flash.websocket.WebSocketFrame
Returns the generation counter at the moment of this call.
get(String) - Method in class dev.relism.flash.models.PathParams
 
get(String) - Method in class dev.relism.flash.models.QueryParams
 
get(String, SimpleHandler.FunctionalHandler, Middleware...) - Method in class dev.relism.flash.extension.FlashRegistrar
 
GET - Enum constant in enum class dev.relism.flash.http.HttpMethod
 
GET - Annotation Interface in dev.relism.flash.routing
Shorthand for @Route(method = HttpMethod.GET, path = "…").
getAll(String) - Method in class dev.relism.flash.models.QueryParams
 
getExceptionHandler() - Method in class dev.relism.flash.routing.AbstractRouter
 
getHeaders() - Method in class dev.relism.flash.models.Response
Returns custom headers, or an empty list if none were added.
getNotFoundHandler() - Method in class dev.relism.flash.routing.AbstractRouter
 
GONE - Enum constant in enum class dev.relism.flash.http.HttpStatus
 
GRAPHQL - Enum constant in enum class dev.relism.flash.http.ContentType
 
GZIP - Enum constant in enum class dev.relism.flash.http.ContentType
 

H

handle(Request, Response) - Method in class dev.relism.flash.models.RequestHandler
Handles an incoming request.
handle(Request, Response) - Method in interface dev.relism.flash.models.SimpleHandler.FunctionalHandler
 
handle(Request, Response) - Method in class dev.relism.flash.models.SimpleHandler
 
handle(Exception, Request, Response) - Method in interface dev.relism.flash.routing.AbstractRouter.ExceptionHandler
 
Handler abstraction chain - Search tag in record class dev.relism.flash.extension.RouteEvent
Section
handlerClass() - Method in record class dev.relism.flash.extension.RouteEvent
Returns the value of the handlerClass record component.
hashCode() - Method in record class dev.relism.flash.extension.RouteEvent
Returns a hash code value for this object.
head(String, SimpleHandler.FunctionalHandler, Middleware...) - Method in class dev.relism.flash.extension.FlashRegistrar
 
HEAD - Enum constant in enum class dev.relism.flash.http.HttpMethod
 
HEAD - Annotation Interface in dev.relism.flash.routing
Shorthand for @Route(method = HttpMethod.HEAD, path = "…").
header(byte[]) - Method in class dev.relism.flash.models.Response
Adds a pre-encoded header (e.g. a static "X-RateLimit-Limit: 100\r\n" byte array pre-built at boot time).
header(String) - Method in class dev.relism.flash.models.Request
Returns the first value of header name, or null if absent.
header(String, String) - Method in class dev.relism.flash.models.Response
Adds a response header.
headerEquals(String, String) - Method in class dev.relism.flash.models.Request
Internal: case-insensitive header value comparison used by the server keep-alive logic.
HeaderMap - Class in dev.relism.flash.models
Lazy, zero-copy header access backed directly by the request parser's byte buffer.
HeaderMap() - Constructor for class dev.relism.flash.models.HeaderMap
 
headers() - Method in class dev.relism.flash.Flash.Middlewares.CorsConfig
 
headers() - Method in class dev.relism.flash.models.Request
Returns all header values in declaration order, one entry per header line.
headers(String) - Method in class dev.relism.flash.models.Request
Returns all values of header name in declaration order.
headers(String...) - Method in class dev.relism.flash.Flash.Middlewares.CorsConfig
 
HttpException - Exception Class in dev.relism.flash.exceptions
Runtime exception carrying an HTTP status code.
HttpException(int, String) - Constructor for exception class dev.relism.flash.exceptions.HttpException
 
HttpMethod - Enum Class in dev.relism.flash.http
 
HttpStatus - Enum Class in dev.relism.flash.http
Pre-compiled byte representations of standard HTTP status lines.

I

IMAGE_AVIF - Enum constant in enum class dev.relism.flash.http.ContentType
 
IMAGE_GIF - Enum constant in enum class dev.relism.flash.http.ContentType
 
IMAGE_ICO - Enum constant in enum class dev.relism.flash.http.ContentType
 
IMAGE_JPEG - Enum constant in enum class dev.relism.flash.http.ContentType
 
IMAGE_PNG - Enum constant in enum class dev.relism.flash.http.ContentType
 
IMAGE_SVG - Enum constant in enum class dev.relism.flash.http.ContentType
 
IMAGE_WEBP - Enum constant in enum class dev.relism.flash.http.ContentType
 
InitializationException - Exception Class in dev.relism.flash.exceptions
Thrown at boot time when Flash detects a configuration or registration error.
InitializationException(String) - Constructor for exception class dev.relism.flash.exceptions.InitializationException
 
InitializationException(String, Throwable) - Constructor for exception class dev.relism.flash.exceptions.InitializationException
 
inject(Request, PathParams) - Static method in class dev.relism.flash.models.PathParams
Injects path parameters into a request.
install(FlashExtension) - Method in class dev.relism.flash.extension.FlashApp
Registers an extension for two-phase installation at startup.
instantiate(Class<?>) - Static method in class dev.relism.flash.extension.FlashRegistrar
 
instantiateWs(Class<?>) - Static method in class dev.relism.flash.extension.FlashRegistrar
 
internal(String) - Static method in exception class dev.relism.flash.exceptions.HttpException
 
INTERNAL_SERVER_ERROR - Enum constant in enum class dev.relism.flash.http.HttpStatus
 
isEmpty() - Method in class dev.relism.flash.models.RequestBody
true if the body has zero bytes (Content-Length: 0 or no body).
isFile() - Method in class dev.relism.flash.api.multipart.Part
true if this part has a filename attribute (i.e. a file upload).
isFin() - Method in class dev.relism.flash.websocket.WebSocketFrame
 
isOpen() - Method in class dev.relism.flash.websocket.WebSocketSession
 
isStreaming() - Method in class dev.relism.flash.models.Response
 

J

join(String, String) - Static method in class dev.relism.flash.routing.PathUtils
Joins two path segments and ensures the result is sanitized.
JSON - Enum constant in enum class dev.relism.flash.http.ContentType
 

L

LATE - Enum constant in enum class dev.relism.flash.extension.ExtensionPhase
Observability, logging, diagnostics — must observe after all business logic.
LD_JSON - Enum constant in enum class dev.relism.flash.http.ContentType
 
length() - Method in class dev.relism.flash.routing.routers.fastpathrouter.FastPathViews.MethodPathByteView
 
length() - Method in class dev.relism.flash.routing.routers.fastpathrouter.FastPathViews.RequestByteView
 
length() - Method in class dev.relism.flash.routing.routers.fastpathrouter.FastPathViews.SocketByteView
 
length() - Method in class dev.relism.flash.routing.routers.fastpathrouter.FastPathViews.StringByteView
 
LENGTH_REQUIRED - Enum constant in enum class dev.relism.flash.http.HttpStatus
 
Lifecycle - Search tag in class dev.relism.flash.models.RequestHandler
Section
Lifetime contract — read carefully - Search tag in class dev.relism.flash.models.HeaderMap
Section

M

main(String[]) - Static method in class dev.relism.flash.Main
 
Main - Class in dev.relism.flash
 
Main() - Constructor for class dev.relism.flash.Main
 
materialize() - Method in class dev.relism.flash.api.multipart.Part
Materialises the body into a byte[].
method() - Method in record class dev.relism.flash.extension.RouteEvent
Returns the value of the method record component.
method() - Method in class dev.relism.flash.models.Request
HTTP method (GET, POST, …).
method() - Element in annotation interface dev.relism.flash.routing.Route
 
METHOD_NOT_ALLOWED - Enum constant in enum class dev.relism.flash.http.HttpStatus
 
MethodPathByteView() - Constructor for class dev.relism.flash.routing.routers.fastpathrouter.FastPathViews.MethodPathByteView
 
methods() - Method in class dev.relism.flash.Flash.Middlewares.CorsConfig
 
methods(String...) - Method in class dev.relism.flash.Flash.Middlewares.CorsConfig
 
Middleware - Interface in dev.relism.flash.routing
Stateless interceptor applied around a RequestHandler.
middlewareChain() - Method in record class dev.relism.flash.extension.RouteEvent
Returns the value of the middlewareChain record component.
Middleware chain - Search tag in record class dev.relism.flash.extension.RouteEvent
Section
middlewares - Variable in class dev.relism.flash.Flash.Commons
 
Middlewares() - Constructor for class dev.relism.flash.Flash.Middlewares
 
mount(String, Consumer<FlashScope>) - Method in class dev.relism.flash.extension.FlashApp
Mounts a scoped group of routes under namespace.
MOVED_PERMANENTLY - Enum constant in enum class dev.relism.flash.http.HttpStatus
 
MSGPACK - Enum constant in enum class dev.relism.flash.http.ContentType
 
Multipart - Class in dev.relism.flash.api.multipart
Lazy streaming multipart/form-data parser.
MULTIPART_FORM - Enum constant in enum class dev.relism.flash.http.ContentType
 

N

name() - Method in class dev.relism.flash.api.multipart.Part
Field or file name from Content-Disposition: form-data; name="...".
namespace() - Method in record class dev.relism.flash.extension.RouteEvent
Returns the value of the namespace record component.
NDJSON - Enum constant in enum class dev.relism.flash.http.ContentType
 
NO_CONTENT - Enum constant in enum class dev.relism.flash.http.HttpStatus
 
NONE - Enum constant in enum class dev.relism.flash.http.ContentType
 
NOT_ACCEPTABLE - Enum constant in enum class dev.relism.flash.http.HttpStatus
 
NOT_FOUND - Enum constant in enum class dev.relism.flash.http.HttpStatus
 
NOT_IMPLEMENTED - Enum constant in enum class dev.relism.flash.http.HttpStatus
 
NOT_MODIFIED - Enum constant in enum class dev.relism.flash.http.HttpStatus
 
notFound(String) - Static method in exception class dev.relism.flash.exceptions.HttpException
 
notFoundHandler - Variable in class dev.relism.flash.routing.AbstractRouter
 

O

of(Request) - Static method in class dev.relism.flash.api.multipart.Multipart
Creates a parser for request.
of(Middleware...) - Static method in interface dev.relism.flash.routing.Middleware
Composes an ordered chain of middlewares into a single Middleware.
of(Class<?>) - Static method in class dev.relism.flash.routing.Routes
Effective route for cls, or null.
OK - Enum constant in enum class dev.relism.flash.http.HttpStatus
 
onClose(WebSocketSession, int) - Method in interface dev.relism.flash.websocket.WebSocketHandler
 
onError(WebSocketSession, Throwable) - Method in interface dev.relism.flash.websocket.WebSocketHandler
 
onException(AbstractRouter.ExceptionHandler) - Method in class dev.relism.flash.extension.FlashApp
 
onException(AbstractRouter.ExceptionHandler) - Method in class dev.relism.flash.routing.AbstractRouter
 
onInit() - Method in class dev.relism.flash.models.RequestHandler
Override to cache services at boot time.
onInit() - Method in class dev.relism.flash.websocket.WebSocketEndpoint
Override to resolve and cache services before first connection.
onMessage(WebSocketSession, WebSocketFrame) - Method in interface dev.relism.flash.websocket.WebSocketHandler
 
onNotFound(SimpleHandler.FunctionalHandler) - Method in class dev.relism.flash.extension.FlashApp
 
onNotFound(SimpleHandler.FunctionalHandler) - Method in class dev.relism.flash.routing.AbstractRouter
 
onOpen(WebSocketSession) - Method in interface dev.relism.flash.websocket.WebSocketHandler
 
onRoute(RouteEvent) - Method in interface dev.relism.flash.extension.RouteListener
Called once for every registered route, in registration order.
OP_BINARY - Static variable in class dev.relism.flash.websocket.WebSocketFrame
 
OP_CLOSE - Static variable in class dev.relism.flash.websocket.WebSocketFrame
 
OP_CONTINUATION - Static variable in class dev.relism.flash.websocket.WebSocketFrame
 
OP_PING - Static variable in class dev.relism.flash.websocket.WebSocketFrame
 
OP_PONG - Static variable in class dev.relism.flash.websocket.WebSocketFrame
 
OP_TEXT - Static variable in class dev.relism.flash.websocket.WebSocketFrame
 
opcode() - Method in class dev.relism.flash.websocket.WebSocketFrame
 
optional(Class<T>) - Method in class dev.relism.flash.extension.FlashContext
Alias for FlashContext.find(java.lang.Class<T>) — prefer when semantics are "this may or may not exist".
optional(Class<T>) - Method in class dev.relism.flash.models.RequestHandler
Looks up an optional service from the FlashContext.
options(String, SimpleHandler.FunctionalHandler, Middleware...) - Method in class dev.relism.flash.extension.FlashRegistrar
 
OPTIONS - Enum constant in enum class dev.relism.flash.http.HttpMethod
 
OPTIONS - Annotation Interface in dev.relism.flash.routing
Shorthand for @Route(method = HttpMethod.OPTIONS, path = "…").
origin() - Method in class dev.relism.flash.Flash.Middlewares.CorsConfig
 
origin(String) - Method in class dev.relism.flash.Flash.Middlewares.CorsConfig
 

P

param(String) - Method in class dev.relism.flash.models.Request
Returns the path parameter named name, or null.
paramInt(Request, String) - Static method in class dev.relism.flash.models.RequestHelper
Returns the path parameter as an int.
paramLong(Request, String) - Static method in class dev.relism.flash.models.RequestHelper
Returns the path parameter as a long.
paramRequired(Request, String) - Static method in class dev.relism.flash.models.RequestHelper
Returns the path parameter as a String.
parse(InputStream) - Method in class dev.relism.flash.RequestParser
Parses the next HTTP request from in.
Part - Class in dev.relism.flash.api.multipart
One part of a multipart/form-data body produced by Multipart.
PARTIAL_CONTENT - Enum constant in enum class dev.relism.flash.http.HttpStatus
 
parts() - Method in class dev.relism.flash.api.multipart.Multipart
Returns all parts in declaration order.
parts(String) - Method in class dev.relism.flash.api.multipart.Multipart
Returns all parts named name in declaration order.
patch(String, SimpleHandler.FunctionalHandler, Middleware...) - Method in class dev.relism.flash.extension.FlashRegistrar
 
PATCH - Enum constant in enum class dev.relism.flash.http.HttpMethod
 
PATCH - Annotation Interface in dev.relism.flash.routing
Shorthand for @Route(method = HttpMethod.PATCH, path = "…").
path() - Method in record class dev.relism.flash.extension.RouteEvent
Returns the value of the path record component.
path() - Method in class dev.relism.flash.models.Request
Request path decoded as UTF-8.
path() - Element in annotation interface dev.relism.flash.routing.Route
 
PathParams - Class in dev.relism.flash.models
Path parameters captured during routing, stored as byte offsets into the path view.
PathParams(ByteView, String[], int[], int[]) - Constructor for class dev.relism.flash.models.PathParams
 
PathUtils - Class in dev.relism.flash.routing
 
PathUtils() - Constructor for class dev.relism.flash.routing.PathUtils
 
PAYLOAD_TOO_LARGE - Enum constant in enum class dev.relism.flash.http.HttpStatus
 
payloadLength() - Method in class dev.relism.flash.websocket.WebSocketFrame
 
payloadOffset() - Method in class dev.relism.flash.websocket.WebSocketFrame
 
PDF - Enum constant in enum class dev.relism.flash.http.ContentType
 
PERMANENT_REDIRECT - Enum constant in enum class dev.relism.flash.http.HttpStatus
 
post(String, SimpleHandler.FunctionalHandler, Middleware...) - Method in class dev.relism.flash.extension.FlashRegistrar
 
POST - Enum constant in enum class dev.relism.flash.http.HttpMethod
 
POST - Annotation Interface in dev.relism.flash.routing
Shorthand for @Route(method = HttpMethod.POST, path = "…").
priority() - Method in interface dev.relism.flash.extension.FlashExtension
Execution priority.
Priority and middleware ordering - Search tag in interface dev.relism.flash.extension.FlashExtension
Section
process(Class<? extends RequestHandler>) - Method in interface dev.relism.flash.extension.AnnotationProcessor
 
provide(FlashContext) - Method in interface dev.relism.flash.extension.FlashExtension
Phase 1 — register services and processors.
provide(Class<T>, T) - Method in class dev.relism.flash.extension.FlashContext
Registers an already-constructed instance under type.
purge(String, SimpleHandler.FunctionalHandler, Middleware...) - Method in class dev.relism.flash.extension.FlashRegistrar
 
PURGE - Enum constant in enum class dev.relism.flash.http.HttpMethod
 
PURGE - Annotation Interface in dev.relism.flash.routing
Shorthand for @Route(method = HttpMethod.PURGE, path = "…").
put(String, SimpleHandler.FunctionalHandler, Middleware...) - Method in class dev.relism.flash.extension.FlashRegistrar
 
PUT - Enum constant in enum class dev.relism.flash.http.HttpMethod
 
PUT - Annotation Interface in dev.relism.flash.routing
Shorthand for @Route(method = HttpMethod.PUT, path = "…").

Q

queries(String) - Method in class dev.relism.flash.models.Request
Returns all query parameters named name in declaration order.
query(String) - Method in class dev.relism.flash.models.Request
Returns the first query parameter named name, or null.
queryInt(Request, String, int, int) - Static method in class dev.relism.flash.models.RequestHelper
Returns the query param as an int, or defaultValue if absent.
queryLong(Request, String, long) - Static method in class dev.relism.flash.models.RequestHelper
Returns the query param as a long, or defaultValue if absent.
queryOptional(Request, String) - Static method in class dev.relism.flash.models.RequestHelper
Returns the query param, or null if absent.
QueryParams - Class in dev.relism.flash.models
Lazy query parameter access (?key=value&...).
QueryParams(ByteView) - Constructor for class dev.relism.flash.models.QueryParams
 
queryRequired(Request, String) - Static method in class dev.relism.flash.models.RequestHelper
Returns the query param value.

R

RadixPathRouterImpl - Class in dev.relism.flash.routing.routers.radix
 
RadixPathRouterImpl() - Constructor for class dev.relism.flash.routing.routers.radix.RadixPathRouterImpl
 
readFrame(WebSocketFrame) - Method in class dev.relism.flash.websocket.WebSocketSession
 
reason() - Method in enum class dev.relism.flash.http.HttpStatus
Reason phrase (e.g.
reasonForCode(int) - Static method in enum class dev.relism.flash.http.HttpStatus
Returns reason phrase for the given code, or null if unknown.
redirect(HttpStatus, String) - Method in class dev.relism.flash.models.Response
Redirect with an explicit 3xx status.
redirect(String) - Method in class dev.relism.flash.models.Response
302 Found redirect.
register(HttpMethod, String, WebSocketHandler) - Method in class dev.relism.flash.routing.AbstractWsRouter
 
remoteAddress() - Method in class dev.relism.flash.models.Request
Returns the remote socket address of the connected client, or null for test-constructed requests.
render(String...) - Method in class dev.relism.flash.template.ByteTemplate
Render with alternating key-value String pairs: k1, v1, k2, v2, … Unmatched slots are rendered as empty.
renderException(Request, Exception) - Static method in class dev.relism.flash.template.ErrorPages
 
renderNotFound(Request) - Static method in class dev.relism.flash.template.ErrorPages
 
Request - Class in dev.relism.flash.models
Immutable view of an incoming HTTP/1.1 request.
Request(RequestLine, byte[]) - Constructor for class dev.relism.flash.models.Request
Test / manual constructor — remoteAddress() returns null.
RequestBody - Class in dev.relism.flash.models
Accessor for the HTTP request body.
RequestByteView(byte[], int, int) - Constructor for class dev.relism.flash.routing.routers.fastpathrouter.FastPathViews.RequestByteView
 
RequestHandler - Class in dev.relism.flash.models
Base class for class-based route handlers.
RequestHandler() - Constructor for class dev.relism.flash.models.RequestHandler
 
RequestHelper - Class in dev.relism.flash.models
Typed accessors for request parameters.
RequestLine - Class in dev.relism.flash.models
 
RequestLine() - Constructor for class dev.relism.flash.models.RequestLine
 
RequestParser - Class in dev.relism.flash
One instance per connection.
RequestParser() - Constructor for class dev.relism.flash.RequestParser
 
RequestParser(int) - Constructor for class dev.relism.flash.RequestParser
 
RequestParser(int, InetSocketAddress) - Constructor for class dev.relism.flash.RequestParser
 
require(Class<T>) - Method in class dev.relism.flash.extension.FlashContext
Returns the service for type.
require(Class<T>) - Method in class dev.relism.flash.models.RequestHandler
Retrieves a required service from the FlashContext.
require(Class<T>) - Method in class dev.relism.flash.websocket.WebSocketEndpoint
 
reset(byte[], int, int) - Method in class dev.relism.flash.models.HeaderMap
Resets this map to the header section buffer[sectionStart, sectionEnd).
reset(byte[], ByteView) - Method in class dev.relism.flash.routing.routers.fastpathrouter.FastPathViews.MethodPathByteView
 
Response - Class in dev.relism.flash.models
HTTP response.
Response(int, byte[], ContentType) - Constructor for class dev.relism.flash.models.Response
 
Response(int, ContentType) - Constructor for class dev.relism.flash.models.Response
 
Response(int, String, ContentType) - Constructor for class dev.relism.flash.models.Response
 
route(Request) - Method in class dev.relism.flash.routing.AbstractRouter
 
route(Request) - Method in class dev.relism.flash.routing.AbstractWsRouter
 
route(Request) - Method in class dev.relism.flash.routing.routers.fastpathrouter.FastPathRouterImpl
 
route(Request) - Method in class dev.relism.flash.routing.routers.fastpathrouter.FastPathWsRouterImpl
 
Route - Annotation Interface in dev.relism.flash.routing
HTTP method and path for a class-based RequestHandler.
RouteEvent - Record Class in dev.relism.flash.extension
Immutable snapshot of a route captured at registration time.
RouteEvent(HttpMethod, String, String, String, Class<?>, List<Class<? extends Middleware>>) - Constructor for record class dev.relism.flash.extension.RouteEvent
Creates an instance of a RouteEvent record class.
RouteListener - Interface in dev.relism.flash.extension
Observer notified once for each route registered on a FlashApp or FlashScope.
routerType() - Method in record class dev.relism.flash.extension.RouteEvent
Returns the value of the routerType record component.
routes(FlashRegistrar<?>, FlashContext) - Method in interface dev.relism.flash.extension.FlashExtension
Phase 2 — register routes.
Routes - Class in dev.relism.flash.routing
Boot-time resolution of Route from a handler class (direct @Route or shorthand).

S

sanitize(String) - Static method in class dev.relism.flash.routing.PathUtils
Sanitizes a path segment to ensure it starts with '/' and has no trailing slash.
scan(String) - Method in class dev.relism.flash.extension.FlashRegistrar
Scans packageName for RequestHandler subclasses with a routing annotation (@Route or @GET, @POST, …).
send(byte[], int, int) - Method in class dev.relism.flash.websocket.WebSocketSession
 
sendPong(WebSocketFrame) - Method in class dev.relism.flash.websocket.WebSocketSession
 
sendText(byte[], int, int) - Method in class dev.relism.flash.websocket.WebSocketSession
 
ServerHandle - Interface in dev.relism.flash
Public handle to the underlying HTTP transport.
SERVICE_UNAVAILABLE - Enum constant in enum class dev.relism.flash.http.HttpStatus
 
Service access - Search tag in class dev.relism.flash.models.RequestHandler
Section
setBody(Object) - Method in class dev.relism.flash.models.Response
Sets the body from a handler return value.
setPathParams(Request, MatchResult<WebSocketHandler>, String[], int) - Static method in class dev.relism.flash.routing.AbstractWsRouter
 
setPathParams(Request, String[], ByteView, int[], int[]) - Static method in class dev.relism.flash.routing.AbstractRouter
 
SimpleHandler - Class in dev.relism.flash.models
Delegates SimpleHandler.handle(dev.relism.flash.models.Request, dev.relism.flash.models.Response) to a SimpleHandler.FunctionalHandler so lambdas can be used without relying on Lombok-generated constructors (IDE-safe, annotation-processing independent).
SimpleHandler(SimpleHandler.FunctionalHandler) - Constructor for class dev.relism.flash.models.SimpleHandler
 
SimpleHandler.FunctionalHandler - Interface in dev.relism.flash.models
Functional interface for handling requests, used by SimpleHandler.
SocketByteView(byte[]) - Constructor for class dev.relism.flash.routing.routers.fastpathrouter.FastPathViews.SocketByteView
 
start() - Method in class dev.relism.flash.extension.FlashApp
Boots the server and starts accepting connections.
start() - Method in interface dev.relism.flash.ServerHandle
Starts the accept loop on a background platform thread.
startAndBlock() - Method in class dev.relism.flash.extension.FlashApp
Boots the server and blocks the calling thread until the server is stopped.
startAndBlock() - Method in interface dev.relism.flash.ServerHandle
Starts the accept loop and blocks the calling thread until the server is stopped.
Startup sequence (both #start() and #startAndBlock()) - Search tag in class dev.relism.flash.extension.FlashApp
Section
State invariant - Search tag in class dev.relism.flash.RequestParser
Section
status() - Method in exception class dev.relism.flash.exceptions.HttpException
 
status(int) - Method in class dev.relism.flash.models.Response
Sets the status code.
status(HttpStatus) - Method in class dev.relism.flash.models.Response
Sets the status from an HttpStatus constant.
stop() - Method in class dev.relism.flash.extension.FlashApp
 
stop() - Method in interface dev.relism.flash.ServerHandle
Gracefully stops the server, draining active connections.
stream() - Method in class dev.relism.flash.api.multipart.Part
Returns an InputStream over the part body.
stream() - Method in class dev.relism.flash.models.RequestBody
Returns a bounded InputStream over the body without upfront allocation.
stream(InputStream, long) - Method in class dev.relism.flash.models.Response
Streaming response with known length; written with Content-Length.
StringByteView(String) - Constructor for class dev.relism.flash.routing.routers.fastpathrouter.FastPathViews.StringByteView
 
supply(Class<T>, Supplier<T>) - Method in class dev.relism.flash.extension.FlashContext
Registers a lazy factory for type.
SWITCHING_PROTOCOLS - Enum constant in enum class dev.relism.flash.http.HttpStatus
 

T

TEMPORARY_REDIRECT - Enum constant in enum class dev.relism.flash.http.HttpStatus
 
text() - Method in class dev.relism.flash.api.multipart.Part
Decodes the body as UTF-8.
TEXT_CSS - Enum constant in enum class dev.relism.flash.http.ContentType
 
TEXT_CSV - Enum constant in enum class dev.relism.flash.http.ContentType
 
TEXT_EVENT_STREAM - Enum constant in enum class dev.relism.flash.http.ContentType
 
TEXT_HTML - Enum constant in enum class dev.relism.flash.http.ContentType
 
TEXT_JAVASCRIPT - Enum constant in enum class dev.relism.flash.http.ContentType
 
TEXT_MARKDOWN - Enum constant in enum class dev.relism.flash.http.ContentType
 
TEXT_PLAIN - Enum constant in enum class dev.relism.flash.http.ContentType
 
TEXT_XML - Enum constant in enum class dev.relism.flash.http.ContentType
 
Thread safety - Search tag in class dev.relism.flash.websocket.WebSocketSession
Section
TOO_MANY_REQUESTS - Enum constant in enum class dev.relism.flash.http.HttpStatus
 
toString() - Method in record class dev.relism.flash.extension.RouteEvent
Returns a string representation of this record class.
toString() - Method in enum class dev.relism.flash.http.HttpMethod
 
toString() - Method in class dev.relism.flash.routing.routers.fastpathrouter.FastPathViews.RequestByteView
 
trace(String, SimpleHandler.FunctionalHandler, Middleware...) - Method in class dev.relism.flash.extension.FlashRegistrar
 
TRACE - Enum constant in enum class dev.relism.flash.http.HttpMethod
 
TRACE - Annotation Interface in dev.relism.flash.routing
Shorthand for @Route(method = HttpMethod.TRACE, path = "…").
type(ContentType) - Method in class dev.relism.flash.models.Response
 
type(String) - Method in class dev.relism.flash.models.Response
 

U

unauthorized() - Static method in exception class dev.relism.flash.exceptions.HttpException
 
UNAUTHORIZED - Enum constant in enum class dev.relism.flash.http.HttpStatus
 
unprocessable(String) - Static method in exception class dev.relism.flash.exceptions.HttpException
 
UNPROCESSABLE_ENTITY - Enum constant in enum class dev.relism.flash.http.HttpStatus
 
UNSUPPORTED_MEDIA_TYPE - Enum constant in enum class dev.relism.flash.http.HttpStatus
 
URI_TOO_LONG - Enum constant in enum class dev.relism.flash.http.HttpStatus
 
use(Middleware...) - Method in class dev.relism.flash.extension.FlashRegistrar
Adds middlewares to this registrar's own scope.

V

value - Variable in enum class dev.relism.flash.extension.ExtensionPhase
The integer priority value used for sorting.
value() - Element in annotation interface dev.relism.flash.routing.CONNECT
 
value() - Element in annotation interface dev.relism.flash.routing.DELETE
 
value() - Element in annotation interface dev.relism.flash.routing.GET
 
value() - Element in annotation interface dev.relism.flash.routing.HEAD
 
value() - Element in annotation interface dev.relism.flash.routing.OPTIONS
 
value() - Element in annotation interface dev.relism.flash.routing.PATCH
 
value() - Element in annotation interface dev.relism.flash.routing.POST
 
value() - Element in annotation interface dev.relism.flash.routing.PURGE
 
value() - Element in annotation interface dev.relism.flash.routing.PUT
 
value() - Element in annotation interface dev.relism.flash.routing.TRACE
 
value() - Element in annotation interface dev.relism.flash.routing.Ws
 
valueEqualsIgnoreCase(String, String) - Method in class dev.relism.flash.models.HeaderMap
Case-insensitive comparison of the first value of name against value.
valueOf(String) - Static method in enum class dev.relism.flash.extension.ExtensionPhase
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class dev.relism.flash.http.ContentType
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class dev.relism.flash.http.HttpMethod
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class dev.relism.flash.http.HttpStatus
Returns the enum constant of this class with the specified name.
values() - Static method in enum class dev.relism.flash.extension.ExtensionPhase
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class dev.relism.flash.http.ContentType
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class dev.relism.flash.http.HttpMethod
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class dev.relism.flash.http.HttpStatus
Returns an array containing the constants of this enum class, in the order they are declared.
VERSION - Static variable in class dev.relism.flash.Flash
 
VIDEO_MP4 - Enum constant in enum class dev.relism.flash.http.ContentType
 
VIDEO_WEBM - Enum constant in enum class dev.relism.flash.http.ContentType
 
view(String) - Method in class dev.relism.flash.models.HeaderMap
Returns a zero-copy ByteView over the first value of name, or null.

W

WebSocketEndpoint - Class in dev.relism.flash.websocket
Base class for class-based WebSocket endpoints registered via @Ws or app.ws(path, endpoint).
WebSocketEndpoint() - Constructor for class dev.relism.flash.websocket.WebSocketEndpoint
 
WebSocketFrame - Class in dev.relism.flash.websocket
Zero-copy view over WebSocketSession's read buffer.
WebSocketFrame() - Constructor for class dev.relism.flash.websocket.WebSocketFrame
 
WebSocketHandler - Interface in dev.relism.flash.websocket
Handler for a WebSocket endpoint.
WebSocketSession - Class in dev.relism.flash.websocket
Per-connection WebSocket I/O state.
WebSocketSession(InputStream, OutputStream, int) - Constructor for class dev.relism.flash.websocket.WebSocketSession
 
wrap(RequestHandler) - Method in interface dev.relism.flash.routing.Middleware
Wraps next with this middleware's logic.
writeHeaders(OutputStream) - Method in class dev.relism.flash.models.Response
Writes pre-encoded custom headers directly to out.
ws(String, WebSocketHandler) - Method in class dev.relism.flash.extension.FlashApp
Registers a WebSocket endpoint at path.
Ws - Annotation Interface in dev.relism.flash.routing
Marks a RequestHandler subclass as a WebSocket endpoint.

X

XML - Enum constant in enum class dev.relism.flash.http.ContentType
 

Z

Zero-allocation design - Search tag in class dev.relism.flash.RequestParser
Section
ZIP - Enum constant in enum class dev.relism.flash.http.ContentType
 
A B C D E F G H I J L M N O P Q R S T U V W X Z 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form