001// ***************************************************************************************************************************
002// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.  See the NOTICE file *
003// * distributed with this work for additional information regarding copyright ownership.  The ASF licenses this file        *
004// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance            *
005// * with the License.  You may obtain a copy of the License at                                                              *
006// *                                                                                                                         *
007// *  http://www.apache.org/licenses/LICENSE-2.0                                                                             *
008// *                                                                                                                         *
009// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an  *
010// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the License for the        *
011// * specific language governing permissions and limitations under the License.                                              *
012// ***************************************************************************************************************************
013package org.apache.juneau.rest.servlet;
014
015import jakarta.servlet.http.*;
016
017import org.apache.juneau.rest.*;
018import org.apache.juneau.rest.annotation.*;
019import org.apache.juneau.rest.beans.*;
020import org.apache.juneau.rest.config.*;
021
022/**
023 * Identical to {@link BasicRestServletGroup} but doesn't extend from {@link HttpServlet}.
024 *
025 * <p>
026 * Meant as a base class for child REST resources in servlet containers or Spring Boot environments.
027 *
028 * <p>
029 * Provides support for JSON, XML, HTML, URL-Encoding, UON, XML, OpenAPI, and MessagePack.  See {@link BasicUniversalConfig}
030 * for details.
031 *
032 * <p>
033 * Implements the basic REST endpoints defined in {@link BasicRestOperations} and {@link BasicGroupOperations}.
034 *
035 * <p>
036 * Children are attached to this resource using the {@link Rest#children() @Rest(children)} annotation.
037 *
038 * <h5 class='section'>See Also:</h5><ul>
039 *    <li class='link'><a class="doclink" href="../../../../../index.html#jrs.AnnotatedClasses">@Rest-Annotated Classes</a>
040 * </ul>
041 */
042@Rest
043public abstract class BasicRestObjectGroup extends BasicRestObject implements BasicGroupOperations {
044
045   @Override /* BasicGroupOperations */
046   public ChildResourceDescriptions getChildren(RestRequest req) {
047      return ChildResourceDescriptions.of(req);
048   }
049}
050