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