Uses of Class
org.apache.juneau.rest.server.RestContext
Packages that use RestContext
Package
Description
Actuator-style management-surface endpoints (microservice-module flavors).
Mocked REST client and supporting classes for in-JVM testing built on the classic Apache HttpClient API.
REST Server API
REST Method Argument Beans
REST Interface Helper Classes
Built-in health, readiness, and liveness probe support for Juneau REST servers.
Actuator-style management-surface endpoints (server-module flavors).
MCP
2026-07-28 binding for juneau-rest-server-mcp.Micrometer bridge for the
juneau-rest-server
MetricsRecorder SPI.Server-side OpenAPI 3.1 emission — the
OpenApiProvider SPI
and the BasicOpenApiProvider default implementation that
walks an RestContext and produces an
OpenApi document.Ops / introspection mixin pack — composable
@Rest(mixins=...) resources that ship the
operational surface (request echo, JVM admin, route index) every long-running Juneau service
eventually grows.REST Remote Procedure Call API
REST Servlets
REST Swagger Support
-
Uses of RestContext in org.apache.juneau.microservice.management
Methods in org.apache.juneau.microservice.management with parameters of type RestContextModifier and TypeMethodDescriptionInfoManager.resolveManifest(RestContext context) Resolves the application'sManifestFilefrom the host context's bean store. -
Uses of RestContext in org.apache.juneau.rest.mock.classic
Methods in org.apache.juneau.rest.mock.classic with parameters of type RestContextModifier and TypeMethodDescriptionMockRestClient.Builder.restContext(RestContext value) Specifies theRestContextcreated for the REST bean. -
Uses of RestContext in org.apache.juneau.rest.server
Fields in org.apache.juneau.rest.server declared as RestContextModifier and TypeFieldDescriptionprotected final RestContextRestOpContext.contextprotected final RestContextRestContext.parentContextMethods in org.apache.juneau.rest.server that return RestContextModifier and TypeMethodDescriptionDynamically registers a child REST resource by class, instantiating it via the parent'sBeanStore.Dynamically registers a pre-instantiated child REST resource.Dynamically registers a pre-instantiated child REST resource, optionally replacing any existing child at the same resolved path.Dynamically registers a pre-instantiated child REST resource at an explicit path.Dynamically registers a pre-instantiated child REST resource at an explicit path, optionally replacing any existing child at the same path.RestChildMatch.getChildContext()Returns the child context of the REST child match.RestOpContext.getContext()Returns theRestContextthat owns this operation context.RestRequest.getContext()Returns the resource context handling the request.RestResponse.getContext()Returns access to the innerRestContextof the class of this method.RestSession.getContext()Returns the context that created this call.RestContext.getParentContext()Returns the parentRestContext, ornullfor top-level resources.RestOpSession.getRestContext()Returns the context of the parent class of this Java method.RestContext.Args.parentContext()Returns the value of theparentContextrecord component.RestContext.postInit()Called during servlet initialization to invoke allRestPostInitchild-last methods.RestContext.postInitChildFirst()Called during servlet initialization to invoke allRestPostInitchild-first methods.RestChildren.removeChild(Class<?> resourceClass) Removes the first child whose resource class matches the given type.RestChildren.removeChild(String path) Removes the child registered at the given composed path.Methods in org.apache.juneau.rest.server that return types with arguments of type RestContextModifier and TypeMethodDescriptionRestChildren.asMap()Returns the children in this object as a map.static final Map<Class<?>,RestContext> RestContext.getGlobalRegistry()Returns a registry of all createdRestContextobjects.Map<Class<?>,RestContext> RestContext.getMixinContexts()Returns the per-mixinRestContextsub-contexts indexed by mixin class.Methods in org.apache.juneau.rest.server with parameters of type RestContextModifier and TypeMethodDescriptionRestChildren.Builder.add(RestContext value) Adds an eager child resource to this builder.static RestChildMatchRestChildMatch.create(UrlPathMatch pathMatch, RestContext childContext) Creator.static RestChildren.BuilderRestChildren.create(RestContext parent, BeanStore beanStore, jakarta.servlet.ServletConfig servletConfig) Static creator.static RestSession.BuilderRestSession.create(RestContext ctx) Creates a builder of this object.Constructors in org.apache.juneau.rest.server with parameters of type RestContextModifierConstructorDescriptionArgs(Class<?> resourceClass, RestContext parentContext, jakarta.servlet.ServletConfig servletConfig, Supplier<?> resource, String path, Consumer<WritableBeanStore> beanStoreConfigurer, BeanStore overridingParent, String[] paths, RestContext.ContextKind kind) Back-compatible constructor without therestBuildercomponent (defaults it tonull ).Args(Class<?> resourceClass, RestContext parentContext, jakarta.servlet.ServletConfig servletConfig, Supplier<?> resource, String path, Consumer<WritableBeanStore> beanStoreConfigurer, BeanStore overridingParent, String[] paths, RestContext.ContextKind kind, RestBuilder<?> restBuilder) Compact canonical constructor — null-coalesces optional fields and validates required ones.protectedBuilder(RestContext parent, BeanStore beanStore, jakarta.servlet.ServletConfig servletConfig) Constructor.protectedBuilder(RestContext ctx) Constructor.protectedRestChildMatch(UrlPathMatch pathMatch, RestContext childContext) Constructor.RestOpContext(Method method, RestContext context) 2-arg positional context constructor.RestOpContext(Method method, RestContext context, Supplier<Object> resourceSupplier) 3-arg positional context constructor. -
Uses of RestContext in org.apache.juneau.rest.server.arg
Constructor parameters in org.apache.juneau.rest.server.arg with type arguments of type RestContextModifierConstructorDescriptionprotectedRestContextArgs(ThrowingFunction<RestContext, T> function) Constructor. -
Uses of RestContext in org.apache.juneau.rest.server.beans
Constructors in org.apache.juneau.rest.server.beans with parameters of type RestContextModifierConstructorDescriptionChildResourceDescriptions(RestContext context, RestRequest req) Constructor.ChildResourceDescriptions(RestContext context, RestRequest req, boolean sort) Constructor. -
Uses of RestContext in org.apache.juneau.rest.server.health
Methods in org.apache.juneau.rest.server.health with parameters of type RestContextModifier and TypeMethodDescriptionHealthAggregator.aggregate(RestContext context, Map<String, HealthIndicator> indicators, HealthProbe probe, RestResponse res) Evaluates the supplied indicators, summarizes their statuses, and sets the response status.HealthAggregator.indicators(RestContext context) Resolves theHealthIndicatorbeans registered in the given context's bean store. -
Uses of RestContext in org.apache.juneau.rest.server.management
Methods in org.apache.juneau.rest.server.management with parameters of type RestContextModifier and TypeMethodDescriptionLoggersManager.getLevel(RestContext context, String name) Returns the configured level of a single logger, for the backend resolved from the supplied context.LoggersManager.getLevels(RestContext context) Returns a snapshot of all known loggers and their configured levels, for the backend resolved from the supplied context.DumpsManager.resolveSettings(RestContext context) Resolves theDumpsSettingsfrom the host context's bean store, falling back to the deny-all default.LoggersManager.resolveSettings(RestContext context) Resolves theLoggersSettingsfrom the host context's bean store, falling back to the read-only (JUL-backed) default.voidLoggersManager.setLevel(RestContext context, String name, String level) Sets (or clears) the level of a single logger at runtime (process-lifetime-only), for the backend resolved from the supplied context. -
Uses of RestContext in org.apache.juneau.rest.server.mcp.v20260728
Methods in org.apache.juneau.rest.server.mcp.v20260728 with parameters of type RestContextModifier and TypeMethodDescriptionstatic voidMcpResourceServerSupport.gateMcpEndpoint(McpResourceServerConfig cfg, RestContext ctx, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) Router-identity bearer gate for theMcpEndpointmixin's MCP JSON-RPC endpoint.default voidMcpEndpoint.mcpResourceServerAuth(RestContext ctx, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) OAuth 2.1 resource-server bearer gate for the mixin's MCPPOST /mcpendpoint. -
Uses of RestContext in org.apache.juneau.rest.server.metrics.micrometer
Methods in org.apache.juneau.rest.server.metrics.micrometer with parameters of type RestContextModifier and TypeMethodDescriptionio.micrometer.core.instrument.MeterRegistryMetricsManager.resolveRegistry(RestContext context) Resolves the consumer-providedMeterRegistryfrom the host context's bean store. -
Uses of RestContext in org.apache.juneau.rest.server.openapi
Methods in org.apache.juneau.rest.server.openapi with parameters of type RestContextModifier and TypeMethodDescriptionBasicOpenApiProvider.getOpenApi(RestContext context, Locale locale) Returns the OpenAPI 3.1 document associated with the specified context of aRest-annotated class.OpenApiProvider.getOpenApi(RestContext context, Locale locale) Returns the OpenAPI 3.1 document associated with the specifiedRest-annotated class.Constructors in org.apache.juneau.rest.server.openapi with parameters of type RestContextModifierConstructorDescriptionBasicOpenApiProviderSession(RestContext context, Locale locale, FileFinder ff, Messages messages, VarResolverSession vr, JsonSchemaGeneratorSession js) Constructor. -
Uses of RestContext in org.apache.juneau.rest.server.ops
Methods in org.apache.juneau.rest.server.ops with parameters of type RestContextModifier and TypeMethodDescriptionRouteIndexMixin.collect(RestContext hostCtx) Collects the route-index entries from the supplied hostRestContextand any of its registered mixin sub-contexts (test/inspection helper). -
Uses of RestContext in org.apache.juneau.rest.server.rrpc
Constructors in org.apache.juneau.rest.server.rrpc with parameters of type RestContextModifierConstructorDescriptionRrpcRestOpContext(Method method, RestContext context) Constructor.RrpcRestOpContext(Method method, RestContext context, Supplier<Object> resourceSupplier) Constructor. -
Uses of RestContext in org.apache.juneau.rest.server.servlet
Methods in org.apache.juneau.rest.server.servlet that return RestContextModifier and TypeMethodDescriptionDynamically registers a child REST resource by class.Dynamically registers a pre-instantiated child REST resource.Dynamically registers a pre-instantiated child REST resource at an explicit path.Dynamically registers a child REST resource by class.Dynamically registers a pre-instantiated child REST resource.Dynamically registers a pre-instantiated child REST resource at an explicit path.protected RestContextRestResource.getContext()Returns the read-only context object that contains all the configuration information about this resource.RestServlet.getContext()Returns the read-only context object that contains all the configuration information about this resource.RestMixin.getHostContext()Returns theRestContextof the host (mixed-into) resource this mixin is composed into.BasicRestResourceGroup.removeChild(Class<?> resourceClass) Removes the first child whose resource class matches the given type.BasicRestResourceGroup.removeChild(String path) Removes the child registered at the given composed path.BasicRestServletGroup.removeChild(Class<?> resourceClass) Removes the first child whose resource class matches the given type.BasicRestServletGroup.removeChild(String path) Removes the child registered at the given composed path.Methods in org.apache.juneau.rest.server.servlet with parameters of type RestContextModifier and TypeMethodDescriptionprotected voidRestMixin.setContext(RestContext value) Captures the per-mixinRestContextsub-context this mixin instance is bound to.protected voidRestResource.setContext(RestContext context) Sets the context object for this servlet.protected voidRestServlet.setContext(RestContext context) Sets the context object for this servlet. -
Uses of RestContext in org.apache.juneau.rest.server.swagger
Methods in org.apache.juneau.rest.server.swagger with parameters of type RestContextModifier and TypeMethodDescriptionBasicSwaggerProvider.getSwagger(RestContext context, Locale locale) Returns the Swagger associated with the specified context of aRest-annotated class.SwaggerProvider.getSwagger(RestContext context, Locale locale) Returns the Swagger associated with the specifiedRest-annotated class.Constructors in org.apache.juneau.rest.server.swagger with parameters of type RestContextModifierConstructorDescriptionBasicSwaggerProviderSession(RestContext context, Locale locale, FileFinder ff, Messages messages, VarResolverSession vr, JsonSchemaGeneratorSession js) Constructor.