Class SampleRootResource

java.lang.Object
jakarta.servlet.GenericServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable, BasicUniversalConfig, DefaultConfig, DefaultHtmlConfig

Sample root REST resource.

It mounts ConfigResource with no CSRF boundary in front of it. ConfigResource has no HTML form, and its writes are PUTs, which a browser cannot send cross-site without a CORS preflight. An application that mounts the admin resources where a browser can reach them should still register AdminBoundary.

See Also: