Package org.apache.juneau.rest.server.ops
@Rest(mixins=...) resources that ship the
operational surface (request echo, JVM admin, route index) every long-running Juneau service
eventually grows.
Three sibling mixins compose into the host @Rest-annotated resource. Each mixin owns
its default mount paths, ships secure-by-default (disabled-by-default for echo, deny-all-guard for
admin), and is independently mountable; the three together drop in as a pack via
@Rest(mixins={EchoMixin.class, AdminMixin.class, RouteIndexMixin.class}).
EchoMixin—/echo/*request echo (SVL-configurable mount); sensitive headers (Authorization,Cookie, etc.) are redacted by default.AdminMixin—/admin/threads,/admin/heap,/admin/cache/flush(POST), and/admin/ratelimit; default-deny viaDenyAllGuarduntil the importer registers an@Bean RestGuardListfactory.RouteIndexMixin—/options(SVL-configurable mount) returning a JSON list of every@RestOp-annotated method on the host (plus mixins), excluding@OpSwagger(ignore=true)ops.
Composition example:
All endpoints carry
@OpSwagger(ignore=true) —
ops endpoints are not API-meaningful and are excluded from any generated Swagger / OpenAPI
spec.
See Also:
- Since:
- 10.0.0
-
ClassesClassDescriptionMixin that serves operational-introspection endpoints under
/admin/*: thread dump, heap statistics, configurable cache-flush hooks, and rate-limit-bucket inspection.Builder forAdminMixininstances.Flavor-neutral operational-introspection worker bean shared by the admin@Restflavors.Builder forAdminProviderinstances.Child-resource flavor of theAdminMixinmixin.Standalone servlet companion of theAdminMixinmixin.Mixin that serves a request-echo / round-trip introspection endpoint at/echo/*(configurable).Builder forEchoMixininstances.Mixin providing the residual[* /error]endpoint.Mixin providing the residual[GET /htdocs/*]static-file endpoint.Mixin providing the group-navigation endpoint ([GET /]) that lists the host resource's child resources.Mixin that exposes a content-negotiated index of all@RestOp-annotated methods on the host resource (and any other mixins on it) at/options(configurable).Mixin providing the residual[GET /stats]timing-statistics endpoint.