Class BasicRestResource

java.lang.Object
org.apache.juneau.rest.server.servlet.RestResource
org.apache.juneau.rest.server.servlet.BasicRestResource
All Implemented Interfaces:
BasicUniversalConfig, DefaultConfig, DefaultHtmlConfig
Direct Known Subclasses:
BasicRestResourceGroup, DumpsResource, HealthResource, HelloResource, InfoResource, LoggersResource, MetricsResource

public abstract class BasicRestResource extends RestResource implements BasicUniversalConfig
Identical to BasicRestServlet but doesn't extend from HttpServlet.

Meant as a base class for child REST resources in servlet containers and Spring Boot environments.

Provides support for JSON, XML, HTML, URL-Encoding, UON, XML, OpenAPI, and MessagePack. See BasicUniversalConfig for details.

The residual cross-cutting endpoints are supplied by single-responsibility op-mixins (ErrorMixin, HtdocMixin, StatsMixin, and FaviconMixin), and the api-docs surface by the api-docs mixin pack (SwaggerUiMixin and RedocMixin, which transitively pull in SwaggerMixin and OpenApiMixin). Resulting endpoints: /api, /swagger, /openapi, /openapi.json, /openapi.yaml, /redoc, /htdocs/*, /favicon.ico, /stats, /error.

See Also: