Package org.apache.juneau.rest.servlet
Class BasicRestObjectGroup
java.lang.Object
org.apache.juneau.rest.servlet.RestObject
org.apache.juneau.rest.servlet.BasicRestObject
org.apache.juneau.rest.servlet.BasicRestObjectGroup
- All Implemented Interfaces:
BasicUniversalConfig
,DefaultConfig
,DefaultHtmlConfig
,BasicGroupOperations
,BasicRestOperations
Identical to
BasicRestServletGroup
but doesn't extend from HttpServlet
.
Meant as a base class for child REST resources in servlet containers or Spring Boot environments.
Provides support for JSON, XML, HTML, URL-Encoding, UON, XML, OpenAPI, and MessagePack. See BasicUniversalConfig
for details.
Implements the basic REST endpoints defined in BasicRestOperations
and BasicGroupOperations
.
Children are attached to this resource using the @Rest(children)
annotation.
See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.juneau.rest.servlet.BasicRestObject
error, getFavIcon, getHtdoc, getStats, getSwagger
Methods inherited from class org.apache.juneau.rest.servlet.RestObject
doLog, getContext, getRequest, getResponse, log, log, setContext
-
Constructor Details
-
BasicRestObjectGroup
public BasicRestObjectGroup()
-
-
Method Details
-
getChildren
Description copied from interface:BasicGroupOperations
[GET /] - Get child resources.Returns a bean that lists and allows navigation to child resources.
- Specified by:
getChildren
in interfaceBasicGroupOperations
- Parameters:
req
- The HTTP request.- Returns:
- The bean containing links to the child resources.
-