Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.

package com.codename1.backend.web

Interception and exception handling around generated controller routes.

HandlerInterceptor beans run around every controller method, @ExceptionHandler methods and @ControllerAdvice beans turn exceptions into responses, and ControllerHooks documents the order both run in and how they sit inside the security filter chain. Everything is wired at build time; nothing is looked up by name or reflection when a request arrives.

Types

class ControllerHooksThe interceptors and global exception resolvers every generated router runs a matched request through.
interface CorsRoutesImplemented by a generated router whose controllers carry @CrossOrigin: answers the policy of the route a request is for, so the server applies it in place of the global cn1.cors.* one.
interface ExceptionResolverTurns an exception a controller threw into a response.
interface HandlerInterceptorRuns around every controller method, for cross-cutting work that is not security: timing, auditing, tenant selection, request-scoped cleanup.
class HandlerMethodThe controller method a request was routed to, as interceptors and exception resolvers see it.
class MediaTypesMedia-type matching for a route’s consumes and produces, called by the generated router before it binds anything.